| 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.Organizations.UntagResource
Description
Removes any tags with the specified keys from the specified resource.
You can attach tags to the following resources in Organizations.
- Amazon Web Services account
- Organization root
- Organizational unit (OU)
- Policy (any type)
This operation can be called only from the organization's management account.
Synopsis
- data UntagResource = UntagResource' {
- resourceId :: Text
- tagKeys :: [Text]
- newUntagResource :: Text -> UntagResource
- untagResource_resourceId :: Lens' UntagResource Text
- untagResource_tagKeys :: Lens' UntagResource [Text]
- data UntagResourceResponse = UntagResourceResponse' {
- newUntagResourceResponse :: UntagResourceResponse
Creating a Request
data UntagResource Source #
See: newUntagResource smart constructor.
Constructors
| UntagResource' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UntagResource |
Create a value of UntagResource 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:resourceId:UntagResource', untagResource_resourceId - The ID of the resource to remove a tag from.
You can specify any of the following taggable resources.
- Amazon Web Services account – specify the account ID number.
- Organizational unit – specify the OU ID that begins with
ou-and looks similar to:ou-1a2b-34uvwxyz - Root – specify the root ID that begins with
r-and looks similar to:r-1a2b - Policy – specify the policy ID that begins with
p-andlooks similar to:p-12abcdefg3
$sel:tagKeys:UntagResource', untagResource_tagKeys - The list of keys for tags to remove from the specified resource.
Request Lenses
untagResource_resourceId :: Lens' UntagResource Text Source #
The ID of the resource to remove a tag from.
You can specify any of the following taggable resources.
- Amazon Web Services account – specify the account ID number.
- Organizational unit – specify the OU ID that begins with
ou-and looks similar to:ou-1a2b-34uvwxyz - Root – specify the root ID that begins with
r-and looks similar to:r-1a2b - Policy – specify the policy ID that begins with
p-andlooks similar to:p-12abcdefg3
untagResource_tagKeys :: Lens' UntagResource [Text] Source #
The list of keys for tags to remove from the specified resource.
Destructuring the Response
data UntagResourceResponse Source #
See: newUntagResourceResponse smart constructor.
Constructors
| UntagResourceResponse' | |
Instances
newUntagResourceResponse :: UntagResourceResponse Source #
Create a value of UntagResourceResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.