Skip to main content

contact_informations

Creates, updates, deletes, gets or lists a contact_informations resource.

Overview

Namecontact_informations
TypeResource
Idaws.account.contact_informations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
address_line_1stringThe first line of the primary contact address.
address_line_2stringThe second line of the primary contact address, if any.
address_line_3stringThe third line of the primary contact address, if any.
citystringThe city of the primary contact address.
company_namestringThe name of the company associated with the primary contact information, if any.
country_codestringThe ISO-3166 two-letter country code for the primary contact address.
district_or_countystringThe district or county of the primary contact address, if any.
full_namestringThe full name of the primary contact address.
phone_numberstringThe 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_codestringThe postal code of the primary contact address.
state_or_regionstringThe 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_urlstringThe URL of the website associated with the primary contact information, if any.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_contact_informationselectregionRetrieves 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_informationreplaceregion, ContactInformationUpdates 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.

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

SELECT examples

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

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;