contact_informations
Creates, updates, deletes, gets or lists a contact_informations resource.
Overview
| Name | contact_informations |
| Type | Resource |
| Id | aws.account.contact_informations |
Fields
The following fields are returned by SELECT queries:
- get_contact_information
| Name | Datatype | Description |
|---|---|---|
address_line_1 | string | The first line of the primary contact address. |
address_line_2 | string | The second line of the primary contact address, if any. |
address_line_3 | string | The third line of the primary contact address, if any. |
city | string | The city of the primary contact address. |
company_name | string | The name of the company associated with the primary contact information, if any. |
country_code | string | The ISO-3166 two-letter country code for the primary contact address. |
district_or_county | string | The district or county of the primary contact address, if any. |
full_name | string | The full name of the primary contact address. |
phone_number | string | The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation. (pattern: <code>[+][\s0-9()-]+</code>) |
postal_code | string | The postal code of the primary contact address. |
state_or_region | string | The state or region of the primary contact address. If the mailing address is within the United States (US), the value in this field can be either a two character state code (for example, NJ) or the full state name (for example, New Jersey). This field is required in the following countries: US, CA, GB, DE, JP, IN, and BR. |
website_url | string | The URL of the website associated with the primary contact information, if any. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_contact_information | select | region | Retrieves 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 contact for your Amazon Web Services account. | |
put_contact_information | replace | region, ContactInformation | 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 contact for your Amazon Web Services account. |
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_contact_information
Retrieves 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 contact for your Amazon Web Services account.
SELECT
address_line_1,
address_line_2,
address_line_3,
city,
company_name,
country_code,
district_or_county,
full_name,
phone_number,
postal_code,
state_or_region,
website_url
FROM aws.account.contact_informations
WHERE region = '{{ region }}' -- required
;
REPLACE examples
- put_contact_information
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 contact for your Amazon Web Services account.
REPLACE aws.account.contact_informations
SET
ContactInformation = '{{ ContactInformation }}',
AccountId = '{{ AccountId }}'
WHERE
region = '{{ region }}' --required
AND ContactInformation = '{{ ContactInformation }}' --required;