amazonka-account-2.0: Amazon Account 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.Account.PutAlternateContact

Description

Modifies the specified alternate contact attached to an Amazon Web Services account.

For complete details about how to use the alternate contact operations, see Access or updating the alternate contacts.

Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enabling trusted access for Amazon Web Services Account Management.

Synopsis

Creating a Request

data PutAlternateContact Source #

See: newPutAlternateContact smart constructor.

Constructors

PutAlternateContact' 

Fields

  • accountId :: Maybe Text

    Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.

    If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.

    To use this parameter, the caller must be an identity in the organization's management account or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have all features enabled, and the organization must have trusted access enabled for the Account Management service, and optionally a delegated admin account assigned.

    The management account can't specify its own AccountId; it must call the operation in standalone context by not including the AccountId parameter.

    To call this operation on an account that is not a member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.

  • alternateContactType :: AlternateContactType

    Specifies which alternate contact you want to create or update.

  • emailAddress :: Sensitive Text

    Specifies an email address for the alternate contact.

  • name :: Sensitive Text

    Specifies a name for the alternate contact.

  • phoneNumber :: Sensitive Text

    Specifies a phone number for the alternate contact.

  • title :: Sensitive Text

    Specifies a title for the alternate contact.

Instances

Instances details
ToJSON PutAlternateContact Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

ToHeaders PutAlternateContact Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

ToPath PutAlternateContact Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

ToQuery PutAlternateContact Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

AWSRequest PutAlternateContact Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

Associated Types

type AWSResponse PutAlternateContact #

Generic PutAlternateContact Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

Associated Types

type Rep PutAlternateContact :: Type -> Type #

Show PutAlternateContact Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

NFData PutAlternateContact Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

Methods

rnf :: PutAlternateContact -> () #

Eq PutAlternateContact Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

Hashable PutAlternateContact Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

type AWSResponse PutAlternateContact Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

type Rep PutAlternateContact Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

type Rep PutAlternateContact = D1 ('MetaData "PutAlternateContact" "Amazonka.Account.PutAlternateContact" "amazonka-account-2.0-ICdecQL9Ffc3FQZgw2t8jf" 'False) (C1 ('MetaCons "PutAlternateContact'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "alternateContactType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AlternateContactType) :*: S1 ('MetaSel ('Just "emailAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: (S1 ('MetaSel ('Just "phoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))))

newPutAlternateContact Source #

Create a value of PutAlternateContact 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:accountId:PutAlternateContact', putAlternateContact_accountId - Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.

If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.

To use this parameter, the caller must be an identity in the organization's management account or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have all features enabled, and the organization must have trusted access enabled for the Account Management service, and optionally a delegated admin account assigned.

The management account can't specify its own AccountId; it must call the operation in standalone context by not including the AccountId parameter.

To call this operation on an account that is not a member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.

PutAlternateContact, putAlternateContact_alternateContactType - Specifies which alternate contact you want to create or update.

PutAlternateContact, putAlternateContact_emailAddress - Specifies an email address for the alternate contact.

PutAlternateContact, putAlternateContact_name - Specifies a name for the alternate contact.

PutAlternateContact, putAlternateContact_phoneNumber - Specifies a phone number for the alternate contact.

PutAlternateContact, putAlternateContact_title - Specifies a title for the alternate contact.

Request Lenses

putAlternateContact_accountId :: Lens' PutAlternateContact (Maybe Text) Source #

Specifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.

If you do not specify this parameter, it defaults to the Amazon Web Services account of the identity used to call the operation.

To use this parameter, the caller must be an identity in the organization's management account or a delegated administrator account, and the specified account ID must be a member account in the same organization. The organization must have all features enabled, and the organization must have trusted access enabled for the Account Management service, and optionally a delegated admin account assigned.

The management account can't specify its own AccountId; it must call the operation in standalone context by not including the AccountId parameter.

To call this operation on an account that is not a member of an organization, then don't specify this parameter, and call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.

putAlternateContact_alternateContactType :: Lens' PutAlternateContact AlternateContactType Source #

Specifies which alternate contact you want to create or update.

putAlternateContact_emailAddress :: Lens' PutAlternateContact Text Source #

Specifies an email address for the alternate contact.

putAlternateContact_name :: Lens' PutAlternateContact Text Source #

Specifies a name for the alternate contact.

putAlternateContact_phoneNumber :: Lens' PutAlternateContact Text Source #

Specifies a phone number for the alternate contact.

putAlternateContact_title :: Lens' PutAlternateContact Text Source #

Specifies a title for the alternate contact.

Destructuring the Response

data PutAlternateContactResponse Source #

See: newPutAlternateContactResponse smart constructor.

Instances

Instances details
Generic PutAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

Associated Types

type Rep PutAlternateContactResponse :: Type -> Type #

Read PutAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

Show PutAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

NFData PutAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

Eq PutAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

type Rep PutAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.PutAlternateContact

type Rep PutAlternateContactResponse = D1 ('MetaData "PutAlternateContactResponse" "Amazonka.Account.PutAlternateContact" "amazonka-account-2.0-ICdecQL9Ffc3FQZgw2t8jf" 'False) (C1 ('MetaCons "PutAlternateContactResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newPutAlternateContactResponse :: PutAlternateContactResponse Source #

Create a value of PutAlternateContactResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.