Retrieves a Route 53 Profile association for a VPC. A VPC can have only one Profile association, but a Profile can be associated with up to 5000 VPCs.
Parameters:
-
profile_association_id
(ResourceId)
–
The identifier of the association you want to get information about.
Raises:
Source code in docs_src/capo_route53profiles/_services/route53_profiles.py
| def get_profile_association(
self,
profile_association_id: "capo_route53profiles.types.resource_id.ResourceId",
*,
config_overrides: Optional[Route53ProfilesClientConfig] = None,
) -> "capo_route53profiles.types.get_profile_association_response.GetProfileAssociationResponse":
"""<p> Retrieves a Route 53 Profile association for a VPC. A VPC can have only one Profile association, but a Profile can be associated with up to 5000 VPCs. </p>
Args:
profile_association_id: <p> The identifier of the association you want to get information about. </p>
Raises:
capo_route53profiles.errors.access_denied_exception.AccessDeniedException: <p> The current account doesn't have the IAM permissions required to perform the specified operation. </p>
capo_route53profiles.errors.resource_not_found_exception.ResourceNotFoundException: <p> The resource you are associating is not found. </p>
capo_route53profiles.errors.throttling_exception.ThrottlingException: <p> The request was throttled. Try again in a few minutes. </p>
capo_route53profiles.errors.validation_exception.ValidationException: <p> You have provided an invalid command. </p>
capo_route53profiles.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_route53profiles.types.get_profile_association_request.GetProfileAssociationRequest]",
) -> OperationResponse[
"capo_route53profiles.types.get_profile_association_response.GetProfileAssociationResponse"
]:
import capo_route53profiles._operations.route53_profiles.get_profile_association
output, http_response = (
capo_route53profiles._operations.route53_profiles.get_profile_association.get_profile_association(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetProfileAssociation")
)
input_: capo_route53profiles.types.get_profile_association_request.GetProfileAssociationRequest = {
"profile_association_id": profile_association_id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|