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 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:
$sel:resourceType: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 instances. Specify the name of the managed instance
in the following format: mi-ID_number
. For example,
mi-1a2b3c4d5e6f
.
$sel:resourceId:RemoveTagsFromResource'
, removeTagsFromResource_resourceId
- The ID of the resource from which you want to remove tags. For example:
ManagedInstance: mi-012345abcde
MaintenanceWindow: mw-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 instances. Specify the name of the managed instance 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 instances. Specify the name of the managed instance
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
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 instances. Specify the name of the managed instance 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
Eq RemoveTagsFromResourceResponse Source # | |
Read RemoveTagsFromResourceResponse Source # | |
Show RemoveTagsFromResourceResponse Source # | |
Defined in Amazonka.SSM.RemoveTagsFromResource | |
Generic RemoveTagsFromResourceResponse Source # | |
NFData RemoveTagsFromResourceResponse Source # | |
Defined in Amazonka.SSM.RemoveTagsFromResource rnf :: RemoveTagsFromResourceResponse -> () # | |
type Rep RemoveTagsFromResourceResponse Source # | |
Defined in Amazonka.SSM.RemoveTagsFromResource type Rep RemoveTagsFromResourceResponse = D1 ('MetaData "RemoveTagsFromResourceResponse" "Amazonka.SSM.RemoveTagsFromResource" "libZSservicesZSamazonka-ssmZSamazonka-ssm" '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.