Amazon Route 53

2017/11/16 - Amazon Route 53 - 3 new api methods

Changes  You can use Route 53's GetAccountLimit/GetHostedZoneLimit/GetReusableDelegationSetLimit APIs to view your current limits (including custom set limits) on Route 53 resources such as hosted zones and health checks. These APIs also return the number of each resource you're currently using to enable comparison against your current limits.

GetReusableDelegationSetLimit (new) Link ¶

Gets the maximum number of hosted zones that you can associate with the specified reusable delegation set.

For the default limit, see Limits in the Amazon Route 53 Developer Guide . To request a higher limit, open a case .

See also: AWS API Documentation

Request Syntax

client.get_reusable_delegation_set_limit(
    Type='MAX_ZONES_BY_REUSABLE_DELEGATION_SET',
    DelegationSetId='string'
)
type Type

string

param Type

[REQUIRED]

Specify MAX_ZONES_BY_REUSABLE_DELEGATION_SET to get the maximum number of hosted zones that you can associate with the specified reusable delegation set.

type DelegationSetId

string

param DelegationSetId

[REQUIRED]

The ID of the delegation set that you want to get the limit for.

rtype

dict

returns

Response Syntax

{
    'Limit': {
        'Type': 'MAX_ZONES_BY_REUSABLE_DELEGATION_SET',
        'Value': 123
    },
    'Count': 123
}

Response Structure

  • (dict) --

    A complex type that contains the requested limit.

    • Limit (dict) --

      The current setting for the limit on hosted zones that you can associate with the specified reusable delegation set.

      • Type (string) --

        The limit that you requested: MAX_ZONES_BY_REUSABLE_DELEGATION_SET , the maximum number of hosted zones that you can associate with the specified reusable delegation set.

      • Value (integer) --

        The current value for the MAX_ZONES_BY_REUSABLE_DELEGATION_SET limit.

    • Count (integer) --

      The current number of hosted zones that you can associate with the specified reusable delegation set.

GetHostedZoneLimit (new) Link ¶

Gets the specified limit for a specified hosted zone, for example, the maximum number of records that you can create in the hosted zone.

For the default limit, see Limits in the Amazon Route 53 Developer Guide . To request a higher limit, open a case .

See also: AWS API Documentation

Request Syntax

client.get_hosted_zone_limit(
    Type='MAX_RRSETS_BY_ZONE'|'MAX_VPCS_ASSOCIATED_BY_ZONE',
    HostedZoneId='string'
)
type Type

string

param Type

[REQUIRED]

The limit that you want to get. Valid values include the following:

  • MAX_RRSETS_BY_ZONE : The maximum number of records that you can create in the specified hosted zone.

  • MAX_VPCS_ASSOCIATED_BY_TYPE : The maximum number of Amazon VPCs that you can associate with the specified private hosted zone.

type HostedZoneId

string

param HostedZoneId

[REQUIRED]

The ID of the hosted zone that you want to get a limit for.

rtype

dict

returns

Response Syntax

{
    'Limit': {
        'Type': 'MAX_RRSETS_BY_ZONE'|'MAX_VPCS_ASSOCIATED_BY_ZONE',
        'Value': 123
    },
    'Count': 123
}

Response Structure

  • (dict) --

    A complex type that contains the requested limit.

    • Limit (dict) --

      The current setting for the specified limit. For example, if you specified MAX_RRSETS_BY_ZONE for the value of Type in the request, the value of Limit is the maximum number of records that you can create in the specified hosted zone.

      • Type (string) --

        The limit that you requested. Valid values include the following:

        • MAX_RRSETS_BY_ZONE : The maximum number of records that you can create in the specified hosted zone.

        • MAX_VPCS_ASSOCIATED_BY_TYPE : The maximum number of Amazon VPCs that you can associate with the specified private hosted zone.

      • Value (integer) --

        The current value for the limit that is specified by Type .

    • Count (integer) --

      The current number of entities that you have created of the specified type. For example, if you specified MAX_RRSETS_BY_ZONE for the value of Type in the request, the value of Count is the current number of records that you have created in the specified hosted zone.

GetAccountLimit (new) Link ¶

Gets the specified limit for the current account, for example, the maximum number of health checks that you can create using the account.

For the default limit, see Limits in the Amazon Route 53 Developer Guide . To request a higher limit, open a case .

See also: AWS API Documentation

Request Syntax

client.get_account_limit(
    Type='MAX_HEALTH_CHECKS_BY_OWNER'|'MAX_HOSTED_ZONES_BY_OWNER'|'MAX_TRAFFIC_POLICY_INSTANCES_BY_OWNER'|'MAX_REUSABLE_DELEGATION_SETS_BY_OWNER'|'MAX_TRAFFIC_POLICIES_BY_OWNER'
)
type Type

string

param Type

[REQUIRED]

The limit that you want to get. Valid values include the following:

  • MAX_HEALTH_CHECKS_BY_OWNER : The maximum number of health checks that you can create using the current account.

  • MAX_HOSTED_ZONES_BY_OWNER : The maximum number of hosted zones that you can create using the current account.

  • MAX_REUSABLE_DELEGATION_SETS_BY_OWNER : The maximum number of reusable delegation sets that you can create using the current account.

  • MAX_TRAFFIC_POLICIES_BY_OWNER : The maximum number of traffic policies that you can create using the current account.

  • MAX_TRAFFIC_POLICY_INSTANCES_BY_OWNER : The maximum number of traffic policy instances that you can create using the current account. (Traffic policy instances are referred to as traffic flow policy records in the Amazon Route 53 console.)

rtype

dict

returns

Response Syntax

{
    'Limit': {
        'Type': 'MAX_HEALTH_CHECKS_BY_OWNER'|'MAX_HOSTED_ZONES_BY_OWNER'|'MAX_TRAFFIC_POLICY_INSTANCES_BY_OWNER'|'MAX_REUSABLE_DELEGATION_SETS_BY_OWNER'|'MAX_TRAFFIC_POLICIES_BY_OWNER',
        'Value': 123
    },
    'Count': 123
}

Response Structure

  • (dict) --

    A complex type that contains the requested limit.

    • Limit (dict) --

      The current setting for the specified limit. For example, if you specified MAX_HEALTH_CHECKS_BY_OWNER for the value of Type in the request, the value of Limit is the maximum number of health checks that you can create using the current account.

      • Type (string) --

        The limit that you requested. Valid values include the following:

        • MAX_HEALTH_CHECKS_BY_OWNER : The maximum number of health checks that you can create using the current account.

        • MAX_HOSTED_ZONES_BY_OWNER : The maximum number of hosted zones that you can create using the current account.

        • MAX_REUSABLE_DELEGATION_SETS_BY_OWNER : The maximum number of reusable delegation sets that you can create using the current account.

        • MAX_TRAFFIC_POLICIES_BY_OWNER : The maximum number of traffic policies that you can create using the current account.

        • MAX_TRAFFIC_POLICY_INSTANCES_BY_OWNER : The maximum number of traffic policy instances that you can create using the current account. (Traffic policy instances are referred to as traffic flow policy records in the Amazon Route 53 console.)

      • Value (integer) --

        The current value for the limit that is specified by AccountLimit$Type .

    • Count (integer) --

      The current number of entities that you have created of the specified type. For example, if you specified MAX_HEALTH_CHECKS_BY_OWNER for the value of Type in the request, the value of Count is the current number of health checks that you have created using the current account.