libZSservicesZSamazonka-ssmZSamazonka-ssm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SSM.RemoveTagsFromResource

Description

Removes tag keys from the specified resource.

Synopsis

Creating a Request

data RemoveTagsFromResource Source #

See: newRemoveTagsFromResource smart constructor.

Constructors

RemoveTagsFromResource' 

Fields

  • resourceType :: ResourceTypeForTagging

    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.

  • resourceId :: Text

    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.

  • tagKeys :: [Text]

    Tag keys that you want to remove from the specified resource.

Instances

Instances details
Eq RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Read RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Show RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Generic RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Associated Types

type Rep RemoveTagsFromResource :: Type -> Type #

NFData RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Methods

rnf :: RemoveTagsFromResource -> () #

Hashable RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

ToJSON RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

AWSRequest RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Associated Types

type AWSResponse RemoveTagsFromResource #

ToHeaders RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

ToPath RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

ToQuery RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

type Rep RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

type Rep RemoveTagsFromResource = D1 ('MetaData "RemoveTagsFromResource" "Amazonka.SSM.RemoveTagsFromResource" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "RemoveTagsFromResource'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceTypeForTagging) :*: (S1 ('MetaSel ('Just "resourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "tagKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))
type AWSResponse RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

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.

Constructors

RemoveTagsFromResourceResponse' 

Fields

Instances

Instances details
Eq RemoveTagsFromResourceResponse Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Read RemoveTagsFromResourceResponse Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Show RemoveTagsFromResourceResponse Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Generic RemoveTagsFromResourceResponse Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Associated Types

type Rep RemoveTagsFromResourceResponse :: Type -> Type #

NFData RemoveTagsFromResourceResponse Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

type Rep RemoveTagsFromResourceResponse Source # 
Instance details

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