| 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.Config.TagResource
Description
Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are deleted as well.
Synopsis
- data TagResource = TagResource' {
- resourceArn :: Text
- tags :: NonEmpty Tag
- newTagResource :: Text -> NonEmpty Tag -> TagResource
- tagResource_resourceArn :: Lens' TagResource Text
- tagResource_tags :: Lens' TagResource (NonEmpty Tag)
- data TagResourceResponse = TagResourceResponse' {
- newTagResourceResponse :: TagResourceResponse
Creating a Request
data TagResource Source #
See: newTagResource smart constructor.
Constructors
| TagResource' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> NonEmpty Tag | |
| -> TagResource |
Create a value of TagResource 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:TagResource', tagResource_resourceArn - The Amazon Resource Name (ARN) that identifies the resource for which to
list the tags. Currently, the supported resources are ConfigRule,
ConfigurationAggregator and AggregatorAuthorization.
TagResource, tagResource_tags - An array of tag object.
Request Lenses
tagResource_resourceArn :: Lens' TagResource Text Source #
The Amazon Resource Name (ARN) that identifies the resource for which to
list the tags. Currently, the supported resources are ConfigRule,
ConfigurationAggregator and AggregatorAuthorization.
tagResource_tags :: Lens' TagResource (NonEmpty Tag) Source #
An array of tag object.
Destructuring the Response
data TagResourceResponse Source #
See: newTagResourceResponse smart constructor.
Constructors
| TagResourceResponse' | |
Instances
| Generic TagResourceResponse Source # | |
Defined in Amazonka.Config.TagResource Associated Types type Rep TagResourceResponse :: Type -> Type # Methods from :: TagResourceResponse -> Rep TagResourceResponse x # to :: Rep TagResourceResponse x -> TagResourceResponse # | |
| Read TagResourceResponse Source # | |
Defined in Amazonka.Config.TagResource Methods readsPrec :: Int -> ReadS TagResourceResponse # readList :: ReadS [TagResourceResponse] # | |
| Show TagResourceResponse Source # | |
Defined in Amazonka.Config.TagResource Methods showsPrec :: Int -> TagResourceResponse -> ShowS # show :: TagResourceResponse -> String # showList :: [TagResourceResponse] -> ShowS # | |
| NFData TagResourceResponse Source # | |
Defined in Amazonka.Config.TagResource Methods rnf :: TagResourceResponse -> () # | |
| Eq TagResourceResponse Source # | |
Defined in Amazonka.Config.TagResource Methods (==) :: TagResourceResponse -> TagResourceResponse -> Bool # (/=) :: TagResourceResponse -> TagResourceResponse -> Bool # | |
| type Rep TagResourceResponse Source # | |
newTagResourceResponse :: TagResourceResponse Source #
Create a value of TagResourceResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.