VPCLattice / Client / create_service_network_resource_association
create_service_network_resource_association#
- VPCLattice.Client.create_service_network_resource_association(**kwargs)#
Associates the specified service network with the specified resource configuration. This allows the resource configuration to receive connections through the service network, including through a service network VPC endpoint.
See also: AWS API Documentation
Request Syntax
response = client.create_service_network_resource_association( clientToken='string', resourceConfigurationIdentifier='string', serviceNetworkIdentifier='string', tags={ 'string': 'string' } )
- Parameters:
clientToken (string) –
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren’t identical, the retry fails.
This field is autopopulated if not provided.
resourceConfigurationIdentifier (string) –
[REQUIRED]
The ID of the resource configuration to associate with the service network.
serviceNetworkIdentifier (string) –
[REQUIRED]
The ID of the service network to associate with the resource configuration.
tags (dict) –
The tags for the association.
(string) –
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 128 Unicode characters. Valid characters are Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @ May not begin with
aws:
.(string) –
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters. Valid characters are Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @
- Return type:
dict
- Returns:
Response Syntax
{ 'arn': 'string', 'createdBy': 'string', 'id': 'string', 'status': 'CREATE_IN_PROGRESS'|'ACTIVE'|'PARTIAL'|'DELETE_IN_PROGRESS'|'CREATE_FAILED'|'DELETE_FAILED' }
Response Structure
(dict) –
arn (string) –
The Amazon Resource Name (ARN) of the association.
createdBy (string) –
The ID of the account that created the association.
id (string) –
The ID of the association.
status (string) –
The status of the association.
Exceptions
VPCLattice.Client.exceptions.ValidationException
VPCLattice.Client.exceptions.AccessDeniedException
VPCLattice.Client.exceptions.ThrottlingException
VPCLattice.Client.exceptions.ResourceNotFoundException
VPCLattice.Client.exceptions.ConflictException
VPCLattice.Client.exceptions.ServiceQuotaExceededException
VPCLattice.Client.exceptions.InternalServerException