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 |
Removes tag keys from the specified resource.
Synopsis
- data RemoveTagsFromResource = RemoveTagsFromResource' {}
- newRemoveTagsFromResource :: ResourceTypeForTagging -> Text -> RemoveTagsFromResource
- removeTagsFromResource_resourceType :: Lens' RemoveTagsFromResource ResourceTypeForTagging
- removeTagsFromResource_resourceId :: Lens' RemoveTagsFromResource Text
- removeTagsFromResource_tagKeys :: Lens' RemoveTagsFromResource [Text]
- data RemoveTagsFromResourceResponse = RemoveTagsFromResourceResponse' {
- httpStatus :: Int
- newRemoveTagsFromResourceResponse :: Int -> RemoveTagsFromResourceResponse
- removeTagsFromResourceResponse_httpStatus :: Lens' RemoveTagsFromResourceResponse Int
Creating a Request
data RemoveTagsFromResource Source #
See: newRemoveTagsFromResource
smart constructor.
RemoveTagsFromResource' | |
|
Instances
newRemoveTagsFromResource Source #
Create a value of RemoveTagsFromResource
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:
RemoveTagsFromResource
, removeTagsFromResource_resourceType
- The type of resource from which you want to remove a tag.
The ManagedInstance
type for this API operation is only for
on-premises managed nodes. Specify the name of the managed node in the
following format: mi-
ID_number
. For example, mi-1a2b3c4d5e6f
.
RemoveTagsFromResource
, removeTagsFromResource_resourceId
- The ID of the resource from which you want to remove tags. For example:
ManagedInstance: mi-012345abcde
MaintenanceWindow: mw-012345abcde
Automation
: example-c160-4567-8519-012345abcde
PatchBaseline: pb-012345abcde
OpsMetadata object: ResourceID
for tagging is created from the Amazon
Resource Name (ARN) for the object. Specifically, ResourceID
is
created from the strings that come after the word opsmetadata
in the
ARN. For example, an OpsMetadata object with an ARN of
arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager
has a ResourceID
of either aws/ssm/MyGroup/appmanager
or
/aws/ssm/MyGroup/appmanager
.
For the Document and Parameter values, use the name of the resource.
The ManagedInstance
type for this API operation is only for
on-premises managed nodes. Specify the name of the managed node in the
following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.
$sel:tagKeys:RemoveTagsFromResource'
, removeTagsFromResource_tagKeys
- Tag keys that you want to remove from the specified resource.
Request Lenses
removeTagsFromResource_resourceType :: Lens' RemoveTagsFromResource ResourceTypeForTagging Source #
The type of resource from which you want to remove a tag.
The ManagedInstance
type for this API operation is only for
on-premises managed nodes. Specify the name of the managed node in the
following format: mi-
ID_number
. For example, mi-1a2b3c4d5e6f
.
removeTagsFromResource_resourceId :: Lens' RemoveTagsFromResource Text Source #
The ID of the resource from which you want to remove tags. For example:
ManagedInstance: mi-012345abcde
MaintenanceWindow: mw-012345abcde
Automation
: example-c160-4567-8519-012345abcde
PatchBaseline: pb-012345abcde
OpsMetadata object: ResourceID
for tagging is created from the Amazon
Resource Name (ARN) for the object. Specifically, ResourceID
is
created from the strings that come after the word opsmetadata
in the
ARN. For example, an OpsMetadata object with an ARN of
arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager
has a ResourceID
of either aws/ssm/MyGroup/appmanager
or
/aws/ssm/MyGroup/appmanager
.
For the Document and Parameter values, use the name of the resource.
The ManagedInstance
type for this API operation is only for
on-premises managed nodes. Specify the name of the managed node in the
following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.
removeTagsFromResource_tagKeys :: Lens' RemoveTagsFromResource [Text] Source #
Tag keys that you want to remove from the specified resource.
Destructuring the Response
data RemoveTagsFromResourceResponse Source #
See: newRemoveTagsFromResourceResponse
smart constructor.
RemoveTagsFromResourceResponse' | |
|
Instances
Generic RemoveTagsFromResourceResponse Source # | |
Read RemoveTagsFromResourceResponse Source # | |
Show RemoveTagsFromResourceResponse Source # | |
Defined in Amazonka.SSM.RemoveTagsFromResource | |
NFData RemoveTagsFromResourceResponse Source # | |
Defined in Amazonka.SSM.RemoveTagsFromResource rnf :: RemoveTagsFromResourceResponse -> () # | |
Eq RemoveTagsFromResourceResponse Source # | |
type Rep RemoveTagsFromResourceResponse Source # | |
Defined in Amazonka.SSM.RemoveTagsFromResource type Rep RemoveTagsFromResourceResponse = D1 ('MetaData "RemoveTagsFromResourceResponse" "Amazonka.SSM.RemoveTagsFromResource" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "RemoveTagsFromResourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newRemoveTagsFromResourceResponse Source #
Create a value of RemoveTagsFromResourceResponse
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:RemoveTagsFromResourceResponse'
, removeTagsFromResourceResponse_httpStatus
- The response's http status code.
Response Lenses
removeTagsFromResourceResponse_httpStatus :: Lens' RemoveTagsFromResourceResponse Int Source #
The response's http status code.