Skip to content

aws.service_quotas.get_aws_default_service_quota

Example SQL Queries

SELECT * FROM
aws.service_quotas.get_aws_default_service_quota
WHERE
"service_code" = 'VALUE'
AND "quota_code" = 'VALUE';

Description

Retrieves the default value for the specified quota. The default value does not reflect any quota increases.

Table Definition

Column NameColumn Data Type
quota_code Required Input Column

Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas operation, and look for the QuotaCode response in the output for the quota you want.

VARCHAR
service_code Required Input Column

Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.

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.

quota

Information about the quota.

STRUCT(
"service_code" VARCHAR,
"service_name" VARCHAR,
"quota_arn" VARCHAR,
"quota_code" VARCHAR,
"quota_name" VARCHAR,
"value" DOUBLE,
"unit" VARCHAR,
"adjustable" BOOLEAN,
"global_quota" BOOLEAN,
"usage_metric" STRUCT(
"metric_namespace" VARCHAR,
"metric_name" VARCHAR,
"metric_dimensions" MAP(VARCHAR, VARCHAR),
"metric_statistic_recommendation" VARCHAR
),
"period" STRUCT(
"period_value" BIGINT,
"period_unit" VARCHAR
),
"error_reason" STRUCT(
"error_code" VARCHAR,
"error_message" VARCHAR
),
"quota_applied_at_level" VARCHAR,
"quota_context" STRUCT(
"context_scope" VARCHAR,
"context_scope_type" VARCHAR,
"context_id" VARCHAR
)
)
Show child fields
quota.adjustable

Indicates whether the quota value can be increased.

quota.error_reason

The error code and error reason.

Show child fields
quota.error_reason.error_code

Service Quotas returns the following error values:

  • DEPENDENCY_ACCESS_DENIED_ERROR - The caller does not have the required permissions to complete the action. To resolve the error, you must have permission to access the Amazon Web Service or quota.

  • DEPENDENCY_THROTTLING_ERROR - The Amazon Web Service is throttling Service Quotas.

  • DEPENDENCY_SERVICE_ERROR - The Amazon Web Service is not available.

  • SERVICE_QUOTA_NOT_AVAILABLE_ERROR - There was an error in Service Quotas.

quota.error_reason.error_message

The error message.

quota.global_quota

Indicates whether the quota is global.

quota.period

The period of time.

Show child fields
quota.period.period_unit

The time unit.

quota.period.period_value

The value associated with the reported PeriodUnit.

quota.quota_applied_at_level

Specifies at which level of granularity that the quota value is applied.

quota.quota_arn

The Amazon Resource Name (ARN) of the quota.

quota.quota_code

Specifies the quota identifier. To find the quota code for a specific quota, use the ListServiceQuotas operation, and look for the QuotaCode response in the output for the quota you want.

quota.quota_context

The context for this service quota.

Show child fields
quota.quota_context.context_id

Specifies the Amazon Web Services account or resource to which the quota applies. The value in this field depends on the context scope associated with the specified service quota.

quota.quota_context.context_scope

Specifies whether the quota applies to an Amazon Web Services account, or to a resource.

quota.quota_context.context_scope_type

When the ContextScope is RESOURCE, then this specifies the resource type of the specified resource.

quota.quota_name

Specifies the quota name.

quota.service_code

Specifies the service identifier. To find the service code value for an Amazon Web Services service, use the ListServices operation.

quota.service_name

Specifies the service name.

quota.unit

The unit of measurement.

quota.usage_metric

Information about the measurement.

Show child fields
quota.usage_metric.metric_dimensions

The metric dimension. This is a name/value pair that is part of the identity of a metric.

quota.usage_metric.metric_name

The name of the metric.

quota.usage_metric.metric_namespace

The namespace of the metric.

quota.usage_metric.metric_statistic_recommendation

The metric statistic that we recommend you use when determining quota usage.

quota.value

The quota value.