mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+1895
-1410
File diff suppressed because it is too large
Load Diff
+26
@@ -0,0 +1,26 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package route53 provides the client and types for making API
|
||||
// requests to Amazon Route 53.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01 for more information on this service.
|
||||
//
|
||||
// See route53 package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/route53/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon Route 53 with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the Amazon Route 53 client Route53 for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/route53/#New
|
||||
package route53
|
||||
+65
-14
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package route53
|
||||
|
||||
@@ -7,18 +7,28 @@ const (
|
||||
// ErrCodeConcurrentModification for service response error code
|
||||
// "ConcurrentModification".
|
||||
//
|
||||
// Another user submitted a request to update the object at the same time that
|
||||
// you did. Retry the request.
|
||||
// Another user submitted a request to create, update, or delete the object
|
||||
// at the same time that you did. Retry the request.
|
||||
ErrCodeConcurrentModification = "ConcurrentModification"
|
||||
|
||||
// ErrCodeConflictingDomainExists for service response error code
|
||||
// "ConflictingDomainExists".
|
||||
//
|
||||
// You specified an Amazon VPC that you're already using for another hosted
|
||||
// zone, and the domain that you specified for one of the hosted zones is a
|
||||
// subdomain of the domain that you specified for the other hosted zone. For
|
||||
// example, you can't use the same Amazon VPC for the hosted zones for example.com
|
||||
// and test.example.com.
|
||||
// The cause of this error depends on whether you're trying to create a public
|
||||
// or a private hosted zone:
|
||||
//
|
||||
// * Public hosted zone: Two hosted zones that have the same name or that
|
||||
// have a parent/child relationship (example.com and test.example.com) can't
|
||||
// have any common name servers. You tried to create a hosted zone that has
|
||||
// the same name as an existing hosted zone or that's the parent or child
|
||||
// of an existing hosted zone, and you specified a delegation set that shares
|
||||
// one or more name servers with the existing hosted zone.
|
||||
//
|
||||
// * Private hosted zone: You specified an Amazon VPC that you're already
|
||||
// using for another hosted zone, and the domain that you specified for one
|
||||
// of the hosted zones is a subdomain of the domain that you specified for
|
||||
// the other hosted zone. For example, you can't use the same Amazon VPC
|
||||
// for the hosted zones for example.com and test.example.com.
|
||||
ErrCodeConflictingDomainExists = "ConflictingDomainExists"
|
||||
|
||||
// ErrCodeConflictingTypes for service response error code
|
||||
@@ -69,16 +79,20 @@ const (
|
||||
// "HealthCheckAlreadyExists".
|
||||
//
|
||||
// The health check you're attempting to create already exists. Amazon Route
|
||||
// 53 returns this error when a health check has already been created with the
|
||||
// specified value for CallerReference.
|
||||
// 53 returns this error when you submit a request that has the following values:
|
||||
//
|
||||
// * The same value for CallerReference as an existing health check, and
|
||||
// one or more values that differ from the existing health check that has
|
||||
// the same caller reference.
|
||||
//
|
||||
// * The same value for CallerReference as a health check that you created
|
||||
// and later deleted, regardless of the other settings in the request.
|
||||
ErrCodeHealthCheckAlreadyExists = "HealthCheckAlreadyExists"
|
||||
|
||||
// ErrCodeHealthCheckInUse for service response error code
|
||||
// "HealthCheckInUse".
|
||||
//
|
||||
// The health check ID for this health check is referenced in the HealthCheckId
|
||||
// element in one of the resource record sets in one of the hosted zones that
|
||||
// are owned by the current AWS account.
|
||||
// This error code is not in use.
|
||||
ErrCodeHealthCheckInUse = "HealthCheckInUse"
|
||||
|
||||
// ErrCodeHealthCheckVersionMismatch for service response error code
|
||||
@@ -115,6 +129,21 @@ const (
|
||||
// 53 endpoint.
|
||||
ErrCodeIncompatibleVersion = "IncompatibleVersion"
|
||||
|
||||
// ErrCodeInsufficientCloudWatchLogsResourcePolicy for service response error code
|
||||
// "InsufficientCloudWatchLogsResourcePolicy".
|
||||
//
|
||||
// Amazon Route 53 doesn't have the permissions required to create log streams
|
||||
// and send query logs to log streams. Possible causes include the following:
|
||||
//
|
||||
// * There is no resource policy that specifies the log group ARN in the
|
||||
// value for Resource.
|
||||
//
|
||||
// * The resource policy that includes the log group ARN in the value for
|
||||
// Resource doesn't have the necessary permissions.
|
||||
//
|
||||
// * The resource policy hasn't finished propagating yet.
|
||||
ErrCodeInsufficientCloudWatchLogsResourcePolicy = "InsufficientCloudWatchLogsResourcePolicy"
|
||||
|
||||
// ErrCodeInvalidArgument for service response error code
|
||||
// "InvalidArgument".
|
||||
//
|
||||
@@ -142,6 +171,9 @@ const (
|
||||
|
||||
// ErrCodeInvalidPaginationToken for service response error code
|
||||
// "InvalidPaginationToken".
|
||||
//
|
||||
// The value that you specified to get the second or subsequent page of results
|
||||
// is invalid.
|
||||
ErrCodeInvalidPaginationToken = "InvalidPaginationToken"
|
||||
|
||||
// ErrCodeInvalidTrafficPolicyDocument for service response error code
|
||||
@@ -178,6 +210,12 @@ const (
|
||||
// A change with the specified change ID does not exist.
|
||||
ErrCodeNoSuchChange = "NoSuchChange"
|
||||
|
||||
// ErrCodeNoSuchCloudWatchLogsLogGroup for service response error code
|
||||
// "NoSuchCloudWatchLogsLogGroup".
|
||||
//
|
||||
// There is no CloudWatch Logs log group with the specified ARN.
|
||||
ErrCodeNoSuchCloudWatchLogsLogGroup = "NoSuchCloudWatchLogsLogGroup"
|
||||
|
||||
// ErrCodeNoSuchDelegationSet for service response error code
|
||||
// "NoSuchDelegationSet".
|
||||
//
|
||||
@@ -203,6 +241,12 @@ const (
|
||||
// No hosted zone exists with the ID that you specified.
|
||||
ErrCodeNoSuchHostedZone = "NoSuchHostedZone"
|
||||
|
||||
// ErrCodeNoSuchQueryLoggingConfig for service response error code
|
||||
// "NoSuchQueryLoggingConfig".
|
||||
//
|
||||
// There is no DNS query logging configuration with the specified ID.
|
||||
ErrCodeNoSuchQueryLoggingConfig = "NoSuchQueryLoggingConfig"
|
||||
|
||||
// ErrCodeNoSuchTrafficPolicy for service response error code
|
||||
// "NoSuchTrafficPolicy".
|
||||
//
|
||||
@@ -239,6 +283,13 @@ const (
|
||||
// 53 doesn't support associating a VPC with a public hosted zone.
|
||||
ErrCodePublicZoneVPCAssociation = "PublicZoneVPCAssociation"
|
||||
|
||||
// ErrCodeQueryLoggingConfigAlreadyExists for service response error code
|
||||
// "QueryLoggingConfigAlreadyExists".
|
||||
//
|
||||
// You can create only one query logging configuration for a hosted zone, and
|
||||
// a query logging configuration already exists for this hosted zone.
|
||||
ErrCodeQueryLoggingConfigAlreadyExists = "QueryLoggingConfigAlreadyExists"
|
||||
|
||||
// ErrCodeThrottlingException for service response error code
|
||||
// "ThrottlingException".
|
||||
//
|
||||
@@ -303,7 +354,7 @@ const (
|
||||
// ErrCodeTrafficPolicyInstanceAlreadyExists for service response error code
|
||||
// "TrafficPolicyInstanceAlreadyExists".
|
||||
//
|
||||
// Traffic policy instance with given Id already exists.
|
||||
// There is already a traffic policy instance with the specified ID.
|
||||
ErrCodeTrafficPolicyInstanceAlreadyExists = "TrafficPolicyInstanceAlreadyExists"
|
||||
|
||||
// ErrCodeVPCAssociationAuthorizationNotFound for service response error code
|
||||
|
||||
+615
-1171
File diff suppressed because it is too large
Load Diff
+18
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package route53iface provides an interface to enable mocking the Amazon Route 53 service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon Route 53.
|
||||
@@ -80,6 +80,10 @@ type Route53API interface {
|
||||
CreateHostedZoneWithContext(aws.Context, *route53.CreateHostedZoneInput, ...request.Option) (*route53.CreateHostedZoneOutput, error)
|
||||
CreateHostedZoneRequest(*route53.CreateHostedZoneInput) (*request.Request, *route53.CreateHostedZoneOutput)
|
||||
|
||||
CreateQueryLoggingConfig(*route53.CreateQueryLoggingConfigInput) (*route53.CreateQueryLoggingConfigOutput, error)
|
||||
CreateQueryLoggingConfigWithContext(aws.Context, *route53.CreateQueryLoggingConfigInput, ...request.Option) (*route53.CreateQueryLoggingConfigOutput, error)
|
||||
CreateQueryLoggingConfigRequest(*route53.CreateQueryLoggingConfigInput) (*request.Request, *route53.CreateQueryLoggingConfigOutput)
|
||||
|
||||
CreateReusableDelegationSet(*route53.CreateReusableDelegationSetInput) (*route53.CreateReusableDelegationSetOutput, error)
|
||||
CreateReusableDelegationSetWithContext(aws.Context, *route53.CreateReusableDelegationSetInput, ...request.Option) (*route53.CreateReusableDelegationSetOutput, error)
|
||||
CreateReusableDelegationSetRequest(*route53.CreateReusableDelegationSetInput) (*request.Request, *route53.CreateReusableDelegationSetOutput)
|
||||
@@ -108,6 +112,10 @@ type Route53API interface {
|
||||
DeleteHostedZoneWithContext(aws.Context, *route53.DeleteHostedZoneInput, ...request.Option) (*route53.DeleteHostedZoneOutput, error)
|
||||
DeleteHostedZoneRequest(*route53.DeleteHostedZoneInput) (*request.Request, *route53.DeleteHostedZoneOutput)
|
||||
|
||||
DeleteQueryLoggingConfig(*route53.DeleteQueryLoggingConfigInput) (*route53.DeleteQueryLoggingConfigOutput, error)
|
||||
DeleteQueryLoggingConfigWithContext(aws.Context, *route53.DeleteQueryLoggingConfigInput, ...request.Option) (*route53.DeleteQueryLoggingConfigOutput, error)
|
||||
DeleteQueryLoggingConfigRequest(*route53.DeleteQueryLoggingConfigInput) (*request.Request, *route53.DeleteQueryLoggingConfigOutput)
|
||||
|
||||
DeleteReusableDelegationSet(*route53.DeleteReusableDelegationSetInput) (*route53.DeleteReusableDelegationSetOutput, error)
|
||||
DeleteReusableDelegationSetWithContext(aws.Context, *route53.DeleteReusableDelegationSetInput, ...request.Option) (*route53.DeleteReusableDelegationSetOutput, error)
|
||||
DeleteReusableDelegationSetRequest(*route53.DeleteReusableDelegationSetInput) (*request.Request, *route53.DeleteReusableDelegationSetOutput)
|
||||
@@ -164,6 +172,10 @@ type Route53API interface {
|
||||
GetHostedZoneCountWithContext(aws.Context, *route53.GetHostedZoneCountInput, ...request.Option) (*route53.GetHostedZoneCountOutput, error)
|
||||
GetHostedZoneCountRequest(*route53.GetHostedZoneCountInput) (*request.Request, *route53.GetHostedZoneCountOutput)
|
||||
|
||||
GetQueryLoggingConfig(*route53.GetQueryLoggingConfigInput) (*route53.GetQueryLoggingConfigOutput, error)
|
||||
GetQueryLoggingConfigWithContext(aws.Context, *route53.GetQueryLoggingConfigInput, ...request.Option) (*route53.GetQueryLoggingConfigOutput, error)
|
||||
GetQueryLoggingConfigRequest(*route53.GetQueryLoggingConfigInput) (*request.Request, *route53.GetQueryLoggingConfigOutput)
|
||||
|
||||
GetReusableDelegationSet(*route53.GetReusableDelegationSetInput) (*route53.GetReusableDelegationSetOutput, error)
|
||||
GetReusableDelegationSetWithContext(aws.Context, *route53.GetReusableDelegationSetInput, ...request.Option) (*route53.GetReusableDelegationSetOutput, error)
|
||||
GetReusableDelegationSetRequest(*route53.GetReusableDelegationSetInput) (*request.Request, *route53.GetReusableDelegationSetOutput)
|
||||
@@ -202,6 +214,10 @@ type Route53API interface {
|
||||
ListHostedZonesByNameWithContext(aws.Context, *route53.ListHostedZonesByNameInput, ...request.Option) (*route53.ListHostedZonesByNameOutput, error)
|
||||
ListHostedZonesByNameRequest(*route53.ListHostedZonesByNameInput) (*request.Request, *route53.ListHostedZonesByNameOutput)
|
||||
|
||||
ListQueryLoggingConfigs(*route53.ListQueryLoggingConfigsInput) (*route53.ListQueryLoggingConfigsOutput, error)
|
||||
ListQueryLoggingConfigsWithContext(aws.Context, *route53.ListQueryLoggingConfigsInput, ...request.Option) (*route53.ListQueryLoggingConfigsOutput, error)
|
||||
ListQueryLoggingConfigsRequest(*route53.ListQueryLoggingConfigsInput) (*request.Request, *route53.ListQueryLoggingConfigsOutput)
|
||||
|
||||
ListResourceRecordSets(*route53.ListResourceRecordSetsInput) (*route53.ListResourceRecordSetsOutput, error)
|
||||
ListResourceRecordSetsWithContext(aws.Context, *route53.ListResourceRecordSetsInput, ...request.Option) (*route53.ListResourceRecordSetsOutput, error)
|
||||
ListResourceRecordSetsRequest(*route53.ListResourceRecordSetsInput) (*request.Request, *route53.ListResourceRecordSetsOutput)
|
||||
|
||||
+7
-5
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package route53
|
||||
|
||||
@@ -11,10 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/restxml"
|
||||
)
|
||||
|
||||
// Route53 is a client for Route 53.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01
|
||||
// Route53 provides the API operation methods for making requests to
|
||||
// Amazon Route 53. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// Route53 methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type Route53 struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+8
-3
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package route53
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// WaitUntilResourceRecordSetsChanged uses the Route 53 API operation
|
||||
// GetChange to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *Route53) WaitUntilResourceRecordSetsChanged(input *GetChangeInput) error {
|
||||
return c.WaitUntilResourceRecordSetsChangedWithContext(aws.BackgroundContext(), input)
|
||||
@@ -39,7 +39,12 @@ func (c *Route53) WaitUntilResourceRecordSetsChangedWithContext(ctx aws.Context,
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
req, _ := c.GetChangeRequest(input)
|
||||
var inCpy *GetChangeInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.GetChangeRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
|
||||
Reference in New Issue
Block a user