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
Name | service_network_service_associations |
Type | Resource |
Description | Associates a service with a service network. |
Id | aws.vpclattice.service_network_service_associations |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | |
created_at | string | |
dns_entry | object | |
id | string | |
service_network_arn | string | |
service_network_id | string | |
service_network_identifier | string | |
service_network_name | string | |
service_arn | string | |
service_id | string | |
service_identifier | string | |
service_name | string | |
status | string | |
tags | array | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.vpclattice.service_network_service_associations (
DnsEntry,
ServiceNetworkIdentifier,
ServiceIdentifier,
Tags,
region
)
SELECT
'{{ DnsEntry }}',
'{{ ServiceNetworkIdentifier }}',
'{{ ServiceIdentifier }}',
'{{ Tags }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.vpclattice.service_network_service_associations (
DnsEntry,
ServiceNetworkIdentifier,
ServiceIdentifier,
Tags,
region
)
SELECT
'{{ DnsEntry }}',
'{{ ServiceNetworkIdentifier }}',
'{{ ServiceIdentifier }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: service_network_service_association
props:
- name: DnsEntry
value:
DomainName: '{{ DomainName }}'
HostedZoneId: '{{ HostedZoneId }}'
- name: ServiceNetworkIdentifier
value: '{{ ServiceNetworkIdentifier }}'
- name: ServiceIdentifier
value: '{{ ServiceIdentifier }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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