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 |
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
- data PutContactInformation = PutContactInformation' {}
- newPutContactInformation :: ContactInformation -> PutContactInformation
- putContactInformation_accountId :: Lens' PutContactInformation (Maybe Text)
- putContactInformation_contactInformation :: Lens' PutContactInformation ContactInformation
- data PutContactInformationResponse = PutContactInformationResponse' {
- newPutContactInformationResponse :: PutContactInformationResponse
Creating a Request
data PutContactInformation Source #
See: newPutContactInformation
smart constructor.
PutContactInformation' | |
|
Instances
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
newPutContactInformationResponse :: PutContactInformationResponse Source #
Create a value of PutContactInformationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.