Skip to main content

service_networks

Creates, updates, deletes or gets a service_network resource or lists service_networks in a region

Overview

Nameservice_networks
TypeResource
DescriptionA service network is a logical boundary for a collection of services. You can associate services and VPCs with a service network.
Idaws.vpclattice.service_networks

Fields

NameDatatypeDescription
arnstring
created_atstring
idstring
last_updated_atstring
namestring
auth_typestring
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_networks in a region.

SELECT
region,
arn,
created_at,
id,
last_updated_at,
name,
auth_type,
tags
FROM aws.vpclattice.service_networks
WHERE region = 'us-east-1';

Gets all properties from an individual service_network.

SELECT
region,
arn,
created_at,
id,
last_updated_at,
name,
auth_type,
tags
FROM aws.vpclattice.service_networks
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, using stack-deploy.

/*+ create */
INSERT INTO aws.vpclattice.service_networks (
Name,
AuthType,
Tags,
region
)
SELECT
'{{ Name }}',
'{{ AuthType }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

vpc-lattice:GetServiceNetwork,
vpc-lattice:ListTagsForResource,
vpc-lattice:CreateServiceNetwork,
vpc-lattice:TagResource,
iam:CreateServiceLinkedRole

Read

vpc-lattice:GetServiceNetwork,
vpc-lattice:ListTagsForResource

Update

vpc-lattice:GetServiceNetwork,
vpc-lattice:UpdateServiceNetwork,
vpc-lattice:TagResource,
vpc-lattice:UntagResource

Delete

vpc-lattice:DeleteServiceNetwork

List

vpc-lattice:ListServiceNetworks