Skip to content

aws.customer_profiles.get_calculated_attribute_definition

Example SQL Queries

SELECT * FROM
aws.customer_profiles.get_calculated_attribute_definition
WHERE
"domain_name" = 'VALUE'
AND "calculated_attribute_name" = 'VALUE';

Description

Provides more information on a calculated attribute definition for Customer Profiles.

Table Definition

Column NameColumn Data Type
calculated_attribute_name Required Input Column

The unique name of the calculated attribute.

VARCHAR
domain_name Required Input Column

The unique name of the domain.

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.

attribute_details

Mathematical expression and a list of attribute items specified in that expression.

STRUCT(
"attributes" STRUCT(
"name" VARCHAR
)[],
"expression" VARCHAR
)
Show child fields
attribute_details.attributes[]
Show child fields
attribute_details.attributes[].name

The name of an attribute defined in a profile object type.

attribute_details.expression

Mathematical expression that is performed on attribute items provided in the attribute list. Each element in the expression should follow the structure of \"{ObjectTypeName.AttributeName}\".

conditions

The conditions including range, object count, and threshold for the calculated attribute.

STRUCT(
"range" STRUCT(
"value" BIGINT,
"unit" VARCHAR
),
"object_count" BIGINT,
"threshold" STRUCT(
"value" VARCHAR,
"operator" VARCHAR
)
)
Show child fields
conditions.object_count

The number of profile objects used for the calculated attribute.

conditions.range

The relative time period over which data is included in the aggregation.

Show child fields
conditions.range.unit

The unit of time.

conditions.range.value

The amount of time of the specified unit.

conditions.threshold

The threshold for the calculated attribute.

Show child fields
conditions.threshold.operator

The operator of the threshold.

conditions.threshold.value

The value of the threshold.

created_at

The timestamp of when the calculated attribute definition was created.

TIMESTAMP_S
description

The description of the calculated attribute.

VARCHAR
display_name

The display name of the calculated attribute.

VARCHAR
last_updated_at

The timestamp of when the calculated attribute definition was most recently edited.

TIMESTAMP_S
statistic

The aggregation operation to perform for the calculated attribute.

VARCHAR
tags

The tags used to organize, track, or control access for this resource.

MAP(VARCHAR, VARCHAR)