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 tags to a cluster.
A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, you will receive an error and the attempt will fail.
If you specify a key that already exists for the resource, the value for that key will be updated with the new value.
Synopsis
- data CreateTags = CreateTags' {
- resourceName :: Text
- tags :: [Tag]
- newCreateTags :: Text -> CreateTags
- createTags_resourceName :: Lens' CreateTags Text
- createTags_tags :: Lens' CreateTags [Tag]
- data CreateTagsResponse = CreateTagsResponse' {
- newCreateTagsResponse :: CreateTagsResponse
Creating a Request
data CreateTags Source #
Contains the output from the CreateTags
action.
See: newCreateTags
smart constructor.
CreateTags' | |
|
Instances
Create a value of CreateTags
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:resourceName:CreateTags'
, createTags_resourceName
- The Amazon Resource Name (ARN) to which you want to add the tag or tags.
For example, arn:aws:redshift:us-east-2:123456789:cluster:t1
.
$sel:tags:CreateTags'
, createTags_tags
- One or more name/value pairs to add as tags to the specified resource.
Each tag name is passed in with the parameter Key
and the
corresponding value is passed in with the parameter Value
. The Key
and Value
parameters are separated by a comma (,). Separate multiple
tags with a space. For example,
--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0"
.
Request Lenses
createTags_resourceName :: Lens' CreateTags Text Source #
The Amazon Resource Name (ARN) to which you want to add the tag or tags.
For example, arn:aws:redshift:us-east-2:123456789:cluster:t1
.
createTags_tags :: Lens' CreateTags [Tag] Source #
One or more name/value pairs to add as tags to the specified resource.
Each tag name is passed in with the parameter Key
and the
corresponding value is passed in with the parameter Value
. The Key
and Value
parameters are separated by a comma (,). Separate multiple
tags with a space. For example,
--tags "Key"="owner","Value"="admin" "Key"="environment","Value"="test" "Key"="version","Value"="1.0"
.
Destructuring the Response
data CreateTagsResponse Source #
See: newCreateTagsResponse
smart constructor.
Instances
Eq CreateTagsResponse Source # | |
Defined in Amazonka.Redshift.CreateTags (==) :: CreateTagsResponse -> CreateTagsResponse -> Bool # (/=) :: CreateTagsResponse -> CreateTagsResponse -> Bool # | |
Read CreateTagsResponse Source # | |
Defined in Amazonka.Redshift.CreateTags | |
Show CreateTagsResponse Source # | |
Defined in Amazonka.Redshift.CreateTags showsPrec :: Int -> CreateTagsResponse -> ShowS # show :: CreateTagsResponse -> String # showList :: [CreateTagsResponse] -> ShowS # | |
Generic CreateTagsResponse Source # | |
Defined in Amazonka.Redshift.CreateTags type Rep CreateTagsResponse :: Type -> Type # from :: CreateTagsResponse -> Rep CreateTagsResponse x # to :: Rep CreateTagsResponse x -> CreateTagsResponse # | |
NFData CreateTagsResponse Source # | |
Defined in Amazonka.Redshift.CreateTags rnf :: CreateTagsResponse -> () # | |
type Rep CreateTagsResponse Source # | |
newCreateTagsResponse :: CreateTagsResponse Source #
Create a value of CreateTagsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.