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 |
Removes any tags with the specified keys from the specified resource.
You can attach tags to the following resources in AWS Organizations.
- AWS 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.
UntagResource' | |
|
Instances
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.
- AWS 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.
- AWS 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.
Instances
Eq UntagResourceResponse Source # | |
Defined in Amazonka.Organizations.UntagResource (==) :: UntagResourceResponse -> UntagResourceResponse -> Bool # (/=) :: UntagResourceResponse -> UntagResourceResponse -> Bool # | |
Read UntagResourceResponse Source # | |
Show UntagResourceResponse Source # | |
Defined in Amazonka.Organizations.UntagResource showsPrec :: Int -> UntagResourceResponse -> ShowS # show :: UntagResourceResponse -> String # showList :: [UntagResourceResponse] -> ShowS # | |
Generic UntagResourceResponse Source # | |
Defined in Amazonka.Organizations.UntagResource type Rep UntagResourceResponse :: Type -> Type # | |
NFData UntagResourceResponse Source # | |
Defined in Amazonka.Organizations.UntagResource rnf :: UntagResourceResponse -> () # | |
type Rep UntagResourceResponse Source # | |
Defined in Amazonka.Organizations.UntagResource |
newUntagResourceResponse :: UntagResourceResponse Source #
Create a value of UntagResourceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.