associate_profile
async
¶
associate_profile(
profile_id: ResourceId,
resource_id: ResourceId,
name: Name,
*,
config_overrides: Optional[AsyncRoute53ProfilesClientConfig] = None,
tags: Optional[TagList] = None,
) -> AssociateProfileResponse
Associates a Route 53 Profiles profile with a VPC. A VPC can have only one Profile associated with it, but a Profile can be associated with 1000 of VPCs (and you can request a higher quota). For more information, see https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html#limits-api-entities.
Parameters:
-
profile_id(ResourceId) –ID of the Profile.
-
resource_id(ResourceId) –The ID of the VPC.
-
name(Name) –A name for the association.
-
tags(Optional[TagList], default:None) –A list of the tag keys and values that you want to identify the Profile association.
Raises:
-
AccessDeniedException–The current account doesn't have the IAM permissions required to perform the specified operation.
-
ConflictException–The request you submitted conflicts with an existing request.
-
InvalidParameterException–One or more parameters in this request are not valid.
-
LimitExceededException–The request caused one or more limits to be exceeded.
-
ResourceExistsException–The resource you are trying to associate, has already been associated.
-
ResourceNotFoundException–The resource you are associating is not found.
-
ThrottlingException–The request was throttled. Try again in a few minutes.
-
ValidationException–You have provided an invalid command.
-
UnknownServiceError–The service returned an error code this client does not model.