Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data GetContactInformation = GetContactInformation' {}
- newGetContactInformation :: GetContactInformation
- getContactInformation_accountId :: Lens' GetContactInformation (Maybe Text)
- data GetContactInformationResponse = GetContactInformationResponse' {}
- newGetContactInformationResponse :: Int -> GetContactInformationResponse
- getContactInformationResponse_contactInformation :: Lens' GetContactInformationResponse (Maybe ContactInformation)
- getContactInformationResponse_httpStatus :: Lens' GetContactInformationResponse Int
Creating a Request
data GetContactInformation Source #
See: newGetContactInformation
smart constructor.
GetContactInformation' | |
|
Instances
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.
GetContactInformationResponse' | |
|
Instances
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.
getContactInformationResponse_httpStatus :: Lens' GetContactInformationResponse Int Source #
The response's http status code.