Skip to content

aws.account.get_contact_information

Example SQL Queries

SELECT * FROM
aws.account.get_contact_information;

Description

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 and alternate contact information.

Table Definition

Column NameColumn Data Type
account_id Input Column

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 don't 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. 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, don't specify this parameter. Instead, call the operation using an identity belonging to the account whose contacts you wish to retrieve or modify.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

contact_information

Contains the details of the primary contact information associated with an Amazon Web Services account.

STRUCT(
"address_line1" VARCHAR,
"address_line2" VARCHAR,
"address_line3" VARCHAR,
"city" VARCHAR,
"company_name" VARCHAR,
"country_code" VARCHAR,
"district_or_county" VARCHAR,
"full_name" VARCHAR,
"phone_number" VARCHAR,
"postal_code" VARCHAR,
"state_or_region" VARCHAR,
"website_url" VARCHAR
)
Show child fields
contact_information.address_line1

The first line of the primary contact address.

contact_information.address_line2

The second line of the primary contact address, if any.

contact_information.address_line3

The third line of the primary contact address, if any.

contact_information.city

The city of the primary contact address.

contact_information.company_name

The name of the company associated with the primary contact information, if any.

contact_information.country_code

The ISO-3166 two-letter country code for the primary contact address.

contact_information.district_or_county

The district or county of the primary contact address, if any.

contact_information.full_name

The full name of the primary contact address.

contact_information.phone_number

The phone number of the primary contact information. The number will be validated and, in some countries, checked for activation.

contact_information.postal_code

The postal code of the primary contact address.

contact_information.state_or_region

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.

contact_information.website_url

The URL of the website associated with the primary contact information, if any.