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 | awscc.vpclattice.service_network_service_associations |
Fields
- get (all properties)
- list (identifiers only)
| 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. |
| Name | Datatype | Description |
|---|---|---|
arn | string | |
region | string | AWS region. |
For more information, see AWS::VpcLattice::ServiceNetworkServiceAssociation.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | service_network_service_associations | INSERT | region |
delete_resource | service_network_service_associations | DELETE | Identifier, region |
update_resource | service_network_service_associations | UPDATE | Identifier, PatchDocument, region |
list_resources | service_network_service_associations_list_only | SELECT | region |
get_resource | service_network_service_associations | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 awscc.vpclattice.service_network_service_associations
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';
Lists all service_network_service_associations in a region.
SELECT
region,
arn
FROM awscc.vpclattice.service_network_service_associations_list_only
WHERE
region = '{{ region }}';
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 awscc.vpclattice.service_network_service_associations (
DnsEntry,
ServiceNetworkIdentifier,
ServiceIdentifier,
Tags,
region
)
SELECT
'{{ dns_entry }}',
'{{ service_network_identifier }}',
'{{ service_identifier }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.vpclattice.service_network_service_associations (
DnsEntry,
ServiceNetworkIdentifier,
ServiceIdentifier,
Tags,
region
)
SELECT
'{{ dns_entry }}',
'{{ service_network_identifier }}',
'{{ service_identifier }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
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: dns_entry
value:
domain_name: '{{ domain_name }}'
hosted_zone_id: '{{ hosted_zone_id }}'
- name: service_network_identifier
value: '{{ service_network_identifier }}'
- name: service_identifier
value: '{{ service_identifier }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a service_network_service_association resource, using stack-deploy.
/*+ update */
UPDATE awscc.vpclattice.service_network_service_associations
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.vpclattice.service_network_service_associations
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
Additional Parameters
Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:
| Parameter | Description |
|---|---|
ClientToken | A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.A client token is valid for 36 hours once used. After that, a resource request with the same client token is treated as a new request. If you do not specify a client token, one is generated for inclusion in the request. |
RoleArn | The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.If you do not specify a role, a temporary session is created using your AWS user credentials. |
TypeVersionId | For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used. |
Permissions
To operate on the service_network_service_associations resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
vpc-lattice:CreateServiceNetworkServiceAssociation,
vpc-lattice:GetServiceNetworkServiceAssociation,
vpc-lattice:TagResource,
vpc-lattice:ListTagsForResource
vpc-lattice:GetServiceNetworkServiceAssociation,
vpc-lattice:ListTagsForResource
vpc-lattice:TagResource,
vpc-lattice:UntagResource,
vpc-lattice:GetServiceNetworkServiceAssociation,
vpc-lattice:ListTagsForResource
vpc-lattice:DeleteServiceNetworkServiceAssociation,
vpc-lattice:GetServiceNetworkServiceAssociation,
vpc-lattice:UntagResource
vpc-lattice:ListServiceNetworkServiceAssociations