Skip to main content

resource_configurations

Creates, updates, deletes, gets or lists a resource_configurations resource.

Overview

Nameresource_configurations
TypeResource
Idaws.vpc_lattice.resource_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the resource configuration. (pattern: <code>rcfg-[0-9a-z]{17}</code>)
namestringThe name of the resource configuration. (pattern: <code>(?!rcfg-)(?![-])(?!.[-]$)(?!.[-]{2})[a-z0-9-]+</code>)
allow_association_to_shareable_service_networkbooleanSpecifies whether the resource configuration is associated with a sharable service network.
amazon_managedbooleanIndicates whether the resource configuration was created and is managed by Amazon.
arnstringThe Amazon Resource Name (ARN) of the resource configuration. (pattern: <code>arn:[a-z0-9f-]+:vpc-lattice:[a-zA-Z0-9-]+:\d{12}:resourceconfiguration/rcfg-[0-9a-z]{17}</code>)
created_atstring (date-time)The date and time that the resource configuration was created, in ISO-8601 format.
custom_domain_namestringThe custom domain name of the resource configuration.
domain_verification_arnstringThe ARN of the domain verification. (pattern: <code>arn:[a-z0-9f-]+:vpc-lattice:[a-zA-Z0-9-]+:\d{12}:domainverification/dv-[a-fA-F0-9]{17}</code>)
domain_verification_idstringThe domain verification ID. (pattern: <code>dv-[a-fA-F0-9]{17}</code>)
domain_verification_statusstringThe domain verification status. (VERIFIED, PENDING, VERIFICATION_TIMED_OUT)
failure_reasonstringThe reason the create-resource-configuration request failed.
group_domainstring(GROUP) The group domain for a group resource configuration. Any domains that you create for the child resource are subdomains of the group domain. Child resources inherit the verification status of the domain.
last_updated_atstring (date-time)The most recent date and time that the resource configuration was updated, in ISO-8601 format.
port_rangesarrayThe TCP port ranges that a consumer can use to access a resource configuration. You can separate port ranges with a comma. Example: 1-65535 or 1,2,22-30
protocolstringThe TCP protocol accepted by the specified resource configuration. (TCP)
resource_configuration_definitionobjectDescribes a resource configuration.
resource_configuration_group_idstringThe ID of the group resource configuration. (pattern: <code>rcfg-[0-9a-z]{17}</code>)
resource_gateway_idstringThe ID of the resource gateway used to connect to the resource configuration in a given VPC. You can specify the resource gateway identifier only for resource configurations with type SINGLE, GROUP, or ARN. (pattern: <code>rgw-[0-9a-z]{17}</code>)
statusstringThe status of the resource configuration. (ACTIVE, CREATE_IN_PROGRESS, UPDATE_IN_PROGRESS, DELETE_IN_PROGRESS, CREATE_FAILED, UPDATE_FAILED, DELETE_FAILED)
type_stringThe type of resource configuration. SINGLE - A single resource. GROUP - A group of resources. CHILD - A single resource that is part of a group resource configuration. ARN - An Amazon Web Services resource. (GROUP, CHILD, SINGLE, ARN)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_resource_configurationselectresource_configuration_identifier, regionRetrieves information about the specified resource configuration.
list_resource_configurationsselectregionresourceGatewayIdentifier, resourceConfigurationGroupIdentifier, domainVerificationIdentifier, maxResults, nextTokenLists the resource configurations owned by or shared with this account.
create_resource_configurationinsertregion, name, typeCreates a resource configuration. A resource configuration defines a specific resource. You can associate a resource configuration with a service network or a VPC endpoint.
update_resource_configurationupdateresource_configuration_identifier, regionUpdates the specified resource configuration.
delete_resource_configurationdeleteresource_configuration_identifier, regionDeletes the specified resource configuration.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
resource_configuration_identifierstringThe ID or ARN of the resource configuration.
domainVerificationIdentifierstringThe domain verification ID.
maxResultsintegerThe maximum page size.
nextTokenstringA pagination token for the next page of results.
resourceConfigurationGroupIdentifierstringThe ID of the resource configuration of type Group.
resourceGatewayIdentifierstringThe ID of the resource gateway for the resource configuration.

SELECT examples

Retrieves information about the specified resource configuration.

SELECT
id,
name,
allow_association_to_shareable_service_network,
amazon_managed,
arn,
created_at,
custom_domain_name,
domain_verification_arn,
domain_verification_id,
domain_verification_status,
failure_reason,
group_domain,
last_updated_at,
port_ranges,
protocol,
resource_configuration_definition,
resource_configuration_group_id,
resource_gateway_id,
status,
type_
FROM aws.vpc_lattice.resource_configurations
WHERE resource_configuration_identifier = '{{ resource_configuration_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a resource configuration. A resource configuration defines a specific resource. You can associate a resource configuration with a service network or a VPC endpoint.

INSERT INTO aws.vpc_lattice.resource_configurations (
name,
type,
portRanges,
protocol,
resourceGatewayIdentifier,
resourceConfigurationGroupIdentifier,
resourceConfigurationDefinition,
allowAssociationToShareableServiceNetwork,
customDomainName,
groupDomain,
domainVerificationIdentifier,
clientToken,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ type }}' /* required */,
'{{ portRanges }}',
'{{ protocol }}',
'{{ resourceGatewayIdentifier }}',
'{{ resourceConfigurationGroupIdentifier }}',
'{{ resourceConfigurationDefinition }}',
{{ allowAssociationToShareableServiceNetwork }},
'{{ customDomainName }}',
'{{ groupDomain }}',
'{{ domainVerificationIdentifier }}',
'{{ clientToken }}',
'{{ tags }}',
'{{ region }}'
RETURNING
id,
name,
allow_association_to_shareable_service_network,
arn,
created_at,
custom_domain_name,
domain_verification_arn,
domain_verification_id,
failure_reason,
group_domain,
port_ranges,
protocol,
resource_configuration_definition,
resource_configuration_group_id,
resource_gateway_id,
status,
type_
;

UPDATE examples

Updates the specified resource configuration.

UPDATE aws.vpc_lattice.resource_configurations
SET
resourceConfigurationDefinition = '{{ resourceConfigurationDefinition }}',
allowAssociationToShareableServiceNetwork = {{ allowAssociationToShareableServiceNetwork }},
portRanges = '{{ portRanges }}'
WHERE
resource_configuration_identifier = '{{ resource_configuration_identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
allow_association_to_shareable_service_network,
arn,
port_ranges,
protocol,
resource_configuration_definition,
resource_configuration_group_id,
resource_gateway_id,
status,
type_;

DELETE examples

Deletes the specified resource configuration.

DELETE FROM aws.vpc_lattice.resource_configurations
WHERE resource_configuration_identifier = '{{ resource_configuration_identifier }}' --required
AND region = '{{ region }}' --required
;