libZSservicesZSamazonka-accountZSamazonka-account
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.Account.GetAlternateContact

Description

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

Synopsis

Creating a Request

data GetAlternateContact Source #

See: newGetAlternateContact smart constructor.

Constructors

GetAlternateContact' 

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

Instances

Instances details
Eq GetAlternateContact Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

Read GetAlternateContact Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

Show GetAlternateContact Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

Generic GetAlternateContact Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

Associated Types

type Rep GetAlternateContact :: Type -> Type #

NFData GetAlternateContact Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

Methods

rnf :: GetAlternateContact -> () #

Hashable GetAlternateContact Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

ToJSON GetAlternateContact Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

AWSRequest GetAlternateContact Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

Associated Types

type AWSResponse GetAlternateContact #

ToHeaders GetAlternateContact Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

ToPath GetAlternateContact Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

ToQuery GetAlternateContact Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

type Rep GetAlternateContact Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

type Rep GetAlternateContact = D1 ('MetaData "GetAlternateContact" "Amazonka.Account.GetAlternateContact" "libZSservicesZSamazonka-accountZSamazonka-account" 'False) (C1 ('MetaCons "GetAlternateContact'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "alternateContactType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AlternateContactType)))
type AWSResponse GetAlternateContact Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

newGetAlternateContact Source #

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

$sel:alternateContactType:GetAlternateContact', getAlternateContact_alternateContactType - Specifies which alternate contact you want to retrieve.

Request Lenses

getAlternateContact_accountId :: Lens' GetAlternateContact (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.

getAlternateContact_alternateContactType :: Lens' GetAlternateContact AlternateContactType Source #

Specifies which alternate contact you want to retrieve.

Destructuring the Response

data GetAlternateContactResponse Source #

See: newGetAlternateContactResponse smart constructor.

Constructors

GetAlternateContactResponse' 

Fields

Instances

Instances details
Eq GetAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

Show GetAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

Generic GetAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

Associated Types

type Rep GetAlternateContactResponse :: Type -> Type #

NFData GetAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

type Rep GetAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.GetAlternateContact

type Rep GetAlternateContactResponse = D1 ('MetaData "GetAlternateContactResponse" "Amazonka.Account.GetAlternateContact" "libZSservicesZSamazonka-accountZSamazonka-account" 'False) (C1 ('MetaCons "GetAlternateContactResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "alternateContact") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AlternateContact)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetAlternateContactResponse Source #

Create a value of GetAlternateContactResponse 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:alternateContact:GetAlternateContactResponse', getAlternateContactResponse_alternateContact - A structure that contains the details for the specified alternate contact.

$sel:httpStatus:GetAlternateContactResponse', getAlternateContactResponse_httpStatus - The response's http status code.

Response Lenses

getAlternateContactResponse_alternateContact :: Lens' GetAlternateContactResponse (Maybe AlternateContact) Source #

A structure that contains the details for the specified alternate contact.