Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Adds metadata tags to an DMS resource, including replication instance, endpoint, security group, and migration task. These tags can also be used with cost allocation reporting to track cost associated with DMS resources, or used in a Condition statement in an IAM policy for DMS. For more information, see Tag data type description.
Synopsis
- data AddTagsToResource = AddTagsToResource' {
- resourceArn :: Text
- tags :: [Tag]
- newAddTagsToResource :: Text -> AddTagsToResource
- addTagsToResource_resourceArn :: Lens' AddTagsToResource Text
- addTagsToResource_tags :: Lens' AddTagsToResource [Tag]
- data AddTagsToResourceResponse = AddTagsToResourceResponse' {
- httpStatus :: Int
- newAddTagsToResourceResponse :: Int -> AddTagsToResourceResponse
- addTagsToResourceResponse_httpStatus :: Lens' AddTagsToResourceResponse Int
Creating a Request
data AddTagsToResource Source #
Associates a set of tags with an DMS resource.
See: newAddTagsToResource
smart constructor.
AddTagsToResource' | |
|
Instances
Create a value of AddTagsToResource
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:resourceArn:AddTagsToResource'
, addTagsToResource_resourceArn
- Identifies the DMS resource to which tags should be added. The value for
this parameter is an Amazon Resource Name (ARN).
For DMS, you can tag a replication instance, an endpoint, or a replication task.
$sel:tags:AddTagsToResource'
, addTagsToResource_tags
- One or more tags to be assigned to the resource.
Request Lenses
addTagsToResource_resourceArn :: Lens' AddTagsToResource Text Source #
Identifies the DMS resource to which tags should be added. The value for this parameter is an Amazon Resource Name (ARN).
For DMS, you can tag a replication instance, an endpoint, or a replication task.
addTagsToResource_tags :: Lens' AddTagsToResource [Tag] Source #
One or more tags to be assigned to the resource.
Destructuring the Response
data AddTagsToResourceResponse Source #
See: newAddTagsToResourceResponse
smart constructor.
AddTagsToResourceResponse' | |
|
Instances
newAddTagsToResourceResponse Source #
Create a value of AddTagsToResourceResponse
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:AddTagsToResourceResponse'
, addTagsToResourceResponse_httpStatus
- The response's http status code.
Response Lenses
addTagsToResourceResponse_httpStatus :: Lens' AddTagsToResourceResponse Int Source #
The response's http status code.