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

Description

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

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

Synopsis

Creating a Request

data DeleteDocument Source #

See: newDeleteDocument smart constructor.

Constructors

DeleteDocument' 

Fields

  • versionName :: Maybe Text

    The version name 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.

  • documentVersion :: Maybe Text

    The version 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
Eq DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Read DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Show DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Generic DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Associated Types

type Rep DeleteDocument :: Type -> Type #

NFData DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Methods

rnf :: DeleteDocument -> () #

Hashable DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

ToJSON DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

AWSRequest DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Associated Types

type AWSResponse 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

type Rep DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

type Rep DeleteDocument = D1 ('MetaData "DeleteDocument" "Amazonka.SSM.DeleteDocument" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "DeleteDocument'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "versionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "force") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "documentVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse DeleteDocument Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

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:

$sel:versionName:DeleteDocument', deleteDocument_versionName - The version name 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.

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

$sel:name:DeleteDocument', deleteDocument_name - The name of the document.

Request Lenses

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_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_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_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
Eq DeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Read DeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Show DeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Generic DeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Associated Types

type Rep DeleteDocumentResponse :: Type -> Type #

NFData DeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

Methods

rnf :: DeleteDocumentResponse -> () #

type Rep DeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.SSM.DeleteDocument

type Rep DeleteDocumentResponse = D1 ('MetaData "DeleteDocumentResponse" "Amazonka.SSM.DeleteDocument" "libZSservicesZSamazonka-ssmZSamazonka-ssm" '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