Route53Domains / Client / renew_domain

renew_domain#

Route53Domains.Client.renew_domain(**kwargs)#

This operation renews a domain for the specified number of years. The cost of renewing your domain is billed to your Amazon Web Services account.

We recommend that you renew your domain several weeks before the expiration date. Some TLD registries delete domains before the expiration date if you haven’t renewed far enough in advance. For more information about renewing domain registration, see Renewing Registration for a Domain in the Amazon Route 53 Developer Guide.

See also: AWS API Documentation

Request Syntax

response = client.renew_domain(
    DomainName='string',
    DurationInYears=123,
    CurrentExpiryYear=123
)
Parameters:
  • DomainName (string) –

    [REQUIRED]

    The name of the domain that you want to renew.

  • DurationInYears (integer) –

    The number of years that you want to renew the domain for. The maximum number of years depends on the top-level domain. For the range of valid values for your domain, see Domains that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer Guide.

    Default: 1

  • CurrentExpiryYear (integer) –

    [REQUIRED]

    The year when the registration for the domain is set to expire. This value must match the current expiration date for the domain.

Return type:

dict

Returns:

Response Syntax

{
    'OperationId': 'string'
}

Response Structure

  • (dict) –

    • OperationId (string) –

      Identifier for tracking the progress of the request. To query the operation status, use GetOperationDetail.

Exceptions

  • Route53Domains.Client.exceptions.InvalidInput

  • Route53Domains.Client.exceptions.UnsupportedTLD

  • Route53Domains.Client.exceptions.DuplicateRequest

  • Route53Domains.Client.exceptions.TLDRulesViolation

  • Route53Domains.Client.exceptions.OperationLimitExceeded