amazonka-workmail-2.0: Amazon WorkMail 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.WorkMail.CreateOrganization

Description

Creates a new WorkMail organization. Optionally, you can choose to associate an existing AWS Directory Service directory with your organization. If an AWS Directory Service directory ID is specified, the organization alias must match the directory alias. If you choose not to associate an existing directory with your organization, then we create a new WorkMail directory for you. For more information, see Adding an organization in the WorkMail Administrator Guide.

You can associate multiple email domains with an organization, then choose your default email domain from the WorkMail console. You can also associate a domain that is managed in an Amazon Route 53 public hosted zone. For more information, see Adding a domain and Choosing the default domain in the WorkMail Administrator Guide.

Optionally, you can use a customer managed key from AWS Key Management Service (AWS KMS) to encrypt email for your organization. If you don't associate an AWS KMS key, WorkMail creates a default, AWS managed key for you.

Synopsis

Creating a Request

data CreateOrganization Source #

See: newCreateOrganization smart constructor.

Constructors

CreateOrganization' 

Fields

Instances

Instances details
ToJSON CreateOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

ToHeaders CreateOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

ToPath CreateOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

ToQuery CreateOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

AWSRequest CreateOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

Associated Types

type AWSResponse CreateOrganization #

Generic CreateOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

Associated Types

type Rep CreateOrganization :: Type -> Type #

Read CreateOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

Show CreateOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

NFData CreateOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

Methods

rnf :: CreateOrganization -> () #

Eq CreateOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

Hashable CreateOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

type AWSResponse CreateOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

type Rep CreateOrganization Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

type Rep CreateOrganization = D1 ('MetaData "CreateOrganization" "Amazonka.WorkMail.CreateOrganization" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "CreateOrganization'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "directoryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "domains") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Domain])))) :*: (S1 ('MetaSel ('Just "enableInteroperability") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "kmsKeyArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "alias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateOrganization Source #

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

$sel:directoryId:CreateOrganization', createOrganization_directoryId - The AWS Directory Service directory ID.

$sel:domains:CreateOrganization', createOrganization_domains - The email domains to associate with the organization.

$sel:enableInteroperability:CreateOrganization', createOrganization_enableInteroperability - When true, allows organization interoperability between WorkMail and Microsoft Exchange. If true, you must include a AD Connector directory ID in the request.

$sel:kmsKeyArn:CreateOrganization', createOrganization_kmsKeyArn - The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.

CreateOrganization, createOrganization_alias - The organization alias.

Request Lenses

createOrganization_clientToken :: Lens' CreateOrganization (Maybe Text) Source #

The idempotency token associated with the request.

createOrganization_directoryId :: Lens' CreateOrganization (Maybe Text) Source #

The AWS Directory Service directory ID.

createOrganization_domains :: Lens' CreateOrganization (Maybe [Domain]) Source #

The email domains to associate with the organization.

createOrganization_enableInteroperability :: Lens' CreateOrganization (Maybe Bool) Source #

When true, allows organization interoperability between WorkMail and Microsoft Exchange. If true, you must include a AD Connector directory ID in the request.

createOrganization_kmsKeyArn :: Lens' CreateOrganization (Maybe Text) Source #

The Amazon Resource Name (ARN) of a customer managed key from AWS KMS.

Destructuring the Response

data CreateOrganizationResponse Source #

See: newCreateOrganizationResponse smart constructor.

Constructors

CreateOrganizationResponse' 

Fields

Instances

Instances details
Generic CreateOrganizationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

Associated Types

type Rep CreateOrganizationResponse :: Type -> Type #

Read CreateOrganizationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

Show CreateOrganizationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

NFData CreateOrganizationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

Eq CreateOrganizationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

type Rep CreateOrganizationResponse Source # 
Instance details

Defined in Amazonka.WorkMail.CreateOrganization

type Rep CreateOrganizationResponse = D1 ('MetaData "CreateOrganizationResponse" "Amazonka.WorkMail.CreateOrganization" "amazonka-workmail-2.0-6w5uOhF45UX4mlfLHLnG5b" 'False) (C1 ('MetaCons "CreateOrganizationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "organizationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateOrganizationResponse Source #

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

CreateOrganizationResponse, createOrganizationResponse_organizationId - The organization ID.

$sel:httpStatus:CreateOrganizationResponse', createOrganizationResponse_httpStatus - The response's http status code.

Response Lenses