Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Modifies 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
- data PutAlternateContact = PutAlternateContact' {}
- newPutAlternateContact :: AlternateContactType -> Text -> Text -> Text -> Text -> PutAlternateContact
- putAlternateContact_accountId :: Lens' PutAlternateContact (Maybe Text)
- putAlternateContact_alternateContactType :: Lens' PutAlternateContact AlternateContactType
- putAlternateContact_emailAddress :: Lens' PutAlternateContact Text
- putAlternateContact_name :: Lens' PutAlternateContact Text
- putAlternateContact_phoneNumber :: Lens' PutAlternateContact Text
- putAlternateContact_title :: Lens' PutAlternateContact Text
- data PutAlternateContactResponse = PutAlternateContactResponse' {
- newPutAlternateContactResponse :: PutAlternateContactResponse
Creating a Request
data PutAlternateContact Source #
See: newPutAlternateContact
smart constructor.
PutAlternateContact' | |
|
Instances
newPutAlternateContact Source #
:: AlternateContactType | |
-> Text | |
-> Text | |
-> Text | |
-> Text | |
-> PutAlternateContact |
Create a value of PutAlternateContact
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:PutAlternateContact'
, putAlternateContact_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:PutAlternateContact'
, putAlternateContact_alternateContactType
- Specifies which alternate contact you want to create or update.
$sel:emailAddress:PutAlternateContact'
, putAlternateContact_emailAddress
- Specifies an email address for the alternate contact.
$sel:name:PutAlternateContact'
, putAlternateContact_name
- Specifies a name for the alternate contact.
$sel:phoneNumber:PutAlternateContact'
, putAlternateContact_phoneNumber
- Specifies a phone number for the alternate contact.
$sel:title:PutAlternateContact'
, putAlternateContact_title
- Specifies a title for the alternate contact.
Request Lenses
putAlternateContact_accountId :: Lens' PutAlternateContact (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.
putAlternateContact_alternateContactType :: Lens' PutAlternateContact AlternateContactType Source #
Specifies which alternate contact you want to create or update.
putAlternateContact_emailAddress :: Lens' PutAlternateContact Text Source #
Specifies an email address for the alternate contact.
putAlternateContact_name :: Lens' PutAlternateContact Text Source #
Specifies a name for the alternate contact.
putAlternateContact_phoneNumber :: Lens' PutAlternateContact Text Source #
Specifies a phone number for the alternate contact.
putAlternateContact_title :: Lens' PutAlternateContact Text Source #
Specifies a title for the alternate contact.
Destructuring the Response
data PutAlternateContactResponse Source #
See: newPutAlternateContactResponse
smart constructor.
Instances
newPutAlternateContactResponse :: PutAlternateContactResponse Source #
Create a value of PutAlternateContactResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.