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

Description

Updates the primary email for a user, group, or resource. The current email is moved into the list of aliases (or swapped between an existing alias and the current primary email), and the email provided in the input is promoted as the primary.

Synopsis

Creating a Request

data UpdatePrimaryEmailAddress Source #

See: newUpdatePrimaryEmailAddress smart constructor.

Constructors

UpdatePrimaryEmailAddress' 

Fields

  • organizationId :: Text

    The organization that contains the user, group, or resource to update.

  • entityId :: Text

    The user, group, or resource to update.

  • email :: Text

    The value of the email to be updated as primary.

Instances

Instances details
Eq UpdatePrimaryEmailAddress Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

Read UpdatePrimaryEmailAddress Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

Show UpdatePrimaryEmailAddress Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

Generic UpdatePrimaryEmailAddress Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

Associated Types

type Rep UpdatePrimaryEmailAddress :: Type -> Type #

NFData UpdatePrimaryEmailAddress Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

Hashable UpdatePrimaryEmailAddress Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

ToJSON UpdatePrimaryEmailAddress Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

AWSRequest UpdatePrimaryEmailAddress Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

ToHeaders UpdatePrimaryEmailAddress Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

ToPath UpdatePrimaryEmailAddress Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

ToQuery UpdatePrimaryEmailAddress Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

type Rep UpdatePrimaryEmailAddress Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

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

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

newUpdatePrimaryEmailAddress Source #

Create a value of UpdatePrimaryEmailAddress 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:organizationId:UpdatePrimaryEmailAddress', updatePrimaryEmailAddress_organizationId - The organization that contains the user, group, or resource to update.

$sel:entityId:UpdatePrimaryEmailAddress', updatePrimaryEmailAddress_entityId - The user, group, or resource to update.

$sel:email:UpdatePrimaryEmailAddress', updatePrimaryEmailAddress_email - The value of the email to be updated as primary.

Request Lenses

updatePrimaryEmailAddress_organizationId :: Lens' UpdatePrimaryEmailAddress Text Source #

The organization that contains the user, group, or resource to update.

updatePrimaryEmailAddress_email :: Lens' UpdatePrimaryEmailAddress Text Source #

The value of the email to be updated as primary.

Destructuring the Response

data UpdatePrimaryEmailAddressResponse Source #

See: newUpdatePrimaryEmailAddressResponse smart constructor.

Constructors

UpdatePrimaryEmailAddressResponse' 

Fields

Instances

Instances details
Eq UpdatePrimaryEmailAddressResponse Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

Read UpdatePrimaryEmailAddressResponse Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

Show UpdatePrimaryEmailAddressResponse Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

Generic UpdatePrimaryEmailAddressResponse Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

Associated Types

type Rep UpdatePrimaryEmailAddressResponse :: Type -> Type #

NFData UpdatePrimaryEmailAddressResponse Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

type Rep UpdatePrimaryEmailAddressResponse Source # 
Instance details

Defined in Amazonka.WorkMail.UpdatePrimaryEmailAddress

type Rep UpdatePrimaryEmailAddressResponse = D1 ('MetaData "UpdatePrimaryEmailAddressResponse" "Amazonka.WorkMail.UpdatePrimaryEmailAddress" "libZSservicesZSamazonka-workmailZSamazonka-workmail" 'False) (C1 ('MetaCons "UpdatePrimaryEmailAddressResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdatePrimaryEmailAddressResponse Source #

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

Response Lenses