create_service_network_resource_association
async
¶
create_service_network_resource_association(
resource_configuration_identifier: ResourceConfigurationIdentifier,
service_network_identifier: ServiceNetworkIdentifierWithoutRegex,
*,
config_overrides: Optional[AsyncVPCLatticeClientConfig] = None,
client_token: Optional[ClientToken] = None,
private_dns_enabled: Optional[Boolean] = None,
tags: Optional[TagMap] = None,
) -> CreateServiceNetworkResourceAssociationResponse
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.
Parameters:
-
client_token(Optional[ClientToken], default:None) –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.
-
resource_configuration_identifier(ResourceConfigurationIdentifier) –The ID of the resource configuration to associate with the service network.
-
service_network_identifier(ServiceNetworkIdentifierWithoutRegex) –The ID of the service network to associate with the resource configuration.
-
private_dns_enabled(Optional[Boolean], default:None) –Indicates if private DNS is enabled for the service network resource association.
-
tags(Optional[TagMap], default:None) –A key-value pair to associate with a resource.
Raises:
-
AccessDeniedException–The user does not have sufficient access to perform this action.
-
ConflictException–The request conflicts with the current state of the resource. Updating or deleting a resource can cause an inconsistent state.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The request references a resource that does not exist.
-
ServiceQuotaExceededException–The request would cause a service quota to be exceeded.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The input does not satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_vpc_lattice/_services/async_vpc_lattice.py
3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 | |