Skip to main content

service_network_service_associations

Creates, updates, deletes or gets a service_network_service_association resource or lists service_network_service_associations in a region

Overview

Nameservice_network_service_associations
TypeResource
DescriptionAssociates a service with a service network.
Idaws.vpclattice.service_network_service_associations

Fields

NameDatatypeDescription
arnstring
created_atstring
dns_entryobject
idstring
service_network_arnstring
service_network_idstring
service_network_identifierstring
service_network_namestring
service_arnstring
service_idstring
service_identifierstring
service_namestring
statusstring
tagsarray
regionstringAWS region.

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

SELECT
region,
arn,
created_at,
dns_entry,
id,
service_network_arn,
service_network_id,
service_network_identifier,
service_network_name,
service_arn,
service_id,
service_identifier,
service_name,
status,
tags
FROM aws.vpclattice.service_network_service_associations
WHERE region = 'us-east-1';

Gets all properties from an individual service_network_service_association.

SELECT
region,
arn,
created_at,
dns_entry,
id,
service_network_arn,
service_network_id,
service_network_identifier,
service_network_name,
service_arn,
service_id,
service_identifier,
service_name,
status,
tags
FROM aws.vpclattice.service_network_service_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_service_association resource, using stack-deploy.

/*+ create */
INSERT INTO aws.vpclattice.service_network_service_associations (
DnsEntry,
ServiceNetworkIdentifier,
ServiceIdentifier,
Tags,
region
)
SELECT
'{{ DnsEntry }}',
'{{ ServiceNetworkIdentifier }}',
'{{ ServiceIdentifier }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

vpc-lattice:CreateServiceNetworkServiceAssociation,
vpc-lattice:GetServiceNetworkServiceAssociation,
vpc-lattice:TagResource,
vpc-lattice:ListTagsForResource

Read

vpc-lattice:GetServiceNetworkServiceAssociation,
vpc-lattice:ListTagsForResource

Update

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

Delete

vpc-lattice:DeleteServiceNetworkServiceAssociation,
vpc-lattice:GetServiceNetworkServiceAssociation

List

vpc-lattice:ListServiceNetworkServiceAssociations