Skip to main content

service_network_resource_associations

Creates, updates, deletes or gets a service_network_resource_association resource or lists service_network_resource_associations in a region

Overview

Nameservice_network_resource_associations
TypeResource
DescriptionVpcLattice ServiceNetworkResourceAssociation CFN resource
Idaws.vpclattice.service_network_resource_associations

Fields

NameDatatypeDescription
idstring
arnstring
resource_configuration_idstring
service_network_idstring
tagsarray
regionstringAWS region.

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

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 service_network_resource_associations in a region.

SELECT
region,
id,
arn,
resource_configuration_id,
service_network_id,
tags
FROM aws.vpclattice.service_network_resource_associations
WHERE region = 'us-east-1';

Gets all properties from an individual service_network_resource_association.

SELECT
region,
id,
arn,
resource_configuration_id,
service_network_id,
tags
FROM aws.vpclattice.service_network_resource_associations
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.vpclattice.service_network_resource_associations (
ResourceConfigurationId,
ServiceNetworkId,
Tags,
region
)
SELECT
'{{ ResourceConfigurationId }}',
'{{ ServiceNetworkId }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

vpc-lattice:CreateServiceNetworkResourceAssociation,
vpc-lattice:GetServiceNetworkResourceAssociation,
vpc-lattice:TagResource,
vpc-lattice:ListTagsForResource

Read

vpc-lattice:GetServiceNetworkResourceAssociation,
vpc-lattice:ListTagsForResource

Update

vpc-lattice:TagResource,
vpc-lattice:UntagResource,
vpc-lattice:GetServiceNetworkResourceAssociation,
vpc-lattice:ListTagsForResource

Delete

vpc-lattice:DeleteServiceNetworkResourceAssociation,
vpc-lattice:GetServiceNetworkResourceAssociation,
vpc-lattice:UntagResource

List

vpc-lattice:ListServiceNetworkResourceAssociations