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
3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 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 | |