Skip to content

aws.servicediscovery.list_namespaces

Example SQL Queries

SELECT * FROM
aws.servicediscovery.list_namespaces;

Description

Lists summary information about the namespaces that were created by the current Amazon Web Services account.

Table Definition

Column NameColumn Data Type
filters Input Column

A complex type that contains specifications for the namespaces that you want to list.

If you specify more than one filter, a namespace must match all filters to be returned by ListNamespaces.

STRUCT(
"name" VARCHAR,
"values" VARCHAR[],
"condition" VARCHAR
)[]
Show child fields
filters[]
Show child fields
filters[].condition

Specify the operator that you want to use to determine whether a namespace matches the specified value. Valid values for Condition are one of the following.

  • EQ: When you specify EQ for Condition, you can specify only one value. EQ is supported for TYPE, NAME, and HTTP_NAME. EQ is the default condition and can be omitted.

  • BEGINS_WITH: When you specify BEGINS_WITH for Condition, you can specify only one value. BEGINS_WITH is supported for TYPE, NAME, and HTTP_NAME.

filters[].name

Specify the namespaces that you want to get using one of the following.

  • TYPE: Gets the namespaces of the specified type.

  • NAME: Gets the namespaces with the specified name.

  • HTTP_NAME: Gets the namespaces with the specified HTTP name.

filters[].values[]
_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.

_aws_region Input Column

The AWS region to use.

VARCHAR
arn

The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when you create it.

VARCHAR
create_date

The date and time that the namespace was created.

TIMESTAMP_S
description

A description for the namespace.

VARCHAR
id

The ID of the namespace.

VARCHAR
name

The name of the namespace. When you create a namespace, Cloud Map automatically creates a Route 53 hosted zone that has the same name as the namespace.

VARCHAR
properties

The properties of the namespace.

STRUCT(
"dns_properties" STRUCT(
"hosted_zone_id" VARCHAR,
"soa" STRUCT(
"ttl" BIGINT
)
),
"http_properties" STRUCT(
"http_name" VARCHAR
)
)
Show child fields
properties.dns_properties

A complex type that contains the ID for the Route 53 hosted zone that Cloud Map creates when you create a namespace.

Show child fields
properties.dns_properties.hosted_zone_id

The ID for the Route 53 hosted zone that Cloud Map creates when you create a namespace.

properties.dns_properties.soa

Start of Authority (SOA) record for the hosted zone.

Show child fields
properties.dns_properties.soa.ttl

The time to live (TTL) for purposes of negative caching.

properties.http_properties

A complex type that contains the name of an HTTP namespace.

Show child fields
properties.http_properties.http_name

The name of an HTTP namespace.

service_count

The number of services that were created using the namespace.

BIGINT
type

The type of the namespace, either public or private.

VARCHAR