All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.route53resolver.AmazonRoute53Resolver Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Route 53 Resolver module holds the client classes that are used for communicating with Amazon Route 53 Resolver Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2015-2020 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.route53resolver;

import javax.annotation.Generated;

import com.amazonaws.*;
import com.amazonaws.regions.*;

import com.amazonaws.services.route53resolver.model.*;

/**
 * Interface for accessing Route53Resolver.
 * 

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

*

*

* Here's how you set up to query an Amazon Route 53 private hosted zone from your network: *

*
    *
  1. *

    * Connect your network to a VPC using AWS Direct Connect or a VPN. *

    *
  2. *
  3. *

    * Run the following AWS CLI command to create a Resolver endpoint: *

    *

    * create-resolver-endpoint --name [endpoint_name] --direction INBOUND --creator-request-id [unique_string] --security-group-ids [security_group_with_inbound_rules] --ip-addresses SubnetId=[subnet_id] SubnetId=[subnet_id_in_different_AZ] *

    *

    * Note the resolver endpoint ID that appears in the response. You'll use it in step 3. *

    *
  4. *
  5. *

    * Get the IP addresses for the Resolver endpoints: *

    *

    * get-resolver-endpoint --resolver-endpoint-id [resolver_endpoint_id] *

    *
  6. *
  7. *

    * In your network configuration, define the IP addresses that you got in step 3 as DNS servers. *

    *

    * You can now query instance names in your VPCs and the names of records in your private hosted zone. *

    *
  8. *
*

* You can also perform the following operations using the AWS CLI: *

*
    *
  • *

    * list-resolver-endpoints: List all endpoints. The syntax includes options for pagination and filtering. *

    *
  • *
  • *

    * update-resolver-endpoints: Add IP addresses to an endpoint or remove IP addresses from an endpoint. *

    *
  • *
*

* To delete an endpoint, use the following AWS CLI command: *

*

* delete-resolver-endpoint --resolver-endpoint-id [resolver_endpoint_id] *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AmazonRoute53Resolver { /** * 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 = "route53resolver"; /** *

* Adds IP addresses to an inbound or an outbound resolver endpoint. If you want to adding more than one IP address, * submit one AssociateResolverEndpointIpAddress request for each IP address. *

*

* To remove an IP address from an endpoint, see DisassociateResolverEndpointIpAddress. *

* * @param associateResolverEndpointIpAddressRequest * @return Result of the AssociateResolverEndpointIpAddress operation returned by the service. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InvalidRequestException * The request is invalid. * @throws ResourceExistsException * The resource that you tried to create already exists. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws LimitExceededException * The request caused one or more limits to be exceeded. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.AssociateResolverEndpointIpAddress * @see AWS API Documentation */ AssociateResolverEndpointIpAddressResult associateResolverEndpointIpAddress( AssociateResolverEndpointIpAddressRequest associateResolverEndpointIpAddressRequest); /** *

* Associates a resolver rule with a VPC. When you associate a rule with a VPC, Resolver forwards all DNS queries * for the domain name that is specified in the rule and that originate in the VPC. The queries are forwarded to the * IP addresses for the DNS resolvers that are specified in the rule. For more information about rules, see * CreateResolverRule. *

* * @param associateResolverRuleRequest * @return Result of the AssociateResolverRule operation returned by the service. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidRequestException * The request is invalid. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws ResourceUnavailableException * The specified resource isn't available. * @throws ResourceExistsException * The resource that you tried to create already exists. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.AssociateResolverRule * @see AWS API Documentation */ AssociateResolverRuleResult associateResolverRule(AssociateResolverRuleRequest associateResolverRuleRequest); /** *

* Creates a resolver endpoint. There are two types of resolver endpoints, inbound and outbound: *

*
    *
  • *

    * An inbound resolver endpoint forwards DNS queries to the DNS service for a VPC from your network or * another VPC. *

    *
  • *
  • *

    * An outbound resolver endpoint forwards DNS queries from the DNS service for a VPC to your network or * another VPC. *

    *
  • *
* * @param createResolverEndpointRequest * @return Result of the CreateResolverEndpoint operation returned by the service. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidRequestException * The request is invalid. * @throws ResourceExistsException * The resource that you tried to create already exists. * @throws LimitExceededException * The request caused one or more limits to be exceeded. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.CreateResolverEndpoint * @see AWS API Documentation */ CreateResolverEndpointResult createResolverEndpoint(CreateResolverEndpointRequest createResolverEndpointRequest); /** *

* For DNS queries that originate in your VPCs, specifies which resolver endpoint the queries pass through, one * domain name that you want to forward to your network, and the IP addresses of the DNS resolvers in your network. *

* * @param createResolverRuleRequest * @return Result of the CreateResolverRule operation returned by the service. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InvalidRequestException * The request is invalid. * @throws LimitExceededException * The request caused one or more limits to be exceeded. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws ResourceExistsException * The resource that you tried to create already exists. * @throws ResourceUnavailableException * The specified resource isn't available. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.CreateResolverRule * @see AWS API Documentation */ CreateResolverRuleResult createResolverRule(CreateResolverRuleRequest createResolverRuleRequest); /** *

* Deletes a resolver endpoint. The effect of deleting a resolver endpoint depends on whether it's an inbound or an * outbound resolver endpoint: *

*
    *
  • *

    * Inbound: DNS queries from your network or another VPC are no longer routed to the DNS service for the * specified VPC. *

    *
  • *
  • *

    * Outbound: DNS queries from a VPC are no longer routed to your network or to another VPC. *

    *
  • *
* * @param deleteResolverEndpointRequest * @return Result of the DeleteResolverEndpoint operation returned by the service. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InvalidRequestException * The request is invalid. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.DeleteResolverEndpoint * @see AWS API Documentation */ DeleteResolverEndpointResult deleteResolverEndpoint(DeleteResolverEndpointRequest deleteResolverEndpointRequest); /** *

* Deletes a resolver rule. Before you can delete a resolver rule, you must disassociate it from all the VPCs that * you associated the resolver rule with. For more infomation, see DisassociateResolverRule. *

* * @param deleteResolverRuleRequest * @return Result of the DeleteResolverRule operation returned by the service. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws ResourceInUseException * The resource that you tried to update or delete is currently in use. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.DeleteResolverRule * @see AWS API Documentation */ DeleteResolverRuleResult deleteResolverRule(DeleteResolverRuleRequest deleteResolverRuleRequest); /** *

* Removes IP addresses from an inbound or an outbound resolver endpoint. If you want to remove more than one IP * address, submit one DisassociateResolverEndpointIpAddress request for each IP address. *

*

* To add an IP address to an endpoint, see AssociateResolverEndpointIpAddress. *

* * @param disassociateResolverEndpointIpAddressRequest * @return Result of the DisassociateResolverEndpointIpAddress operation returned by the service. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InvalidRequestException * The request is invalid. * @throws ResourceExistsException * The resource that you tried to create already exists. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.DisassociateResolverEndpointIpAddress * @see AWS API Documentation */ DisassociateResolverEndpointIpAddressResult disassociateResolverEndpointIpAddress( DisassociateResolverEndpointIpAddressRequest disassociateResolverEndpointIpAddressRequest); /** *

* Removes the association between a specified resolver rule and a specified VPC. *

* *

* If you disassociate a resolver rule from a VPC, Resolver stops forwarding DNS queries for the domain name that * you specified in the resolver rule. *

*
* * @param disassociateResolverRuleRequest * @return Result of the DisassociateResolverRule operation returned by the service. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.DisassociateResolverRule * @see AWS API Documentation */ DisassociateResolverRuleResult disassociateResolverRule(DisassociateResolverRuleRequest disassociateResolverRuleRequest); /** *

* Gets information about a specified resolver endpoint, such as whether it's an inbound or an outbound resolver * endpoint, and the current status of the endpoint. *

* * @param getResolverEndpointRequest * @return Result of the GetResolverEndpoint operation returned by the service. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.GetResolverEndpoint * @see AWS API Documentation */ GetResolverEndpointResult getResolverEndpoint(GetResolverEndpointRequest getResolverEndpointRequest); /** *

* Gets information about a specified resolver rule, such as the domain name that the rule forwards DNS queries for * and the ID of the outbound resolver endpoint that the rule is associated with. *

* * @param getResolverRuleRequest * @return Result of the GetResolverRule operation returned by the service. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.GetResolverRule * @see AWS API Documentation */ GetResolverRuleResult getResolverRule(GetResolverRuleRequest getResolverRuleRequest); /** *

* Gets information about an association between a specified resolver rule and a VPC. You associate a resolver rule * and a VPC using AssociateResolverRule. *

* * @param getResolverRuleAssociationRequest * @return Result of the GetResolverRuleAssociation operation returned by the service. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.GetResolverRuleAssociation * @see AWS API Documentation */ GetResolverRuleAssociationResult getResolverRuleAssociation(GetResolverRuleAssociationRequest getResolverRuleAssociationRequest); /** *

* Gets information about a resolver rule policy. A resolver rule policy specifies the Resolver operations and * resources that you want to allow another AWS account to be able to use. *

* * @param getResolverRulePolicyRequest * @return Result of the GetResolverRulePolicy operation returned by the service. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws UnknownResourceException * The specified resource doesn't exist. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @sample AmazonRoute53Resolver.GetResolverRulePolicy * @see AWS API Documentation */ GetResolverRulePolicyResult getResolverRulePolicy(GetResolverRulePolicyRequest getResolverRulePolicyRequest); /** *

* Gets the IP addresses for a specified resolver endpoint. *

* * @param listResolverEndpointIpAddressesRequest * @return Result of the ListResolverEndpointIpAddresses operation returned by the service. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws InvalidNextTokenException * The value that you specified for NextToken in a List request isn't valid. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.ListResolverEndpointIpAddresses * @see AWS API Documentation */ ListResolverEndpointIpAddressesResult listResolverEndpointIpAddresses(ListResolverEndpointIpAddressesRequest listResolverEndpointIpAddressesRequest); /** *

* Lists all the resolver endpoints that were created using the current AWS account. *

* * @param listResolverEndpointsRequest * @return Result of the ListResolverEndpoints operation returned by the service. * @throws InvalidNextTokenException * The value that you specified for NextToken in a List request isn't valid. * @throws InvalidRequestException * The request is invalid. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.ListResolverEndpoints * @see AWS API Documentation */ ListResolverEndpointsResult listResolverEndpoints(ListResolverEndpointsRequest listResolverEndpointsRequest); /** *

* Lists the associations that were created between resolver rules and VPCs using the current AWS account. *

* * @param listResolverRuleAssociationsRequest * @return Result of the ListResolverRuleAssociations operation returned by the service. * @throws InvalidNextTokenException * The value that you specified for NextToken in a List request isn't valid. * @throws InvalidRequestException * The request is invalid. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.ListResolverRuleAssociations * @see AWS API Documentation */ ListResolverRuleAssociationsResult listResolverRuleAssociations(ListResolverRuleAssociationsRequest listResolverRuleAssociationsRequest); /** *

* Lists the resolver rules that were created using the current AWS account. *

* * @param listResolverRulesRequest * @return Result of the ListResolverRules operation returned by the service. * @throws InvalidNextTokenException * The value that you specified for NextToken in a List request isn't valid. * @throws InvalidRequestException * The request is invalid. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.ListResolverRules * @see AWS API Documentation */ ListResolverRulesResult listResolverRules(ListResolverRulesRequest listResolverRulesRequest); /** *

* Lists the tags that you associated with the specified resource. *

* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InvalidNextTokenException * The value that you specified for NextToken in a List request isn't valid. * @throws InvalidRequestException * The request is invalid. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.ListTagsForResource * @see AWS API Documentation */ ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest); /** *

* Specifies the Resolver operations and resources that you want to allow another AWS account to be able to use. *

* * @param putResolverRulePolicyRequest * @return Result of the PutResolverRulePolicy operation returned by the service. * @throws InvalidPolicyDocumentException * The specified resolver rule policy is invalid. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws UnknownResourceException * The specified resource doesn't exist. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @sample AmazonRoute53Resolver.PutResolverRulePolicy * @see AWS API Documentation */ PutResolverRulePolicyResult putResolverRulePolicy(PutResolverRulePolicyRequest putResolverRulePolicyRequest); /** *

* Adds one or more tags to a specified resource. *

* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws LimitExceededException * The request caused one or more limits to be exceeded. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InvalidTagException * The specified tag is invalid. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.TagResource * @see AWS * API Documentation */ TagResourceResult tagResource(TagResourceRequest tagResourceRequest); /** *

* Removes one or more tags from a specified resource. *

* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.UntagResource * @see AWS * API Documentation */ UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest); /** *

* Updates the name of an inbound or an outbound resolver endpoint. *

* * @param updateResolverEndpointRequest * @return Result of the UpdateResolverEndpoint operation returned by the service. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws InvalidRequestException * The request is invalid. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.UpdateResolverEndpoint * @see AWS API Documentation */ UpdateResolverEndpointResult updateResolverEndpoint(UpdateResolverEndpointRequest updateResolverEndpointRequest); /** *

* Updates settings for a specified resolver rule. ResolverRuleId is required, and all other parameters * are optional. If you don't specify a parameter, it retains its current value. *

* * @param updateResolverRuleRequest * @return Result of the UpdateResolverRule operation returned by the service. * @throws InvalidRequestException * The request is invalid. * @throws InvalidParameterException * One or more parameters in this request are not valid. * @throws ResourceNotFoundException * The specified resource doesn't exist. * @throws ResourceUnavailableException * The specified resource isn't available. * @throws LimitExceededException * The request caused one or more limits to be exceeded. * @throws InternalServiceErrorException * We encountered an unknown error. Try again in a few minutes. * @throws ThrottlingException * The request was throttled. Try again in a few minutes. * @sample AmazonRoute53Resolver.UpdateResolverRule * @see AWS API Documentation */ UpdateResolverRuleResult updateResolverRule(UpdateResolverRuleRequest updateResolverRuleRequest); /** * Shuts down this client object, releasing any resources that might be held open. This is an optional method, and * callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client * has been shutdown, it should not be used to make any more requests. */ void shutdown(); /** * Returns additional metadata for a previously executed successful request, typically used for debugging issues * where a service isn't acting as expected. This data isn't considered part of the result data returned by an * operation, so it's available through this separate, diagnostic interface. *

* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic * information for an executed request, you should use this method to retrieve it as soon as possible after * executing a request. * * @param request * The originally executed request. * * @return The response metadata for the specified request, or null if none is available. */ ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy