associate_resource
(**kwargs)¶Associates a canary with a group. Using groups can help you with managing and automating your canaries, and you can also view aggregated run results and statistics for all canaries in a group.
You must run this operation in the Region where the canary exists.
See also: AWS API Documentation
Request Syntax
response = client.associate_resource(
GroupIdentifier='string',
ResourceArn='string'
)
[REQUIRED]
Specifies the group. You can specify the group name, the ARN, or the group ID as the GroupIdentifier
.
[REQUIRED]
The ARN of the canary that you want to associate with the specified group.
dict
Response Syntax
{}
Response Structure
Exceptions
Synthetics.Client.exceptions.InternalServerException
Synthetics.Client.exceptions.ValidationException
Synthetics.Client.exceptions.ResourceNotFoundException
Synthetics.Client.exceptions.ConflictException
Synthetics.Client.exceptions.ServiceQuotaExceededException