create_service_network_resource_association
¶
create_service_network_resource_association(
resource_configuration_identifier: ResourceConfigurationIdentifier,
service_network_identifier: ServiceNetworkIdentifierWithoutRegex,
*,
config_overrides: Optional[VPCLatticeClientConfig] = 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/vpc_lattice.py
3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 | |