libZSservicesZSamazonka-workmailZSamazonka-workmail
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.WorkMail.DeleteOrganization

Description

Deletes an Amazon WorkMail organization and all underlying AWS resources managed by Amazon WorkMail as part of the organization. You can choose whether to delete the associated directory. For more information, see Removing an organization in the Amazon WorkMail Administrator Guide.

Synopsis

Creating a Request

data DeleteOrganization Source #

See: newDeleteOrganization smart constructor.

Constructors

DeleteOrganization' 

Fields

Instances

Instances details
Eq DeleteOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

Read DeleteOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

Show DeleteOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

Generic DeleteOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

Associated Types

type Rep DeleteOrganization :: Type -> Type #

NFData DeleteOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

Methods

rnf :: DeleteOrganization -> () #

Hashable DeleteOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

ToJSON DeleteOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

AWSRequest DeleteOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

Associated Types

type AWSResponse DeleteOrganization #

ToHeaders DeleteOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

ToPath DeleteOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

ToQuery DeleteOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

type Rep DeleteOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

type Rep DeleteOrganization = D1 ('MetaData "DeleteOrganization" "Amazonka.WorkMail.DeleteOrganization" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "DeleteOrganization'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "deleteDirectory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))
type AWSResponse DeleteOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

newDeleteOrganization Source #

Create a value of DeleteOrganization 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:clientToken:DeleteOrganization', deleteOrganization_clientToken - The idempotency token associated with the request.

$sel:organizationId:DeleteOrganization', deleteOrganization_organizationId - The organization ID.

$sel:deleteDirectory:DeleteOrganization', deleteOrganization_deleteDirectory - If true, deletes the AWS Directory Service directory associated with the organization.

Request Lenses

deleteOrganization_clientToken :: Lens' DeleteOrganization (Maybe Text) Source #

The idempotency token associated with the request.

deleteOrganization_deleteDirectory :: Lens' DeleteOrganization Bool Source #

If true, deletes the AWS Directory Service directory associated with the organization.

Destructuring the Response

data DeleteOrganizationResponse Source #

See: newDeleteOrganizationResponse smart constructor.

Constructors

DeleteOrganizationResponse' 

Fields

Instances

Instances details
Eq DeleteOrganizationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

Read DeleteOrganizationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

Show DeleteOrganizationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

Generic DeleteOrganizationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

Associated Types

type Rep DeleteOrganizationResponse :: Type -> Type #

NFData DeleteOrganizationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

type Rep DeleteOrganizationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.DeleteOrganization

type Rep DeleteOrganizationResponse = D1 ('MetaData "DeleteOrganizationResponse" "Amazonka.WorkMail.DeleteOrganization" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "DeleteOrganizationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDeleteOrganizationResponse Source #

Create a value of DeleteOrganizationResponse 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:state:DeleteOrganizationResponse', deleteOrganizationResponse_state - The state of the organization.

$sel:organizationId:DeleteOrganization', deleteOrganizationResponse_organizationId - The organization ID.

$sel:httpStatus:DeleteOrganizationResponse', deleteOrganizationResponse_httpStatus - The response's http status code.

Response Lenses