amazonka-ssm-2.0: Amazon Simple Systems Manager (SSM) SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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 nodes. Specify the name of the managed node 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

    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.

  • tagKeys :: [Text]

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

Instances

Instances details
ToJSON RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.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

AWSRequest RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Associated Types

type AWSResponse RemoveTagsFromResource #

Generic RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Associated Types

type Rep RemoveTagsFromResource :: Type -> Type #

Read RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Show RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

NFData RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Methods

rnf :: RemoveTagsFromResource -> () #

Eq RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Hashable RemoveTagsFromResource Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

type AWSResponse 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" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" '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]))))

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.

Constructors

RemoveTagsFromResourceResponse' 

Fields

Instances

Instances details
Generic RemoveTagsFromResourceResponse Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Associated Types

type Rep RemoveTagsFromResourceResponse :: Type -> Type #

Read RemoveTagsFromResourceResponse Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Show RemoveTagsFromResourceResponse Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

NFData RemoveTagsFromResourceResponse Source # 
Instance details

Defined in Amazonka.SSM.RemoveTagsFromResource

Eq 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" "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