| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Synthetics.AssociateResource
Description
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.
Synopsis
- data AssociateResource = AssociateResource' {}
- newAssociateResource :: Text -> Text -> AssociateResource
- associateResource_groupIdentifier :: Lens' AssociateResource Text
- associateResource_resourceArn :: Lens' AssociateResource Text
- data AssociateResourceResponse = AssociateResourceResponse' {
- httpStatus :: Int
- newAssociateResourceResponse :: Int -> AssociateResourceResponse
- associateResourceResponse_httpStatus :: Lens' AssociateResourceResponse Int
Creating a Request
data AssociateResource Source #
See: newAssociateResource smart constructor.
Constructors
| AssociateResource' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> AssociateResource |
Create a value of AssociateResource with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:groupIdentifier:AssociateResource', associateResource_groupIdentifier - Specifies the group. You can specify the group name, the ARN, or the
group ID as the GroupIdentifier.
$sel:resourceArn:AssociateResource', associateResource_resourceArn - The ARN of the canary that you want to associate with the specified
group.
Request Lenses
associateResource_groupIdentifier :: Lens' AssociateResource Text Source #
Specifies the group. You can specify the group name, the ARN, or the
group ID as the GroupIdentifier.
associateResource_resourceArn :: Lens' AssociateResource Text Source #
The ARN of the canary that you want to associate with the specified group.
Destructuring the Response
data AssociateResourceResponse Source #
See: newAssociateResourceResponse smart constructor.
Constructors
| AssociateResourceResponse' | |
Fields
| |
Instances
newAssociateResourceResponse Source #
Create a value of AssociateResourceResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:AssociateResourceResponse', associateResourceResponse_httpStatus - The response's http status code.
Response Lenses
associateResourceResponse_httpStatus :: Lens' AssociateResourceResponse Int Source #
The response's http status code.