associate_resource_to_profile
async
¶
associate_resource_to_profile(
profile_id: ResourceId,
resource_arn: Arn,
name: Name,
*,
config_overrides: Optional[AsyncRoute53ProfilesClientConfig] = None,
resource_properties: Optional[ResourceProperties] = None,
) -> AssociateResourceToProfileResponse
Associates a DNS reource configuration to a Route 53 Profile.
Parameters:
-
profile_id(ResourceId) –ID of the Profile.
-
resource_arn(Arn) –Amazon resource number, ARN, of the DNS resource.
-
name(Name) –Name for the resource association.
-
resource_properties(Optional[ResourceProperties], default:None) –If you are adding a DNS Firewall rule group, include also a priority. The priority indicates the processing order for the rule groups, starting with the priority assinged the lowest value.
The allowed values for priority are between 100 and 9900.
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.
-
InternalServiceErrorException–An internal server error occured. Retry your request.
-
InvalidParameterException–One or more parameters in this request are not valid.
-
LimitExceededException–The request caused one or more limits to be exceeded.
-
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.