Skip to main content

alternate_contacts

Creates, updates, deletes, gets or lists an alternate_contacts resource.

Overview

Namealternate_contacts
TypeResource
Idaws.account.alternate_contacts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
alternate_contact_typestringThe type of alternate contact. (BILLING, OPERATIONS, SECURITY)
email_addressstringThe email address associated with this alternate contact. (pattern: <code>[\s][\w+=.#|!&-]+@[\w.-]+.[\w]+[\s]</code>)
namestringThe name associated with this alternate contact.
phone_numberstringThe phone number associated with this alternate contact. (pattern: <code>[\s0-9()+-]+</code>)
titlestringThe title associated with this alternate contact.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_alternate_contactselectregionRetrieves the specified alternate contact attached to an Amazon Web Services account. For complete details about how to use the alternate contact operations, see Update the alternate contacts for your Amazon Web Services account. Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enable trusted access for Amazon Web Services Account Management.
put_alternate_contactreplaceregion, Name, Title, EmailAddress, PhoneNumber, AlternateContactTypeModifies the specified alternate contact attached to an Amazon Web Services account. For complete details about how to use the alternate contact operations, see Update the alternate contacts for your Amazon Web Services account. Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enable trusted access for Amazon Web Services Account Management.
delete_alternate_contactdeleteregionDeletes the specified alternate contact from an Amazon Web Services account. For complete details about how to use the alternate contact operations, see Update the alternate contacts for your Amazon Web Services account. Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enable trusted access for Amazon Web Services Account Management.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the specified alternate contact attached to an Amazon Web Services account. For complete details about how to use the alternate contact operations, see Update the alternate contacts for your Amazon Web Services account. Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enable trusted access for Amazon Web Services Account Management.

SELECT
alternate_contact_type,
email_address,
name,
phone_number,
title
FROM aws.account.alternate_contacts
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Modifies the specified alternate contact attached to an Amazon Web Services account. For complete details about how to use the alternate contact operations, see Update the alternate contacts for your Amazon Web Services account. Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enable trusted access for Amazon Web Services Account Management.

REPLACE aws.account.alternate_contacts
SET
Name = '{{ Name }}',
Title = '{{ Title }}',
EmailAddress = '{{ EmailAddress }}',
PhoneNumber = '{{ PhoneNumber }}',
AlternateContactType = '{{ AlternateContactType }}',
AccountId = '{{ AccountId }}'
WHERE
region = '{{ region }}' --required
AND Name = '{{ Name }}' --required
AND Title = '{{ Title }}' --required
AND EmailAddress = '{{ EmailAddress }}' --required
AND PhoneNumber = '{{ PhoneNumber }}' --required
AND AlternateContactType = '{{ AlternateContactType }}' --required;

DELETE examples

Deletes the specified alternate contact from an Amazon Web Services account. For complete details about how to use the alternate contact operations, see Update the alternate contacts for your Amazon Web Services account. Before you can update the alternate contact information for an Amazon Web Services account that is managed by Organizations, you must first enable integration between Amazon Web Services Account Management and Organizations. For more information, see Enable trusted access for Amazon Web Services Account Management.

DELETE FROM aws.account.alternate_contacts
WHERE region = '{{ region }}' --required
;