Skip to main content

resource_gateways

Creates, updates, deletes or gets a resource_gateway resource or lists resource_gateways in a region

Overview

Nameresource_gateways
TypeResource
DescriptionCreates a resource gateway for a service.
Idaws.vpclattice.resource_gateways

Fields

NameDatatypeDescription
ip_address_typestring
vpc_identifierstring
idstring
arnstring
subnet_idsarrayThe ID of one or more subnets in which to create an endpoint network interface.
security_group_idsarrayThe ID of one or more security groups to associate with the endpoint network interface.
tagsarray
namestring
regionstringAWS region.

For more information, see AWS::VpcLattice::ResourceGateway.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all resource_gateways in a region.

SELECT
region,
ip_address_type,
vpc_identifier,
id,
arn,
subnet_ids,
security_group_ids,
tags,
name
FROM aws.vpclattice.resource_gateways
WHERE region = 'us-east-1';

Gets all properties from an individual resource_gateway.

SELECT
region,
ip_address_type,
vpc_identifier,
id,
arn,
subnet_ids,
security_group_ids,
tags,
name
FROM aws.vpclattice.resource_gateways
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

Use the following StackQL query and manifest file to create a new resource_gateway resource, using stack-deploy.

/*+ create */
INSERT INTO aws.vpclattice.resource_gateways (
IpAddressType,
VpcIdentifier,
SubnetIds,
SecurityGroupIds,
Tags,
Name,
region
)
SELECT
'{{ IpAddressType }}',
'{{ VpcIdentifier }}',
'{{ SubnetIds }}',
'{{ SecurityGroupIds }}',
'{{ Tags }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.vpclattice.resource_gateways
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

To operate on the resource_gateways resource, the following permissions are required:

Read

vpc-lattice:GetResourceGateway,
vpc-lattice:ListTagsForResource

Create

vpc-lattice:CreateResourceGateway,
vpc-lattice:GetResourceGateway,
vpc-lattice:TagResource,
vpc-lattice:ListTagsForResource,
ec2:DescribeVpcs,
ec2:DescribeSubnets,
ec2:DescribeSecurityGroups

Update

vpc-lattice:UpdateResourceGateway,
vpc-lattice:GetResourceGateway,
vpc-lattice:TagResource,
vpc-lattice:UntagResource,
vpc-lattice:ListTagsForResource,
ec2:DescribeVpcs,
ec2:DescribeSubnets,
ec2:DescribeSecurityGroups

List

vpc-lattice:ListResourceGateways

Delete

vpc-lattice:DeleteResourceGateway,
vpc-lattice:GetResourceGateway