/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.route53; import javax.annotation.Generated; import com.amazonaws.*; import com.amazonaws.regions.*; import com.amazonaws.services.route53.model.*; import com.amazonaws.services.route53.waiters.AmazonRoute53Waiters; /** * Interface for accessing Route 53. *

* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.route53.AbstractAmazonRoute53} instead. *

*

*

* Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web service. *

*

* You can use Route 53 to: *

* */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AmazonRoute53 { /** * The region metadata service name for computing region endpoints. You can use this value to retrieve metadata * (such as supported regions) of the service. * * @see RegionUtils#getRegionsForService(String) */ String ENDPOINT_PREFIX = "route53"; /** * Overrides the default endpoint for this client ("https://route53.amazonaws.com"). Callers can use this method to * control which AWS region they want to work with. *

* Callers can pass in just the endpoint (ex: "route53.amazonaws.com") or a full URL, including the protocol (ex: * "https://route53.amazonaws.com"). If the protocol is not specified here, the default protocol from this client's * {@link ClientConfiguration} will be used, which by default is HTTPS. *

* For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available * endpoints for all AWS services, see: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/java-dg-region-selection.html#region-selection- * choose-endpoint *

* This method is not threadsafe. An endpoint should be configured when the client is created and before any * service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in * transit or retrying. * * @param endpoint * The endpoint (ex: "route53.amazonaws.com") or a full URL, including the protocol (ex: * "https://route53.amazonaws.com") of the region specific AWS endpoint this client will communicate with. * @deprecated use {@link AwsClientBuilder#setEndpointConfiguration(AwsClientBuilder.EndpointConfiguration)} for * example: * {@code builder.setEndpointConfiguration(new EndpointConfiguration(endpoint, signingRegion));} */ @Deprecated void setEndpoint(String endpoint); /** * An alternative to {@link AmazonRoute53#setEndpoint(String)}, sets the regional endpoint for this client's service * calls. Callers can use this method to control which AWS region they want to work with. *

* By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the * {@link ClientConfiguration} supplied at construction. *

* This method is not threadsafe. A region should be configured when the client is created and before any service * requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit * or retrying. * * @param region * The region this client will communicate with. See {@link Region#getRegion(com.amazonaws.regions.Regions)} * for accessing a given region. Must not be null and must be a region where the service is available. * * @see Region#getRegion(com.amazonaws.regions.Regions) * @see Region#createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration) * @see Region#isServiceSupported(String) * @deprecated use {@link AwsClientBuilder#setRegion(String)} */ @Deprecated void setRegion(Region region); /** *

* Activates a key-signing key (KSK) so that it can be used for signing by DNSSEC. This operation changes the KSK * status to ACTIVE. *

* * @param activateKeySigningKeyRequest * @return Result of the ActivateKeySigningKey operation returned by the service. * @throws ConcurrentModificationException * Another user submitted a request to create, update, or delete the object at the same time that you did. * Retry the request. * @throws NoSuchKeySigningKeyException * The specified key-signing key (KSK) doesn't exist. * @throws InvalidKeySigningKeyStatusException * The key-signing key (KSK) status isn't valid or another KSK has the status INTERNAL_FAILURE. * @throws InvalidSigningStatusException * Your hosted zone status isn't valid for this operation. In the hosted zone, change the status to enable * DNSSEC or disable DNSSEC. * @throws InvalidKMSArnException * The KeyManagementServiceArn that you specified isn't valid to use with DNSSEC signing. * @throws InvalidInputException * The input is not valid. * @sample AmazonRoute53.ActivateKeySigningKey * @see AWS * API Documentation */ ActivateKeySigningKeyResult activateKeySigningKey(ActivateKeySigningKeyRequest activateKeySigningKeyRequest); /** *

* Associates an Amazon VPC with a private hosted zone. *

* *

* To perform the association, the VPC and the private hosted zone must already exist. You can't convert a public * hosted zone into a private hosted zone. *

*
*

* If you want to associate a VPC that was created by using one Amazon Web Services account with a private hosted * zone that was created by using a different account, the Amazon Web Services account that created the private * hosted zone must first submit a CreateVPCAssociationAuthorization request. Then the account that * created the VPC must submit an AssociateVPCWithHostedZone request. *

*
*

* When granting access, the hosted zone and the Amazon VPC must belong to the same partition. A partition is a * group of Amazon Web Services Regions. Each Amazon Web Services account is scoped to one partition. *

*

* The following are the supported partitions: *

* *

* For more information, see Access Management in the * Amazon Web Services General Reference. *

*
* * @param associateVPCWithHostedZoneRequest * A complex type that contains information about the request to associate a VPC with a private hosted zone. * @return Result of the AssociateVPCWithHostedZone operation returned by the service. * @throws NoSuchHostedZoneException * No hosted zone exists with the ID that you specified. * @throws NotAuthorizedException * Associating the specified VPC with the specified hosted zone has not been authorized. * @throws InvalidVPCIdException * The VPC ID that you specified either isn't a valid ID or the current account is not authorized to access * this VPC. * @throws InvalidInputException * The input is not valid. * @throws PublicZoneVPCAssociationException * You're trying to associate a VPC with a public hosted zone. Amazon Route 53 doesn't support associating a * VPC with a public hosted zone. * @throws ConflictingDomainExistsException * The cause of this error depends on the operation that you're performing:

*