alternate_contacts
Creates, updates, deletes, gets or lists an alternate_contacts resource.
Overview
| Name | alternate_contacts |
| Type | Resource |
| Id | aws.account.alternate_contacts |
Fields
The following fields are returned by SELECT queries:
- get_alternate_contact
| Name | Datatype | Description |
|---|---|---|
alternate_contact_type | string | The type of alternate contact. (BILLING, OPERATIONS, SECURITY) |
email_address | string | The email address associated with this alternate contact. (pattern: <code>[\s][\w+=.#|!&-]+@[\w.-]+.[\w]+[\s]</code>) |
name | string | The name associated with this alternate contact. |
phone_number | string | The phone number associated with this alternate contact. (pattern: <code>[\s0-9()+-]+</code>) |
title | string | The title associated with this alternate contact. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_alternate_contact | select | region | 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. | |
put_alternate_contact | replace | region, Name, Title, EmailAddress, PhoneNumber, AlternateContactType | 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. | |
delete_alternate_contact | delete | region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_alternate_contact
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
- put_alternate_contact
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
- delete_alternate_contact
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
;