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

Description

Deletes the specified alternate contact from 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 DeleteAlternateContact Source #

See: newDeleteAlternateContact smart constructor.

Constructors

DeleteAlternateContact' 

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 of the alternate contacts to delete.

Instances

Instances details
Eq DeleteAlternateContact Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

Read DeleteAlternateContact Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

Show DeleteAlternateContact Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

Generic DeleteAlternateContact Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

Associated Types

type Rep DeleteAlternateContact :: Type -> Type #

NFData DeleteAlternateContact Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

Methods

rnf :: DeleteAlternateContact -> () #

Hashable DeleteAlternateContact Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

ToJSON DeleteAlternateContact Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

AWSRequest DeleteAlternateContact Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

Associated Types

type AWSResponse DeleteAlternateContact #

ToHeaders DeleteAlternateContact Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

ToPath DeleteAlternateContact Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

ToQuery DeleteAlternateContact Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

type Rep DeleteAlternateContact Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

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

Defined in Amazonka.Account.DeleteAlternateContact

newDeleteAlternateContact Source #

Create a value of DeleteAlternateContact 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:DeleteAlternateContact', deleteAlternateContact_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:DeleteAlternateContact', deleteAlternateContact_alternateContactType - Specifies which of the alternate contacts to delete.

Request Lenses

deleteAlternateContact_accountId :: Lens' DeleteAlternateContact (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.

Destructuring the Response

data DeleteAlternateContactResponse Source #

See: newDeleteAlternateContactResponse smart constructor.

Instances

Instances details
Eq DeleteAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

Read DeleteAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

Show DeleteAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

Generic DeleteAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

Associated Types

type Rep DeleteAlternateContactResponse :: Type -> Type #

NFData DeleteAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

type Rep DeleteAlternateContactResponse Source # 
Instance details

Defined in Amazonka.Account.DeleteAlternateContact

type Rep DeleteAlternateContactResponse = D1 ('MetaData "DeleteAlternateContactResponse" "Amazonka.Account.DeleteAlternateContact" "libZSservicesZSamazonka-accountZSamazonka-account" 'False) (C1 ('MetaCons "DeleteAlternateContactResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteAlternateContactResponse :: DeleteAlternateContactResponse Source #

Create a value of DeleteAlternateContactResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.