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

Description

Retrieves 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 GetContactInformation Source #

See: newGetContactInformation smart constructor.

Constructors

GetContactInformation' 

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.

Instances

Instances details
ToJSON GetContactInformation Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

ToHeaders GetContactInformation Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

ToPath GetContactInformation Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

ToQuery GetContactInformation Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

AWSRequest GetContactInformation Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

Associated Types

type AWSResponse GetContactInformation #

Generic GetContactInformation Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

Associated Types

type Rep GetContactInformation :: Type -> Type #

Read GetContactInformation Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

Show GetContactInformation Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

NFData GetContactInformation Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

Methods

rnf :: GetContactInformation -> () #

Eq GetContactInformation Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

Hashable GetContactInformation Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

type AWSResponse GetContactInformation Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

type Rep GetContactInformation Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

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

newGetContactInformation :: GetContactInformation Source #

Create a value of GetContactInformation 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:GetContactInformation', getContactInformation_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.

Request Lenses

getContactInformation_accountId :: Lens' GetContactInformation (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.

Destructuring the Response

data GetContactInformationResponse Source #

See: newGetContactInformationResponse smart constructor.

Constructors

GetContactInformationResponse' 

Fields

Instances

Instances details
Generic GetContactInformationResponse Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

Associated Types

type Rep GetContactInformationResponse :: Type -> Type #

Show GetContactInformationResponse Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

NFData GetContactInformationResponse Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

Eq GetContactInformationResponse Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

type Rep GetContactInformationResponse Source # 
Instance details

Defined in Amazonka.Account.GetContactInformation

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

newGetContactInformationResponse Source #

Create a value of GetContactInformationResponse 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:contactInformation:GetContactInformationResponse', getContactInformationResponse_contactInformation - Contains the details of the primary contact information associated with an Amazon Web Services account.

$sel:httpStatus:GetContactInformationResponse', getContactInformationResponse_httpStatus - The response's http status code.

Response Lenses

getContactInformationResponse_contactInformation :: Lens' GetContactInformationResponse (Maybe ContactInformation) Source #

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