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.DeleteDocument

Description

Deletes the Amazon Web Services Systems Manager document (SSM document) and all managed node associations to the document.

Before you delete the document, we recommend that you use DeleteAssociation to disassociate all managed nodes that are associated with the document.

Synopsis

Creating a Request

data DeleteDocument Source #

See: newDeleteDocument smart constructor.

Constructors

DeleteDocument' 

Fields

  • documentVersion :: Maybe Text

    The version of the document that you want to delete. If not provided, all versions of the document are deleted.

  • force :: Maybe Bool

    Some SSM document types require that you specify a Force flag before you can delete the document. For example, you must specify a Force flag to delete a document of type ApplicationConfigurationSchema. You can restrict access to the Force flag in an Identity and Access Management (IAM) policy.

  • versionName :: Maybe Text

    The version name of the document that you want to delete. If not provided, all versions of the document are deleted.

  • name :: Text

    The name of the document.

Instances

Instances details
ToJSON DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

ToHeaders DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

ToPath DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

ToQuery DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

AWSRequest DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Associated Types

type AWSResponse DeleteDocument #

Generic DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Associated Types

type Rep DeleteDocument :: Type -> Type #

Read DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Show DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

NFData DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Methods

rnf :: DeleteDocument -> () #

Eq DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Hashable DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

type AWSResponse DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

type Rep DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

type Rep DeleteDocument = D1 ('MetaData "DeleteDocument" "Amazonka.SSM.DeleteDocument" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "DeleteDocument'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "documentVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "force") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "versionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDeleteDocument Source #

Create a value of DeleteDocument 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:

DeleteDocument, deleteDocument_documentVersion - The version of the document that you want to delete. If not provided, all versions of the document are deleted.

$sel:force:DeleteDocument', deleteDocument_force - Some SSM document types require that you specify a Force flag before you can delete the document. For example, you must specify a Force flag to delete a document of type ApplicationConfigurationSchema. You can restrict access to the Force flag in an Identity and Access Management (IAM) policy.

DeleteDocument, deleteDocument_versionName - The version name of the document that you want to delete. If not provided, all versions of the document are deleted.

DeleteDocument, deleteDocument_name - The name of the document.

Request Lenses

deleteDocument_documentVersion :: Lens' DeleteDocument (Maybe Text) Source #

The version of the document that you want to delete. If not provided, all versions of the document are deleted.

deleteDocument_force :: Lens' DeleteDocument (Maybe Bool) Source #

Some SSM document types require that you specify a Force flag before you can delete the document. For example, you must specify a Force flag to delete a document of type ApplicationConfigurationSchema. You can restrict access to the Force flag in an Identity and Access Management (IAM) policy.

deleteDocument_versionName :: Lens' DeleteDocument (Maybe Text) Source #

The version name of the document that you want to delete. If not provided, all versions of the document are deleted.

deleteDocument_name :: Lens' DeleteDocument Text Source #

The name of the document.

Destructuring the Response

data DeleteDocumentResponse Source #

See: newDeleteDocumentResponse smart constructor.

Constructors

DeleteDocumentResponse' 

Fields

Instances

Instances details
Generic DeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Associated Types

type Rep DeleteDocumentResponse :: Type -> Type #

Read DeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Show DeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

NFData DeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Methods

rnf :: DeleteDocumentResponse -> () #

Eq DeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

type Rep DeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

type Rep DeleteDocumentResponse = D1 ('MetaData "DeleteDocumentResponse" "Amazonka.SSM.DeleteDocument" "amazonka-ssm-2.0-Ak65QSGRhJDC5x7UvsCpi8" 'False) (C1 ('MetaCons "DeleteDocumentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteDocumentResponse Source #

Create a value of DeleteDocumentResponse 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:DeleteDocumentResponse', deleteDocumentResponse_httpStatus - The response's http status code.

Response Lenses