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

Description

Updates the primary contact information of an Amazon Web Services account.

For complete details about how to use the primary contact operations, see Update the primary and alternate contact information.

Synopsis

Creating a Request

data PutContactInformation Source #

See: newPutContactInformation smart constructor.

Constructors

PutContactInformation' 

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 don't 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. The specified account ID must also 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, don't specify this parameter. Instead, call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.

  • contactInformation :: ContactInformation

    Contains the details of the primary contact information associated with an Amazon Web Services account.

Instances

Instances details
ToJSON PutContactInformation Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

ToHeaders PutContactInformation Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

ToPath PutContactInformation Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

ToQuery PutContactInformation Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

AWSRequest PutContactInformation Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

Associated Types

type AWSResponse PutContactInformation #

Generic PutContactInformation Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

Associated Types

type Rep PutContactInformation :: Type -> Type #

Show PutContactInformation Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

NFData PutContactInformation Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

Methods

rnf :: PutContactInformation -> () #

Eq PutContactInformation Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

Hashable PutContactInformation Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

type AWSResponse PutContactInformation Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

type Rep PutContactInformation Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

type Rep PutContactInformation = D1 ('MetaData "PutContactInformation" "Amazonka.Account.PutContactInformation" "amazonka-account-2.0-ICdecQL9Ffc3FQZgw2t8jf" 'False) (C1 ('MetaCons "PutContactInformation'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "contactInformation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ContactInformation)))

newPutContactInformation Source #

Create a value of PutContactInformation 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:PutContactInformation', putContactInformation_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 don't 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. The specified account ID must also 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, don't specify this parameter. Instead, call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.

$sel:contactInformation:PutContactInformation', putContactInformation_contactInformation - Contains the details of the primary contact information associated with an Amazon Web Services account.

Request Lenses

putContactInformation_accountId :: Lens' PutContactInformation (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 don't 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. The specified account ID must also 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, don't specify this parameter. Instead, call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.

putContactInformation_contactInformation :: Lens' PutContactInformation ContactInformation Source #

Contains the details of the primary contact information associated with an Amazon Web Services account.

Destructuring the Response

data PutContactInformationResponse Source #

See: newPutContactInformationResponse smart constructor.

Instances

Instances details
Generic PutContactInformationResponse Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

Associated Types

type Rep PutContactInformationResponse :: Type -> Type #

Read PutContactInformationResponse Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

Show PutContactInformationResponse Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

NFData PutContactInformationResponse Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

Eq PutContactInformationResponse Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

type Rep PutContactInformationResponse Source # 
Instance details

Defined in Amazonka.Account.PutContactInformation

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

newPutContactInformationResponse :: PutContactInformationResponse Source #

Create a value of PutContactInformationResponse with all optional fields omitted.

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