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
Idawscc.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

NameResourceAccessible byRequired Params
create_resourceservice_network_resource_associationsINSERTregion
delete_resourceservice_network_resource_associationsDELETEIdentifier, region
update_resourceservice_network_resource_associationsUPDATEIdentifier, PatchDocument, region
list_resourcesservice_network_resource_associations_list_onlySELECTregion
get_resourceservice_network_resource_associationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual service_network_resource_association.

SELECT
region,
id,
arn,
resource_configuration_id,
service_network_id,
tags
FROM awscc.vpclattice.service_network_resource_associations
WHERE
region = 'us-east-1' AND
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 awscc.vpclattice.service_network_resource_associations (
ResourceConfigurationId,
ServiceNetworkId,
Tags,
region
)
SELECT
'{{ resource_configuration_id }}',
'{{ service_network_id }}',
'{{ tags }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.vpclattice.service_network_resource_associations
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.vpclattice.service_network_resource_associations
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

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

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