Skip to main content

resource_gateways

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

Overview

Nameresource_gateways
TypeResource
Idaws.vpc_lattice.resource_gateways

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the resource gateway. (pattern: <code>rgw-[0-9a-z]{17}</code>)
namestringThe name of the resource gateway. (pattern: <code>(?!rgw-)(?![-])(?!.[-]$)(?!.[-]{2})[a-z0-9-]+</code>)
arnstringThe Amazon Resource Name (ARN) of the resource gateway. (pattern: <code>arn:[a-z0-9-]+:vpc-lattice:[a-zA-Z0-9-]+:\d{12}:resourcegateway/rgw-[0-9a-z]{17}</code>)
created_atstring (date-time)The date and time that the resource gateway was created, in ISO-8601 format.
ip_address_typestringThe type of IP address for the resource gateway. (IPV4, IPV6, DUALSTACK)
ipv_4_addresses_per_eniintegerThe number of IPv4 addresses in each ENI for the resource gateway.
last_updated_atstring (date-time)The date and time that the resource gateway was last updated, in ISO-8601 format.
managed_bystringThe Amazon Web Services service that manages the resource gateway.
resource_config_dns_resolutionstringThe DNS resolution type for resource configurations that are associated with this resource gateway. (IN_VPC, PUBLIC)
security_group_idsarrayThe security group IDs associated with the resource gateway.
service_managedbooleanIndicates whether the resource gateway is managed by an Amazon Web Services service.
statusstringThe status for the resource gateway. (ACTIVE, CREATE_IN_PROGRESS, UPDATE_IN_PROGRESS, DELETE_IN_PROGRESS, CREATE_FAILED, UPDATE_FAILED, DELETE_FAILED)
subnet_idsarrayThe IDs of the VPC subnets for resource gateway.
vpc_idstringThe ID of the VPC for the resource gateway. (pattern: <code>vpc-(([0-9a-z]{8})|([0-9a-z]{17}))</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_resource_gatewayselectresource_gateway_identifier, regionRetrieves information about the specified resource gateway.
list_resource_gatewaysselectregionmaxResults, nextTokenLists the resource gateways that you own or that were shared with you.
create_resource_gatewayinsertregion, nameA resource gateway is a point of ingress into the VPC where a resource resides. It spans multiple Availability Zones. For your resource to be accessible from all Availability Zones, you should create your resource gateways to span as many Availability Zones as possible. A VPC can have multiple resource gateways.
update_resource_gatewayupdateresource_gateway_identifier, regionUpdates the specified resource gateway.
delete_resource_gatewaydeleteresource_gateway_identifier, regionDeletes the specified resource gateway.

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_gateway_identifierstringThe ID or ARN of the resource gateway.
maxResultsintegerThe maximum page size.
nextTokenstringIf there are additional results, a pagination token for the next page of results.

SELECT examples

Retrieves information about the specified resource gateway.

SELECT
id,
name,
arn,
created_at,
ip_address_type,
ipv_4_addresses_per_eni,
last_updated_at,
managed_by,
resource_config_dns_resolution,
security_group_ids,
service_managed,
status,
subnet_ids,
vpc_id
FROM aws.vpc_lattice.resource_gateways
WHERE resource_gateway_identifier = '{{ resource_gateway_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

A resource gateway is a point of ingress into the VPC where a resource resides. It spans multiple Availability Zones. For your resource to be accessible from all Availability Zones, you should create your resource gateways to span as many Availability Zones as possible. A VPC can have multiple resource gateways.

INSERT INTO aws.vpc_lattice.resource_gateways (
clientToken,
name,
vpcIdentifier,
subnetIds,
securityGroupIds,
ipAddressType,
ipv4AddressesPerEni,
resourceConfigDnsResolution,
tags,
region
)
SELECT
'{{ clientToken }}',
'{{ name }}' /* required */,
'{{ vpcIdentifier }}',
'{{ subnetIds }}',
'{{ securityGroupIds }}',
'{{ ipAddressType }}',
{{ ipv4AddressesPerEni }},
'{{ resourceConfigDnsResolution }}',
'{{ tags }}',
'{{ region }}'
RETURNING
id,
name,
arn,
ip_address_type,
ipv_4_addresses_per_eni,
resource_config_dns_resolution,
security_group_ids,
status,
subnet_ids,
vpc_identifier
;

UPDATE examples

Updates the specified resource gateway.

UPDATE aws.vpc_lattice.resource_gateways
SET
securityGroupIds = '{{ securityGroupIds }}'
WHERE
resource_gateway_identifier = '{{ resource_gateway_identifier }}' --required
AND region = '{{ region }}' --required
RETURNING
id,
name,
arn,
ip_address_type,
security_group_ids,
status,
subnet_ids,
vpc_id;

DELETE examples

Deletes the specified resource gateway.

DELETE FROM aws.vpc_lattice.resource_gateways
WHERE resource_gateway_identifier = '{{ resource_gateway_identifier }}' --required
AND region = '{{ region }}' --required
;