mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Update Go AWS SDK to the latest version
This commit is contained in:
committed by
Andrey Smirnov
parent
d08be990ef
commit
94a72b23ff
+16576
File diff suppressed because it is too large
Load Diff
+46
@@ -0,0 +1,46 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package neptune provides the client and types for making API
|
||||
// requests to Amazon Neptune.
|
||||
//
|
||||
// Amazon Neptune is a fast, reliable, fully-managed graph database service
|
||||
// that makes it easy to build and run applications that work with highly connected
|
||||
// datasets. The core of Amazon Neptune is a purpose-built, high-performance
|
||||
// graph database engine optimized for storing billions of relationships and
|
||||
// querying the graph with milliseconds latency. Amazon Neptune supports popular
|
||||
// graph models Property Graph and W3C's RDF, and their respective query languages
|
||||
// Apache TinkerPop Gremlin and SPARQL, allowing you to easily build queries
|
||||
// that efficiently navigate highly connected datasets. Neptune powers graph
|
||||
// use cases such as recommendation engines, fraud detection, knowledge graphs,
|
||||
// drug discovery, and network security.
|
||||
//
|
||||
// This interface reference for Amazon Neptune contains documentation for a
|
||||
// programming or command line interface you can use to manage Amazon Neptune.
|
||||
// Note that Amazon Neptune is asynchronous, which means that some interfaces
|
||||
// might require techniques such as polling or callback functions to determine
|
||||
// when a command has been applied. In this reference, the parameter descriptions
|
||||
// indicate whether a command is applied immediately, on the next instance reboot,
|
||||
// or during the maintenance window. The reference structure is as follows,
|
||||
// and we list following some related topics from the user guide.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31 for more information on this service.
|
||||
//
|
||||
// See neptune package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/neptune/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To contact Amazon Neptune 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 Neptune client Neptune for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/neptune/#New
|
||||
package neptune
|
||||
+381
@@ -0,0 +1,381 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package neptune
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeAuthorizationNotFoundFault for service response error code
|
||||
// "AuthorizationNotFound".
|
||||
//
|
||||
// Specified CIDRIP or EC2 security group is not authorized for the specified
|
||||
// DB security group.
|
||||
//
|
||||
// Neptune may not also be authorized via IAM to perform necessary actions on
|
||||
// your behalf.
|
||||
ErrCodeAuthorizationNotFoundFault = "AuthorizationNotFound"
|
||||
|
||||
// ErrCodeCertificateNotFoundFault for service response error code
|
||||
// "CertificateNotFound".
|
||||
//
|
||||
// CertificateIdentifier does not refer to an existing certificate.
|
||||
ErrCodeCertificateNotFoundFault = "CertificateNotFound"
|
||||
|
||||
// ErrCodeDBClusterAlreadyExistsFault for service response error code
|
||||
// "DBClusterAlreadyExistsFault".
|
||||
//
|
||||
// User already has a DB cluster with the given identifier.
|
||||
ErrCodeDBClusterAlreadyExistsFault = "DBClusterAlreadyExistsFault"
|
||||
|
||||
// ErrCodeDBClusterNotFoundFault for service response error code
|
||||
// "DBClusterNotFoundFault".
|
||||
//
|
||||
// DBClusterIdentifier does not refer to an existing DB cluster.
|
||||
ErrCodeDBClusterNotFoundFault = "DBClusterNotFoundFault"
|
||||
|
||||
// ErrCodeDBClusterParameterGroupNotFoundFault for service response error code
|
||||
// "DBClusterParameterGroupNotFound".
|
||||
//
|
||||
// DBClusterParameterGroupName does not refer to an existing DB Cluster parameter
|
||||
// group.
|
||||
ErrCodeDBClusterParameterGroupNotFoundFault = "DBClusterParameterGroupNotFound"
|
||||
|
||||
// ErrCodeDBClusterQuotaExceededFault for service response error code
|
||||
// "DBClusterQuotaExceededFault".
|
||||
//
|
||||
// User attempted to create a new DB cluster and the user has already reached
|
||||
// the maximum allowed DB cluster quota.
|
||||
ErrCodeDBClusterQuotaExceededFault = "DBClusterQuotaExceededFault"
|
||||
|
||||
// ErrCodeDBClusterRoleAlreadyExistsFault for service response error code
|
||||
// "DBClusterRoleAlreadyExists".
|
||||
//
|
||||
// The specified IAM role Amazon Resource Name (ARN) is already associated with
|
||||
// the specified DB cluster.
|
||||
ErrCodeDBClusterRoleAlreadyExistsFault = "DBClusterRoleAlreadyExists"
|
||||
|
||||
// ErrCodeDBClusterRoleNotFoundFault for service response error code
|
||||
// "DBClusterRoleNotFound".
|
||||
//
|
||||
// The specified IAM role Amazon Resource Name (ARN) is not associated with
|
||||
// the specified DB cluster.
|
||||
ErrCodeDBClusterRoleNotFoundFault = "DBClusterRoleNotFound"
|
||||
|
||||
// ErrCodeDBClusterRoleQuotaExceededFault for service response error code
|
||||
// "DBClusterRoleQuotaExceeded".
|
||||
//
|
||||
// You have exceeded the maximum number of IAM roles that can be associated
|
||||
// with the specified DB cluster.
|
||||
ErrCodeDBClusterRoleQuotaExceededFault = "DBClusterRoleQuotaExceeded"
|
||||
|
||||
// ErrCodeDBClusterSnapshotAlreadyExistsFault for service response error code
|
||||
// "DBClusterSnapshotAlreadyExistsFault".
|
||||
//
|
||||
// User already has a DB cluster snapshot with the given identifier.
|
||||
ErrCodeDBClusterSnapshotAlreadyExistsFault = "DBClusterSnapshotAlreadyExistsFault"
|
||||
|
||||
// ErrCodeDBClusterSnapshotNotFoundFault for service response error code
|
||||
// "DBClusterSnapshotNotFoundFault".
|
||||
//
|
||||
// DBClusterSnapshotIdentifier does not refer to an existing DB cluster snapshot.
|
||||
ErrCodeDBClusterSnapshotNotFoundFault = "DBClusterSnapshotNotFoundFault"
|
||||
|
||||
// ErrCodeDBInstanceAlreadyExistsFault for service response error code
|
||||
// "DBInstanceAlreadyExists".
|
||||
//
|
||||
// User already has a DB instance with the given identifier.
|
||||
ErrCodeDBInstanceAlreadyExistsFault = "DBInstanceAlreadyExists"
|
||||
|
||||
// ErrCodeDBInstanceNotFoundFault for service response error code
|
||||
// "DBInstanceNotFound".
|
||||
//
|
||||
// DBInstanceIdentifier does not refer to an existing DB instance.
|
||||
ErrCodeDBInstanceNotFoundFault = "DBInstanceNotFound"
|
||||
|
||||
// ErrCodeDBParameterGroupAlreadyExistsFault for service response error code
|
||||
// "DBParameterGroupAlreadyExists".
|
||||
//
|
||||
// A DB parameter group with the same name exists.
|
||||
ErrCodeDBParameterGroupAlreadyExistsFault = "DBParameterGroupAlreadyExists"
|
||||
|
||||
// ErrCodeDBParameterGroupNotFoundFault for service response error code
|
||||
// "DBParameterGroupNotFound".
|
||||
//
|
||||
// DBParameterGroupName does not refer to an existing DB parameter group.
|
||||
ErrCodeDBParameterGroupNotFoundFault = "DBParameterGroupNotFound"
|
||||
|
||||
// ErrCodeDBParameterGroupQuotaExceededFault for service response error code
|
||||
// "DBParameterGroupQuotaExceeded".
|
||||
//
|
||||
// Request would result in user exceeding the allowed number of DB parameter
|
||||
// groups.
|
||||
ErrCodeDBParameterGroupQuotaExceededFault = "DBParameterGroupQuotaExceeded"
|
||||
|
||||
// ErrCodeDBSecurityGroupNotFoundFault for service response error code
|
||||
// "DBSecurityGroupNotFound".
|
||||
//
|
||||
// DBSecurityGroupName does not refer to an existing DB security group.
|
||||
ErrCodeDBSecurityGroupNotFoundFault = "DBSecurityGroupNotFound"
|
||||
|
||||
// ErrCodeDBSnapshotAlreadyExistsFault for service response error code
|
||||
// "DBSnapshotAlreadyExists".
|
||||
//
|
||||
// DBSnapshotIdentifier is already used by an existing snapshot.
|
||||
ErrCodeDBSnapshotAlreadyExistsFault = "DBSnapshotAlreadyExists"
|
||||
|
||||
// ErrCodeDBSnapshotNotFoundFault for service response error code
|
||||
// "DBSnapshotNotFound".
|
||||
//
|
||||
// DBSnapshotIdentifier does not refer to an existing DB snapshot.
|
||||
ErrCodeDBSnapshotNotFoundFault = "DBSnapshotNotFound"
|
||||
|
||||
// ErrCodeDBSubnetGroupAlreadyExistsFault for service response error code
|
||||
// "DBSubnetGroupAlreadyExists".
|
||||
//
|
||||
// DBSubnetGroupName is already used by an existing DB subnet group.
|
||||
ErrCodeDBSubnetGroupAlreadyExistsFault = "DBSubnetGroupAlreadyExists"
|
||||
|
||||
// ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs for service response error code
|
||||
// "DBSubnetGroupDoesNotCoverEnoughAZs".
|
||||
//
|
||||
// Subnets in the DB subnet group should cover at least two Availability Zones
|
||||
// unless there is only one Availability Zone.
|
||||
ErrCodeDBSubnetGroupDoesNotCoverEnoughAZs = "DBSubnetGroupDoesNotCoverEnoughAZs"
|
||||
|
||||
// ErrCodeDBSubnetGroupNotFoundFault for service response error code
|
||||
// "DBSubnetGroupNotFoundFault".
|
||||
//
|
||||
// DBSubnetGroupName does not refer to an existing DB subnet group.
|
||||
ErrCodeDBSubnetGroupNotFoundFault = "DBSubnetGroupNotFoundFault"
|
||||
|
||||
// ErrCodeDBSubnetGroupQuotaExceededFault for service response error code
|
||||
// "DBSubnetGroupQuotaExceeded".
|
||||
//
|
||||
// Request would result in user exceeding the allowed number of DB subnet groups.
|
||||
ErrCodeDBSubnetGroupQuotaExceededFault = "DBSubnetGroupQuotaExceeded"
|
||||
|
||||
// ErrCodeDBSubnetQuotaExceededFault for service response error code
|
||||
// "DBSubnetQuotaExceededFault".
|
||||
//
|
||||
// Request would result in user exceeding the allowed number of subnets in a
|
||||
// DB subnet groups.
|
||||
ErrCodeDBSubnetQuotaExceededFault = "DBSubnetQuotaExceededFault"
|
||||
|
||||
// ErrCodeDBUpgradeDependencyFailureFault for service response error code
|
||||
// "DBUpgradeDependencyFailure".
|
||||
//
|
||||
// The DB upgrade failed because a resource the DB depends on could not be modified.
|
||||
ErrCodeDBUpgradeDependencyFailureFault = "DBUpgradeDependencyFailure"
|
||||
|
||||
// ErrCodeDomainNotFoundFault for service response error code
|
||||
// "DomainNotFoundFault".
|
||||
//
|
||||
// Domain does not refer to an existing Active Directory Domain.
|
||||
ErrCodeDomainNotFoundFault = "DomainNotFoundFault"
|
||||
|
||||
// ErrCodeEventSubscriptionQuotaExceededFault for service response error code
|
||||
// "EventSubscriptionQuotaExceeded".
|
||||
//
|
||||
// You have exceeded the number of events you can subscribe to.
|
||||
ErrCodeEventSubscriptionQuotaExceededFault = "EventSubscriptionQuotaExceeded"
|
||||
|
||||
// ErrCodeInstanceQuotaExceededFault for service response error code
|
||||
// "InstanceQuotaExceeded".
|
||||
//
|
||||
// Request would result in user exceeding the allowed number of DB instances.
|
||||
ErrCodeInstanceQuotaExceededFault = "InstanceQuotaExceeded"
|
||||
|
||||
// ErrCodeInsufficientDBClusterCapacityFault for service response error code
|
||||
// "InsufficientDBClusterCapacityFault".
|
||||
//
|
||||
// The DB cluster does not have enough capacity for the current operation.
|
||||
ErrCodeInsufficientDBClusterCapacityFault = "InsufficientDBClusterCapacityFault"
|
||||
|
||||
// ErrCodeInsufficientDBInstanceCapacityFault for service response error code
|
||||
// "InsufficientDBInstanceCapacity".
|
||||
//
|
||||
// Specified DB instance class is not available in the specified Availability
|
||||
// Zone.
|
||||
ErrCodeInsufficientDBInstanceCapacityFault = "InsufficientDBInstanceCapacity"
|
||||
|
||||
// ErrCodeInsufficientStorageClusterCapacityFault for service response error code
|
||||
// "InsufficientStorageClusterCapacity".
|
||||
//
|
||||
// There is insufficient storage available for the current action. You may be
|
||||
// able to resolve this error by updating your subnet group to use different
|
||||
// Availability Zones that have more storage available.
|
||||
ErrCodeInsufficientStorageClusterCapacityFault = "InsufficientStorageClusterCapacity"
|
||||
|
||||
// ErrCodeInvalidDBClusterSnapshotStateFault for service response error code
|
||||
// "InvalidDBClusterSnapshotStateFault".
|
||||
//
|
||||
// The supplied value is not a valid DB cluster snapshot state.
|
||||
ErrCodeInvalidDBClusterSnapshotStateFault = "InvalidDBClusterSnapshotStateFault"
|
||||
|
||||
// ErrCodeInvalidDBClusterStateFault for service response error code
|
||||
// "InvalidDBClusterStateFault".
|
||||
//
|
||||
// The DB cluster is not in a valid state.
|
||||
ErrCodeInvalidDBClusterStateFault = "InvalidDBClusterStateFault"
|
||||
|
||||
// ErrCodeInvalidDBInstanceStateFault for service response error code
|
||||
// "InvalidDBInstanceState".
|
||||
//
|
||||
// The specified DB instance is not in the available state.
|
||||
ErrCodeInvalidDBInstanceStateFault = "InvalidDBInstanceState"
|
||||
|
||||
// ErrCodeInvalidDBParameterGroupStateFault for service response error code
|
||||
// "InvalidDBParameterGroupState".
|
||||
//
|
||||
// The DB parameter group is in use or is in an invalid state. If you are attempting
|
||||
// to delete the parameter group, you cannot delete it when the parameter group
|
||||
// is in this state.
|
||||
ErrCodeInvalidDBParameterGroupStateFault = "InvalidDBParameterGroupState"
|
||||
|
||||
// ErrCodeInvalidDBSecurityGroupStateFault for service response error code
|
||||
// "InvalidDBSecurityGroupState".
|
||||
//
|
||||
// The state of the DB security group does not allow deletion.
|
||||
ErrCodeInvalidDBSecurityGroupStateFault = "InvalidDBSecurityGroupState"
|
||||
|
||||
// ErrCodeInvalidDBSnapshotStateFault for service response error code
|
||||
// "InvalidDBSnapshotState".
|
||||
//
|
||||
// The state of the DB snapshot does not allow deletion.
|
||||
ErrCodeInvalidDBSnapshotStateFault = "InvalidDBSnapshotState"
|
||||
|
||||
// ErrCodeInvalidDBSubnetGroupStateFault for service response error code
|
||||
// "InvalidDBSubnetGroupStateFault".
|
||||
//
|
||||
// The DB subnet group cannot be deleted because it is in use.
|
||||
ErrCodeInvalidDBSubnetGroupStateFault = "InvalidDBSubnetGroupStateFault"
|
||||
|
||||
// ErrCodeInvalidDBSubnetStateFault for service response error code
|
||||
// "InvalidDBSubnetStateFault".
|
||||
//
|
||||
// The DB subnet is not in the available state.
|
||||
ErrCodeInvalidDBSubnetStateFault = "InvalidDBSubnetStateFault"
|
||||
|
||||
// ErrCodeInvalidEventSubscriptionStateFault for service response error code
|
||||
// "InvalidEventSubscriptionState".
|
||||
//
|
||||
// The event subscription is in an invalid state.
|
||||
ErrCodeInvalidEventSubscriptionStateFault = "InvalidEventSubscriptionState"
|
||||
|
||||
// ErrCodeInvalidRestoreFault for service response error code
|
||||
// "InvalidRestoreFault".
|
||||
//
|
||||
// Cannot restore from vpc backup to non-vpc DB instance.
|
||||
ErrCodeInvalidRestoreFault = "InvalidRestoreFault"
|
||||
|
||||
// ErrCodeInvalidSubnet for service response error code
|
||||
// "InvalidSubnet".
|
||||
//
|
||||
// The requested subnet is invalid, or multiple subnets were requested that
|
||||
// are not all in a common VPC.
|
||||
ErrCodeInvalidSubnet = "InvalidSubnet"
|
||||
|
||||
// ErrCodeInvalidVPCNetworkStateFault for service response error code
|
||||
// "InvalidVPCNetworkStateFault".
|
||||
//
|
||||
// DB subnet group does not cover all Availability Zones after it is created
|
||||
// because users' change.
|
||||
ErrCodeInvalidVPCNetworkStateFault = "InvalidVPCNetworkStateFault"
|
||||
|
||||
// ErrCodeKMSKeyNotAccessibleFault for service response error code
|
||||
// "KMSKeyNotAccessibleFault".
|
||||
//
|
||||
// Error accessing KMS key.
|
||||
ErrCodeKMSKeyNotAccessibleFault = "KMSKeyNotAccessibleFault"
|
||||
|
||||
// ErrCodeOptionGroupNotFoundFault for service response error code
|
||||
// "OptionGroupNotFoundFault".
|
||||
//
|
||||
// The designated option group could not be found.
|
||||
ErrCodeOptionGroupNotFoundFault = "OptionGroupNotFoundFault"
|
||||
|
||||
// ErrCodeProvisionedIopsNotAvailableInAZFault for service response error code
|
||||
// "ProvisionedIopsNotAvailableInAZFault".
|
||||
//
|
||||
// Provisioned IOPS not available in the specified Availability Zone.
|
||||
ErrCodeProvisionedIopsNotAvailableInAZFault = "ProvisionedIopsNotAvailableInAZFault"
|
||||
|
||||
// ErrCodeResourceNotFoundFault for service response error code
|
||||
// "ResourceNotFoundFault".
|
||||
//
|
||||
// The specified resource ID was not found.
|
||||
ErrCodeResourceNotFoundFault = "ResourceNotFoundFault"
|
||||
|
||||
// ErrCodeSNSInvalidTopicFault for service response error code
|
||||
// "SNSInvalidTopic".
|
||||
//
|
||||
// The SNS topic is invalid.
|
||||
ErrCodeSNSInvalidTopicFault = "SNSInvalidTopic"
|
||||
|
||||
// ErrCodeSNSNoAuthorizationFault for service response error code
|
||||
// "SNSNoAuthorization".
|
||||
//
|
||||
// There is no SNS authorization.
|
||||
ErrCodeSNSNoAuthorizationFault = "SNSNoAuthorization"
|
||||
|
||||
// ErrCodeSNSTopicArnNotFoundFault for service response error code
|
||||
// "SNSTopicArnNotFound".
|
||||
//
|
||||
// The ARN of the SNS topic could not be found.
|
||||
ErrCodeSNSTopicArnNotFoundFault = "SNSTopicArnNotFound"
|
||||
|
||||
// ErrCodeSharedSnapshotQuotaExceededFault for service response error code
|
||||
// "SharedSnapshotQuotaExceeded".
|
||||
//
|
||||
// You have exceeded the maximum number of accounts that you can share a manual
|
||||
// DB snapshot with.
|
||||
ErrCodeSharedSnapshotQuotaExceededFault = "SharedSnapshotQuotaExceeded"
|
||||
|
||||
// ErrCodeSnapshotQuotaExceededFault for service response error code
|
||||
// "SnapshotQuotaExceeded".
|
||||
//
|
||||
// Request would result in user exceeding the allowed number of DB snapshots.
|
||||
ErrCodeSnapshotQuotaExceededFault = "SnapshotQuotaExceeded"
|
||||
|
||||
// ErrCodeSourceNotFoundFault for service response error code
|
||||
// "SourceNotFound".
|
||||
//
|
||||
// The source could not be found.
|
||||
ErrCodeSourceNotFoundFault = "SourceNotFound"
|
||||
|
||||
// ErrCodeStorageQuotaExceededFault for service response error code
|
||||
// "StorageQuotaExceeded".
|
||||
//
|
||||
// Request would result in user exceeding the allowed amount of storage available
|
||||
// across all DB instances.
|
||||
ErrCodeStorageQuotaExceededFault = "StorageQuotaExceeded"
|
||||
|
||||
// ErrCodeStorageTypeNotSupportedFault for service response error code
|
||||
// "StorageTypeNotSupported".
|
||||
//
|
||||
// StorageType specified cannot be associated with the DB Instance.
|
||||
ErrCodeStorageTypeNotSupportedFault = "StorageTypeNotSupported"
|
||||
|
||||
// ErrCodeSubnetAlreadyInUse for service response error code
|
||||
// "SubnetAlreadyInUse".
|
||||
//
|
||||
// The DB subnet is already in use in the Availability Zone.
|
||||
ErrCodeSubnetAlreadyInUse = "SubnetAlreadyInUse"
|
||||
|
||||
// ErrCodeSubscriptionAlreadyExistFault for service response error code
|
||||
// "SubscriptionAlreadyExist".
|
||||
//
|
||||
// This subscription already exists.
|
||||
ErrCodeSubscriptionAlreadyExistFault = "SubscriptionAlreadyExist"
|
||||
|
||||
// ErrCodeSubscriptionCategoryNotFoundFault for service response error code
|
||||
// "SubscriptionCategoryNotFound".
|
||||
//
|
||||
// The designated subscription category could not be found.
|
||||
ErrCodeSubscriptionCategoryNotFoundFault = "SubscriptionCategoryNotFound"
|
||||
|
||||
// ErrCodeSubscriptionNotFoundFault for service response error code
|
||||
// "SubscriptionNotFound".
|
||||
//
|
||||
// The designated subscription could not be found.
|
||||
ErrCodeSubscriptionNotFoundFault = "SubscriptionNotFound"
|
||||
)
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// +build go1.10,integration
|
||||
|
||||
package neptune_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/awstesting/integration"
|
||||
"github.com/aws/aws-sdk-go/service/neptune"
|
||||
)
|
||||
|
||||
var _ aws.Config
|
||||
var _ awserr.Error
|
||||
var _ request.Request
|
||||
|
||||
func TestInteg_00_DescribeDBEngineVersions(t *testing.T) {
|
||||
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancelFn()
|
||||
|
||||
sess := integration.SessionWithDefaultRegion("us-west-2")
|
||||
svc := neptune.New(sess)
|
||||
params := &neptune.DescribeDBEngineVersionsInput{}
|
||||
_, err := svc.DescribeDBEngineVersionsWithContext(ctx, params)
|
||||
if err != nil {
|
||||
t.Errorf("expect no error, got %v", err)
|
||||
}
|
||||
}
|
||||
func TestInteg_01_DescribeDBInstances(t *testing.T) {
|
||||
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
defer cancelFn()
|
||||
|
||||
sess := integration.SessionWithDefaultRegion("us-west-2")
|
||||
svc := neptune.New(sess)
|
||||
params := &neptune.DescribeDBInstancesInput{
|
||||
DBInstanceIdentifier: aws.String("fake-id"),
|
||||
}
|
||||
_, err := svc.DescribeDBInstancesWithContext(ctx, params)
|
||||
if err == nil {
|
||||
t.Fatalf("expect request to fail")
|
||||
}
|
||||
aerr, ok := err.(awserr.RequestFailure)
|
||||
if !ok {
|
||||
t.Fatalf("expect awserr, was %T", err)
|
||||
}
|
||||
if len(aerr.Code()) == 0 {
|
||||
t.Errorf("expect non-empty error code")
|
||||
}
|
||||
if v := aerr.Code(); v == request.ErrCodeSerialization {
|
||||
t.Errorf("expect API error code got serialization failure")
|
||||
}
|
||||
}
|
||||
+325
@@ -0,0 +1,325 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package neptuneiface provides an interface to enable mocking the Amazon Neptune service client
|
||||
// for testing your code.
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters.
|
||||
package neptuneiface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/neptune"
|
||||
)
|
||||
|
||||
// NeptuneAPI provides an interface to enable mocking the
|
||||
// neptune.Neptune service client's API operation,
|
||||
// paginators, and waiters. This make unit testing your code that calls out
|
||||
// to the SDK's service client's calls easier.
|
||||
//
|
||||
// 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 SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon Neptune.
|
||||
// func myFunc(svc neptuneiface.NeptuneAPI) bool {
|
||||
// // Make svc.AddRoleToDBCluster request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := neptune.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockNeptuneClient struct {
|
||||
// neptuneiface.NeptuneAPI
|
||||
// }
|
||||
// func (m *mockNeptuneClient) AddRoleToDBCluster(input *neptune.AddRoleToDBClusterInput) (*neptune.AddRoleToDBClusterOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockNeptuneClient{}
|
||||
//
|
||||
// myfunc(mockSvc)
|
||||
//
|
||||
// // Verify myFunc's functionality
|
||||
// }
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters. Its suggested to use the pattern above for testing, or using
|
||||
// tooling to generate mocks to satisfy the interfaces.
|
||||
type NeptuneAPI interface {
|
||||
AddRoleToDBCluster(*neptune.AddRoleToDBClusterInput) (*neptune.AddRoleToDBClusterOutput, error)
|
||||
AddRoleToDBClusterWithContext(aws.Context, *neptune.AddRoleToDBClusterInput, ...request.Option) (*neptune.AddRoleToDBClusterOutput, error)
|
||||
AddRoleToDBClusterRequest(*neptune.AddRoleToDBClusterInput) (*request.Request, *neptune.AddRoleToDBClusterOutput)
|
||||
|
||||
AddSourceIdentifierToSubscription(*neptune.AddSourceIdentifierToSubscriptionInput) (*neptune.AddSourceIdentifierToSubscriptionOutput, error)
|
||||
AddSourceIdentifierToSubscriptionWithContext(aws.Context, *neptune.AddSourceIdentifierToSubscriptionInput, ...request.Option) (*neptune.AddSourceIdentifierToSubscriptionOutput, error)
|
||||
AddSourceIdentifierToSubscriptionRequest(*neptune.AddSourceIdentifierToSubscriptionInput) (*request.Request, *neptune.AddSourceIdentifierToSubscriptionOutput)
|
||||
|
||||
AddTagsToResource(*neptune.AddTagsToResourceInput) (*neptune.AddTagsToResourceOutput, error)
|
||||
AddTagsToResourceWithContext(aws.Context, *neptune.AddTagsToResourceInput, ...request.Option) (*neptune.AddTagsToResourceOutput, error)
|
||||
AddTagsToResourceRequest(*neptune.AddTagsToResourceInput) (*request.Request, *neptune.AddTagsToResourceOutput)
|
||||
|
||||
ApplyPendingMaintenanceAction(*neptune.ApplyPendingMaintenanceActionInput) (*neptune.ApplyPendingMaintenanceActionOutput, error)
|
||||
ApplyPendingMaintenanceActionWithContext(aws.Context, *neptune.ApplyPendingMaintenanceActionInput, ...request.Option) (*neptune.ApplyPendingMaintenanceActionOutput, error)
|
||||
ApplyPendingMaintenanceActionRequest(*neptune.ApplyPendingMaintenanceActionInput) (*request.Request, *neptune.ApplyPendingMaintenanceActionOutput)
|
||||
|
||||
CopyDBClusterParameterGroup(*neptune.CopyDBClusterParameterGroupInput) (*neptune.CopyDBClusterParameterGroupOutput, error)
|
||||
CopyDBClusterParameterGroupWithContext(aws.Context, *neptune.CopyDBClusterParameterGroupInput, ...request.Option) (*neptune.CopyDBClusterParameterGroupOutput, error)
|
||||
CopyDBClusterParameterGroupRequest(*neptune.CopyDBClusterParameterGroupInput) (*request.Request, *neptune.CopyDBClusterParameterGroupOutput)
|
||||
|
||||
CopyDBClusterSnapshot(*neptune.CopyDBClusterSnapshotInput) (*neptune.CopyDBClusterSnapshotOutput, error)
|
||||
CopyDBClusterSnapshotWithContext(aws.Context, *neptune.CopyDBClusterSnapshotInput, ...request.Option) (*neptune.CopyDBClusterSnapshotOutput, error)
|
||||
CopyDBClusterSnapshotRequest(*neptune.CopyDBClusterSnapshotInput) (*request.Request, *neptune.CopyDBClusterSnapshotOutput)
|
||||
|
||||
CopyDBParameterGroup(*neptune.CopyDBParameterGroupInput) (*neptune.CopyDBParameterGroupOutput, error)
|
||||
CopyDBParameterGroupWithContext(aws.Context, *neptune.CopyDBParameterGroupInput, ...request.Option) (*neptune.CopyDBParameterGroupOutput, error)
|
||||
CopyDBParameterGroupRequest(*neptune.CopyDBParameterGroupInput) (*request.Request, *neptune.CopyDBParameterGroupOutput)
|
||||
|
||||
CreateDBCluster(*neptune.CreateDBClusterInput) (*neptune.CreateDBClusterOutput, error)
|
||||
CreateDBClusterWithContext(aws.Context, *neptune.CreateDBClusterInput, ...request.Option) (*neptune.CreateDBClusterOutput, error)
|
||||
CreateDBClusterRequest(*neptune.CreateDBClusterInput) (*request.Request, *neptune.CreateDBClusterOutput)
|
||||
|
||||
CreateDBClusterParameterGroup(*neptune.CreateDBClusterParameterGroupInput) (*neptune.CreateDBClusterParameterGroupOutput, error)
|
||||
CreateDBClusterParameterGroupWithContext(aws.Context, *neptune.CreateDBClusterParameterGroupInput, ...request.Option) (*neptune.CreateDBClusterParameterGroupOutput, error)
|
||||
CreateDBClusterParameterGroupRequest(*neptune.CreateDBClusterParameterGroupInput) (*request.Request, *neptune.CreateDBClusterParameterGroupOutput)
|
||||
|
||||
CreateDBClusterSnapshot(*neptune.CreateDBClusterSnapshotInput) (*neptune.CreateDBClusterSnapshotOutput, error)
|
||||
CreateDBClusterSnapshotWithContext(aws.Context, *neptune.CreateDBClusterSnapshotInput, ...request.Option) (*neptune.CreateDBClusterSnapshotOutput, error)
|
||||
CreateDBClusterSnapshotRequest(*neptune.CreateDBClusterSnapshotInput) (*request.Request, *neptune.CreateDBClusterSnapshotOutput)
|
||||
|
||||
CreateDBInstance(*neptune.CreateDBInstanceInput) (*neptune.CreateDBInstanceOutput, error)
|
||||
CreateDBInstanceWithContext(aws.Context, *neptune.CreateDBInstanceInput, ...request.Option) (*neptune.CreateDBInstanceOutput, error)
|
||||
CreateDBInstanceRequest(*neptune.CreateDBInstanceInput) (*request.Request, *neptune.CreateDBInstanceOutput)
|
||||
|
||||
CreateDBParameterGroup(*neptune.CreateDBParameterGroupInput) (*neptune.CreateDBParameterGroupOutput, error)
|
||||
CreateDBParameterGroupWithContext(aws.Context, *neptune.CreateDBParameterGroupInput, ...request.Option) (*neptune.CreateDBParameterGroupOutput, error)
|
||||
CreateDBParameterGroupRequest(*neptune.CreateDBParameterGroupInput) (*request.Request, *neptune.CreateDBParameterGroupOutput)
|
||||
|
||||
CreateDBSubnetGroup(*neptune.CreateDBSubnetGroupInput) (*neptune.CreateDBSubnetGroupOutput, error)
|
||||
CreateDBSubnetGroupWithContext(aws.Context, *neptune.CreateDBSubnetGroupInput, ...request.Option) (*neptune.CreateDBSubnetGroupOutput, error)
|
||||
CreateDBSubnetGroupRequest(*neptune.CreateDBSubnetGroupInput) (*request.Request, *neptune.CreateDBSubnetGroupOutput)
|
||||
|
||||
CreateEventSubscription(*neptune.CreateEventSubscriptionInput) (*neptune.CreateEventSubscriptionOutput, error)
|
||||
CreateEventSubscriptionWithContext(aws.Context, *neptune.CreateEventSubscriptionInput, ...request.Option) (*neptune.CreateEventSubscriptionOutput, error)
|
||||
CreateEventSubscriptionRequest(*neptune.CreateEventSubscriptionInput) (*request.Request, *neptune.CreateEventSubscriptionOutput)
|
||||
|
||||
DeleteDBCluster(*neptune.DeleteDBClusterInput) (*neptune.DeleteDBClusterOutput, error)
|
||||
DeleteDBClusterWithContext(aws.Context, *neptune.DeleteDBClusterInput, ...request.Option) (*neptune.DeleteDBClusterOutput, error)
|
||||
DeleteDBClusterRequest(*neptune.DeleteDBClusterInput) (*request.Request, *neptune.DeleteDBClusterOutput)
|
||||
|
||||
DeleteDBClusterParameterGroup(*neptune.DeleteDBClusterParameterGroupInput) (*neptune.DeleteDBClusterParameterGroupOutput, error)
|
||||
DeleteDBClusterParameterGroupWithContext(aws.Context, *neptune.DeleteDBClusterParameterGroupInput, ...request.Option) (*neptune.DeleteDBClusterParameterGroupOutput, error)
|
||||
DeleteDBClusterParameterGroupRequest(*neptune.DeleteDBClusterParameterGroupInput) (*request.Request, *neptune.DeleteDBClusterParameterGroupOutput)
|
||||
|
||||
DeleteDBClusterSnapshot(*neptune.DeleteDBClusterSnapshotInput) (*neptune.DeleteDBClusterSnapshotOutput, error)
|
||||
DeleteDBClusterSnapshotWithContext(aws.Context, *neptune.DeleteDBClusterSnapshotInput, ...request.Option) (*neptune.DeleteDBClusterSnapshotOutput, error)
|
||||
DeleteDBClusterSnapshotRequest(*neptune.DeleteDBClusterSnapshotInput) (*request.Request, *neptune.DeleteDBClusterSnapshotOutput)
|
||||
|
||||
DeleteDBInstance(*neptune.DeleteDBInstanceInput) (*neptune.DeleteDBInstanceOutput, error)
|
||||
DeleteDBInstanceWithContext(aws.Context, *neptune.DeleteDBInstanceInput, ...request.Option) (*neptune.DeleteDBInstanceOutput, error)
|
||||
DeleteDBInstanceRequest(*neptune.DeleteDBInstanceInput) (*request.Request, *neptune.DeleteDBInstanceOutput)
|
||||
|
||||
DeleteDBParameterGroup(*neptune.DeleteDBParameterGroupInput) (*neptune.DeleteDBParameterGroupOutput, error)
|
||||
DeleteDBParameterGroupWithContext(aws.Context, *neptune.DeleteDBParameterGroupInput, ...request.Option) (*neptune.DeleteDBParameterGroupOutput, error)
|
||||
DeleteDBParameterGroupRequest(*neptune.DeleteDBParameterGroupInput) (*request.Request, *neptune.DeleteDBParameterGroupOutput)
|
||||
|
||||
DeleteDBSubnetGroup(*neptune.DeleteDBSubnetGroupInput) (*neptune.DeleteDBSubnetGroupOutput, error)
|
||||
DeleteDBSubnetGroupWithContext(aws.Context, *neptune.DeleteDBSubnetGroupInput, ...request.Option) (*neptune.DeleteDBSubnetGroupOutput, error)
|
||||
DeleteDBSubnetGroupRequest(*neptune.DeleteDBSubnetGroupInput) (*request.Request, *neptune.DeleteDBSubnetGroupOutput)
|
||||
|
||||
DeleteEventSubscription(*neptune.DeleteEventSubscriptionInput) (*neptune.DeleteEventSubscriptionOutput, error)
|
||||
DeleteEventSubscriptionWithContext(aws.Context, *neptune.DeleteEventSubscriptionInput, ...request.Option) (*neptune.DeleteEventSubscriptionOutput, error)
|
||||
DeleteEventSubscriptionRequest(*neptune.DeleteEventSubscriptionInput) (*request.Request, *neptune.DeleteEventSubscriptionOutput)
|
||||
|
||||
DescribeDBClusterParameterGroups(*neptune.DescribeDBClusterParameterGroupsInput) (*neptune.DescribeDBClusterParameterGroupsOutput, error)
|
||||
DescribeDBClusterParameterGroupsWithContext(aws.Context, *neptune.DescribeDBClusterParameterGroupsInput, ...request.Option) (*neptune.DescribeDBClusterParameterGroupsOutput, error)
|
||||
DescribeDBClusterParameterGroupsRequest(*neptune.DescribeDBClusterParameterGroupsInput) (*request.Request, *neptune.DescribeDBClusterParameterGroupsOutput)
|
||||
|
||||
DescribeDBClusterParameters(*neptune.DescribeDBClusterParametersInput) (*neptune.DescribeDBClusterParametersOutput, error)
|
||||
DescribeDBClusterParametersWithContext(aws.Context, *neptune.DescribeDBClusterParametersInput, ...request.Option) (*neptune.DescribeDBClusterParametersOutput, error)
|
||||
DescribeDBClusterParametersRequest(*neptune.DescribeDBClusterParametersInput) (*request.Request, *neptune.DescribeDBClusterParametersOutput)
|
||||
|
||||
DescribeDBClusterSnapshotAttributes(*neptune.DescribeDBClusterSnapshotAttributesInput) (*neptune.DescribeDBClusterSnapshotAttributesOutput, error)
|
||||
DescribeDBClusterSnapshotAttributesWithContext(aws.Context, *neptune.DescribeDBClusterSnapshotAttributesInput, ...request.Option) (*neptune.DescribeDBClusterSnapshotAttributesOutput, error)
|
||||
DescribeDBClusterSnapshotAttributesRequest(*neptune.DescribeDBClusterSnapshotAttributesInput) (*request.Request, *neptune.DescribeDBClusterSnapshotAttributesOutput)
|
||||
|
||||
DescribeDBClusterSnapshots(*neptune.DescribeDBClusterSnapshotsInput) (*neptune.DescribeDBClusterSnapshotsOutput, error)
|
||||
DescribeDBClusterSnapshotsWithContext(aws.Context, *neptune.DescribeDBClusterSnapshotsInput, ...request.Option) (*neptune.DescribeDBClusterSnapshotsOutput, error)
|
||||
DescribeDBClusterSnapshotsRequest(*neptune.DescribeDBClusterSnapshotsInput) (*request.Request, *neptune.DescribeDBClusterSnapshotsOutput)
|
||||
|
||||
DescribeDBClusters(*neptune.DescribeDBClustersInput) (*neptune.DescribeDBClustersOutput, error)
|
||||
DescribeDBClustersWithContext(aws.Context, *neptune.DescribeDBClustersInput, ...request.Option) (*neptune.DescribeDBClustersOutput, error)
|
||||
DescribeDBClustersRequest(*neptune.DescribeDBClustersInput) (*request.Request, *neptune.DescribeDBClustersOutput)
|
||||
|
||||
DescribeDBEngineVersions(*neptune.DescribeDBEngineVersionsInput) (*neptune.DescribeDBEngineVersionsOutput, error)
|
||||
DescribeDBEngineVersionsWithContext(aws.Context, *neptune.DescribeDBEngineVersionsInput, ...request.Option) (*neptune.DescribeDBEngineVersionsOutput, error)
|
||||
DescribeDBEngineVersionsRequest(*neptune.DescribeDBEngineVersionsInput) (*request.Request, *neptune.DescribeDBEngineVersionsOutput)
|
||||
|
||||
DescribeDBEngineVersionsPages(*neptune.DescribeDBEngineVersionsInput, func(*neptune.DescribeDBEngineVersionsOutput, bool) bool) error
|
||||
DescribeDBEngineVersionsPagesWithContext(aws.Context, *neptune.DescribeDBEngineVersionsInput, func(*neptune.DescribeDBEngineVersionsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeDBInstances(*neptune.DescribeDBInstancesInput) (*neptune.DescribeDBInstancesOutput, error)
|
||||
DescribeDBInstancesWithContext(aws.Context, *neptune.DescribeDBInstancesInput, ...request.Option) (*neptune.DescribeDBInstancesOutput, error)
|
||||
DescribeDBInstancesRequest(*neptune.DescribeDBInstancesInput) (*request.Request, *neptune.DescribeDBInstancesOutput)
|
||||
|
||||
DescribeDBInstancesPages(*neptune.DescribeDBInstancesInput, func(*neptune.DescribeDBInstancesOutput, bool) bool) error
|
||||
DescribeDBInstancesPagesWithContext(aws.Context, *neptune.DescribeDBInstancesInput, func(*neptune.DescribeDBInstancesOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeDBParameterGroups(*neptune.DescribeDBParameterGroupsInput) (*neptune.DescribeDBParameterGroupsOutput, error)
|
||||
DescribeDBParameterGroupsWithContext(aws.Context, *neptune.DescribeDBParameterGroupsInput, ...request.Option) (*neptune.DescribeDBParameterGroupsOutput, error)
|
||||
DescribeDBParameterGroupsRequest(*neptune.DescribeDBParameterGroupsInput) (*request.Request, *neptune.DescribeDBParameterGroupsOutput)
|
||||
|
||||
DescribeDBParameterGroupsPages(*neptune.DescribeDBParameterGroupsInput, func(*neptune.DescribeDBParameterGroupsOutput, bool) bool) error
|
||||
DescribeDBParameterGroupsPagesWithContext(aws.Context, *neptune.DescribeDBParameterGroupsInput, func(*neptune.DescribeDBParameterGroupsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeDBParameters(*neptune.DescribeDBParametersInput) (*neptune.DescribeDBParametersOutput, error)
|
||||
DescribeDBParametersWithContext(aws.Context, *neptune.DescribeDBParametersInput, ...request.Option) (*neptune.DescribeDBParametersOutput, error)
|
||||
DescribeDBParametersRequest(*neptune.DescribeDBParametersInput) (*request.Request, *neptune.DescribeDBParametersOutput)
|
||||
|
||||
DescribeDBParametersPages(*neptune.DescribeDBParametersInput, func(*neptune.DescribeDBParametersOutput, bool) bool) error
|
||||
DescribeDBParametersPagesWithContext(aws.Context, *neptune.DescribeDBParametersInput, func(*neptune.DescribeDBParametersOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeDBSubnetGroups(*neptune.DescribeDBSubnetGroupsInput) (*neptune.DescribeDBSubnetGroupsOutput, error)
|
||||
DescribeDBSubnetGroupsWithContext(aws.Context, *neptune.DescribeDBSubnetGroupsInput, ...request.Option) (*neptune.DescribeDBSubnetGroupsOutput, error)
|
||||
DescribeDBSubnetGroupsRequest(*neptune.DescribeDBSubnetGroupsInput) (*request.Request, *neptune.DescribeDBSubnetGroupsOutput)
|
||||
|
||||
DescribeDBSubnetGroupsPages(*neptune.DescribeDBSubnetGroupsInput, func(*neptune.DescribeDBSubnetGroupsOutput, bool) bool) error
|
||||
DescribeDBSubnetGroupsPagesWithContext(aws.Context, *neptune.DescribeDBSubnetGroupsInput, func(*neptune.DescribeDBSubnetGroupsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeEngineDefaultClusterParameters(*neptune.DescribeEngineDefaultClusterParametersInput) (*neptune.DescribeEngineDefaultClusterParametersOutput, error)
|
||||
DescribeEngineDefaultClusterParametersWithContext(aws.Context, *neptune.DescribeEngineDefaultClusterParametersInput, ...request.Option) (*neptune.DescribeEngineDefaultClusterParametersOutput, error)
|
||||
DescribeEngineDefaultClusterParametersRequest(*neptune.DescribeEngineDefaultClusterParametersInput) (*request.Request, *neptune.DescribeEngineDefaultClusterParametersOutput)
|
||||
|
||||
DescribeEngineDefaultParameters(*neptune.DescribeEngineDefaultParametersInput) (*neptune.DescribeEngineDefaultParametersOutput, error)
|
||||
DescribeEngineDefaultParametersWithContext(aws.Context, *neptune.DescribeEngineDefaultParametersInput, ...request.Option) (*neptune.DescribeEngineDefaultParametersOutput, error)
|
||||
DescribeEngineDefaultParametersRequest(*neptune.DescribeEngineDefaultParametersInput) (*request.Request, *neptune.DescribeEngineDefaultParametersOutput)
|
||||
|
||||
DescribeEngineDefaultParametersPages(*neptune.DescribeEngineDefaultParametersInput, func(*neptune.DescribeEngineDefaultParametersOutput, bool) bool) error
|
||||
DescribeEngineDefaultParametersPagesWithContext(aws.Context, *neptune.DescribeEngineDefaultParametersInput, func(*neptune.DescribeEngineDefaultParametersOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeEventCategories(*neptune.DescribeEventCategoriesInput) (*neptune.DescribeEventCategoriesOutput, error)
|
||||
DescribeEventCategoriesWithContext(aws.Context, *neptune.DescribeEventCategoriesInput, ...request.Option) (*neptune.DescribeEventCategoriesOutput, error)
|
||||
DescribeEventCategoriesRequest(*neptune.DescribeEventCategoriesInput) (*request.Request, *neptune.DescribeEventCategoriesOutput)
|
||||
|
||||
DescribeEventSubscriptions(*neptune.DescribeEventSubscriptionsInput) (*neptune.DescribeEventSubscriptionsOutput, error)
|
||||
DescribeEventSubscriptionsWithContext(aws.Context, *neptune.DescribeEventSubscriptionsInput, ...request.Option) (*neptune.DescribeEventSubscriptionsOutput, error)
|
||||
DescribeEventSubscriptionsRequest(*neptune.DescribeEventSubscriptionsInput) (*request.Request, *neptune.DescribeEventSubscriptionsOutput)
|
||||
|
||||
DescribeEventSubscriptionsPages(*neptune.DescribeEventSubscriptionsInput, func(*neptune.DescribeEventSubscriptionsOutput, bool) bool) error
|
||||
DescribeEventSubscriptionsPagesWithContext(aws.Context, *neptune.DescribeEventSubscriptionsInput, func(*neptune.DescribeEventSubscriptionsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeEvents(*neptune.DescribeEventsInput) (*neptune.DescribeEventsOutput, error)
|
||||
DescribeEventsWithContext(aws.Context, *neptune.DescribeEventsInput, ...request.Option) (*neptune.DescribeEventsOutput, error)
|
||||
DescribeEventsRequest(*neptune.DescribeEventsInput) (*request.Request, *neptune.DescribeEventsOutput)
|
||||
|
||||
DescribeEventsPages(*neptune.DescribeEventsInput, func(*neptune.DescribeEventsOutput, bool) bool) error
|
||||
DescribeEventsPagesWithContext(aws.Context, *neptune.DescribeEventsInput, func(*neptune.DescribeEventsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeOrderableDBInstanceOptions(*neptune.DescribeOrderableDBInstanceOptionsInput) (*neptune.DescribeOrderableDBInstanceOptionsOutput, error)
|
||||
DescribeOrderableDBInstanceOptionsWithContext(aws.Context, *neptune.DescribeOrderableDBInstanceOptionsInput, ...request.Option) (*neptune.DescribeOrderableDBInstanceOptionsOutput, error)
|
||||
DescribeOrderableDBInstanceOptionsRequest(*neptune.DescribeOrderableDBInstanceOptionsInput) (*request.Request, *neptune.DescribeOrderableDBInstanceOptionsOutput)
|
||||
|
||||
DescribeOrderableDBInstanceOptionsPages(*neptune.DescribeOrderableDBInstanceOptionsInput, func(*neptune.DescribeOrderableDBInstanceOptionsOutput, bool) bool) error
|
||||
DescribeOrderableDBInstanceOptionsPagesWithContext(aws.Context, *neptune.DescribeOrderableDBInstanceOptionsInput, func(*neptune.DescribeOrderableDBInstanceOptionsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribePendingMaintenanceActions(*neptune.DescribePendingMaintenanceActionsInput) (*neptune.DescribePendingMaintenanceActionsOutput, error)
|
||||
DescribePendingMaintenanceActionsWithContext(aws.Context, *neptune.DescribePendingMaintenanceActionsInput, ...request.Option) (*neptune.DescribePendingMaintenanceActionsOutput, error)
|
||||
DescribePendingMaintenanceActionsRequest(*neptune.DescribePendingMaintenanceActionsInput) (*request.Request, *neptune.DescribePendingMaintenanceActionsOutput)
|
||||
|
||||
DescribeValidDBInstanceModifications(*neptune.DescribeValidDBInstanceModificationsInput) (*neptune.DescribeValidDBInstanceModificationsOutput, error)
|
||||
DescribeValidDBInstanceModificationsWithContext(aws.Context, *neptune.DescribeValidDBInstanceModificationsInput, ...request.Option) (*neptune.DescribeValidDBInstanceModificationsOutput, error)
|
||||
DescribeValidDBInstanceModificationsRequest(*neptune.DescribeValidDBInstanceModificationsInput) (*request.Request, *neptune.DescribeValidDBInstanceModificationsOutput)
|
||||
|
||||
FailoverDBCluster(*neptune.FailoverDBClusterInput) (*neptune.FailoverDBClusterOutput, error)
|
||||
FailoverDBClusterWithContext(aws.Context, *neptune.FailoverDBClusterInput, ...request.Option) (*neptune.FailoverDBClusterOutput, error)
|
||||
FailoverDBClusterRequest(*neptune.FailoverDBClusterInput) (*request.Request, *neptune.FailoverDBClusterOutput)
|
||||
|
||||
ListTagsForResource(*neptune.ListTagsForResourceInput) (*neptune.ListTagsForResourceOutput, error)
|
||||
ListTagsForResourceWithContext(aws.Context, *neptune.ListTagsForResourceInput, ...request.Option) (*neptune.ListTagsForResourceOutput, error)
|
||||
ListTagsForResourceRequest(*neptune.ListTagsForResourceInput) (*request.Request, *neptune.ListTagsForResourceOutput)
|
||||
|
||||
ModifyDBCluster(*neptune.ModifyDBClusterInput) (*neptune.ModifyDBClusterOutput, error)
|
||||
ModifyDBClusterWithContext(aws.Context, *neptune.ModifyDBClusterInput, ...request.Option) (*neptune.ModifyDBClusterOutput, error)
|
||||
ModifyDBClusterRequest(*neptune.ModifyDBClusterInput) (*request.Request, *neptune.ModifyDBClusterOutput)
|
||||
|
||||
ModifyDBClusterParameterGroup(*neptune.ModifyDBClusterParameterGroupInput) (*neptune.ResetDBClusterParameterGroupOutput, error)
|
||||
ModifyDBClusterParameterGroupWithContext(aws.Context, *neptune.ModifyDBClusterParameterGroupInput, ...request.Option) (*neptune.ResetDBClusterParameterGroupOutput, error)
|
||||
ModifyDBClusterParameterGroupRequest(*neptune.ModifyDBClusterParameterGroupInput) (*request.Request, *neptune.ResetDBClusterParameterGroupOutput)
|
||||
|
||||
ModifyDBClusterSnapshotAttribute(*neptune.ModifyDBClusterSnapshotAttributeInput) (*neptune.ModifyDBClusterSnapshotAttributeOutput, error)
|
||||
ModifyDBClusterSnapshotAttributeWithContext(aws.Context, *neptune.ModifyDBClusterSnapshotAttributeInput, ...request.Option) (*neptune.ModifyDBClusterSnapshotAttributeOutput, error)
|
||||
ModifyDBClusterSnapshotAttributeRequest(*neptune.ModifyDBClusterSnapshotAttributeInput) (*request.Request, *neptune.ModifyDBClusterSnapshotAttributeOutput)
|
||||
|
||||
ModifyDBInstance(*neptune.ModifyDBInstanceInput) (*neptune.ModifyDBInstanceOutput, error)
|
||||
ModifyDBInstanceWithContext(aws.Context, *neptune.ModifyDBInstanceInput, ...request.Option) (*neptune.ModifyDBInstanceOutput, error)
|
||||
ModifyDBInstanceRequest(*neptune.ModifyDBInstanceInput) (*request.Request, *neptune.ModifyDBInstanceOutput)
|
||||
|
||||
ModifyDBParameterGroup(*neptune.ModifyDBParameterGroupInput) (*neptune.ResetDBParameterGroupOutput, error)
|
||||
ModifyDBParameterGroupWithContext(aws.Context, *neptune.ModifyDBParameterGroupInput, ...request.Option) (*neptune.ResetDBParameterGroupOutput, error)
|
||||
ModifyDBParameterGroupRequest(*neptune.ModifyDBParameterGroupInput) (*request.Request, *neptune.ResetDBParameterGroupOutput)
|
||||
|
||||
ModifyDBSubnetGroup(*neptune.ModifyDBSubnetGroupInput) (*neptune.ModifyDBSubnetGroupOutput, error)
|
||||
ModifyDBSubnetGroupWithContext(aws.Context, *neptune.ModifyDBSubnetGroupInput, ...request.Option) (*neptune.ModifyDBSubnetGroupOutput, error)
|
||||
ModifyDBSubnetGroupRequest(*neptune.ModifyDBSubnetGroupInput) (*request.Request, *neptune.ModifyDBSubnetGroupOutput)
|
||||
|
||||
ModifyEventSubscription(*neptune.ModifyEventSubscriptionInput) (*neptune.ModifyEventSubscriptionOutput, error)
|
||||
ModifyEventSubscriptionWithContext(aws.Context, *neptune.ModifyEventSubscriptionInput, ...request.Option) (*neptune.ModifyEventSubscriptionOutput, error)
|
||||
ModifyEventSubscriptionRequest(*neptune.ModifyEventSubscriptionInput) (*request.Request, *neptune.ModifyEventSubscriptionOutput)
|
||||
|
||||
PromoteReadReplicaDBCluster(*neptune.PromoteReadReplicaDBClusterInput) (*neptune.PromoteReadReplicaDBClusterOutput, error)
|
||||
PromoteReadReplicaDBClusterWithContext(aws.Context, *neptune.PromoteReadReplicaDBClusterInput, ...request.Option) (*neptune.PromoteReadReplicaDBClusterOutput, error)
|
||||
PromoteReadReplicaDBClusterRequest(*neptune.PromoteReadReplicaDBClusterInput) (*request.Request, *neptune.PromoteReadReplicaDBClusterOutput)
|
||||
|
||||
RebootDBInstance(*neptune.RebootDBInstanceInput) (*neptune.RebootDBInstanceOutput, error)
|
||||
RebootDBInstanceWithContext(aws.Context, *neptune.RebootDBInstanceInput, ...request.Option) (*neptune.RebootDBInstanceOutput, error)
|
||||
RebootDBInstanceRequest(*neptune.RebootDBInstanceInput) (*request.Request, *neptune.RebootDBInstanceOutput)
|
||||
|
||||
RemoveRoleFromDBCluster(*neptune.RemoveRoleFromDBClusterInput) (*neptune.RemoveRoleFromDBClusterOutput, error)
|
||||
RemoveRoleFromDBClusterWithContext(aws.Context, *neptune.RemoveRoleFromDBClusterInput, ...request.Option) (*neptune.RemoveRoleFromDBClusterOutput, error)
|
||||
RemoveRoleFromDBClusterRequest(*neptune.RemoveRoleFromDBClusterInput) (*request.Request, *neptune.RemoveRoleFromDBClusterOutput)
|
||||
|
||||
RemoveSourceIdentifierFromSubscription(*neptune.RemoveSourceIdentifierFromSubscriptionInput) (*neptune.RemoveSourceIdentifierFromSubscriptionOutput, error)
|
||||
RemoveSourceIdentifierFromSubscriptionWithContext(aws.Context, *neptune.RemoveSourceIdentifierFromSubscriptionInput, ...request.Option) (*neptune.RemoveSourceIdentifierFromSubscriptionOutput, error)
|
||||
RemoveSourceIdentifierFromSubscriptionRequest(*neptune.RemoveSourceIdentifierFromSubscriptionInput) (*request.Request, *neptune.RemoveSourceIdentifierFromSubscriptionOutput)
|
||||
|
||||
RemoveTagsFromResource(*neptune.RemoveTagsFromResourceInput) (*neptune.RemoveTagsFromResourceOutput, error)
|
||||
RemoveTagsFromResourceWithContext(aws.Context, *neptune.RemoveTagsFromResourceInput, ...request.Option) (*neptune.RemoveTagsFromResourceOutput, error)
|
||||
RemoveTagsFromResourceRequest(*neptune.RemoveTagsFromResourceInput) (*request.Request, *neptune.RemoveTagsFromResourceOutput)
|
||||
|
||||
ResetDBClusterParameterGroup(*neptune.ResetDBClusterParameterGroupInput) (*neptune.ResetDBClusterParameterGroupOutput, error)
|
||||
ResetDBClusterParameterGroupWithContext(aws.Context, *neptune.ResetDBClusterParameterGroupInput, ...request.Option) (*neptune.ResetDBClusterParameterGroupOutput, error)
|
||||
ResetDBClusterParameterGroupRequest(*neptune.ResetDBClusterParameterGroupInput) (*request.Request, *neptune.ResetDBClusterParameterGroupOutput)
|
||||
|
||||
ResetDBParameterGroup(*neptune.ResetDBParameterGroupInput) (*neptune.ResetDBParameterGroupOutput, error)
|
||||
ResetDBParameterGroupWithContext(aws.Context, *neptune.ResetDBParameterGroupInput, ...request.Option) (*neptune.ResetDBParameterGroupOutput, error)
|
||||
ResetDBParameterGroupRequest(*neptune.ResetDBParameterGroupInput) (*request.Request, *neptune.ResetDBParameterGroupOutput)
|
||||
|
||||
RestoreDBClusterFromSnapshot(*neptune.RestoreDBClusterFromSnapshotInput) (*neptune.RestoreDBClusterFromSnapshotOutput, error)
|
||||
RestoreDBClusterFromSnapshotWithContext(aws.Context, *neptune.RestoreDBClusterFromSnapshotInput, ...request.Option) (*neptune.RestoreDBClusterFromSnapshotOutput, error)
|
||||
RestoreDBClusterFromSnapshotRequest(*neptune.RestoreDBClusterFromSnapshotInput) (*request.Request, *neptune.RestoreDBClusterFromSnapshotOutput)
|
||||
|
||||
RestoreDBClusterToPointInTime(*neptune.RestoreDBClusterToPointInTimeInput) (*neptune.RestoreDBClusterToPointInTimeOutput, error)
|
||||
RestoreDBClusterToPointInTimeWithContext(aws.Context, *neptune.RestoreDBClusterToPointInTimeInput, ...request.Option) (*neptune.RestoreDBClusterToPointInTimeOutput, error)
|
||||
RestoreDBClusterToPointInTimeRequest(*neptune.RestoreDBClusterToPointInTimeInput) (*request.Request, *neptune.RestoreDBClusterToPointInTimeOutput)
|
||||
|
||||
WaitUntilDBInstanceAvailable(*neptune.DescribeDBInstancesInput) error
|
||||
WaitUntilDBInstanceAvailableWithContext(aws.Context, *neptune.DescribeDBInstancesInput, ...request.WaiterOption) error
|
||||
|
||||
WaitUntilDBInstanceDeleted(*neptune.DescribeDBInstancesInput) error
|
||||
WaitUntilDBInstanceDeletedWithContext(aws.Context, *neptune.DescribeDBInstancesInput, ...request.WaiterOption) error
|
||||
}
|
||||
|
||||
var _ NeptuneAPI = (*neptune.Neptune)(nil)
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package neptune
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/client"
|
||||
"github.com/aws/aws-sdk-go/aws/client/metadata"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go/private/protocol/query"
|
||||
)
|
||||
|
||||
// Neptune provides the API operation methods for making requests to
|
||||
// Amazon Neptune. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// Neptune methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type Neptune struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
// Used for custom client initialization logic
|
||||
var initClient func(*client.Client)
|
||||
|
||||
// Used for custom request initialization logic
|
||||
var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "rds" // Name of service.
|
||||
EndpointsID = ServiceName // ID to lookup a service endpoint with.
|
||||
ServiceID = "Neptune" // ServiceID is a unique identifer of a specific service.
|
||||
)
|
||||
|
||||
// New creates a new instance of the Neptune client with a session.
|
||||
// If additional configuration is needed for the client instance use the optional
|
||||
// aws.Config parameter to add your extra config.
|
||||
//
|
||||
// Example:
|
||||
// // Create a Neptune client from just a session.
|
||||
// svc := neptune.New(mySession)
|
||||
//
|
||||
// // Create a Neptune client with additional configuration
|
||||
// svc := neptune.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Neptune {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
if c.SigningNameDerived || len(c.SigningName) == 0 {
|
||||
c.SigningName = "rds"
|
||||
}
|
||||
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
|
||||
}
|
||||
|
||||
// newClient creates, initializes and returns a new service client instance.
|
||||
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *Neptune {
|
||||
svc := &Neptune{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2014-10-31",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(query.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
|
||||
svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
|
||||
|
||||
// Run custom client initialization if present
|
||||
if initClient != nil {
|
||||
initClient(svc.Client)
|
||||
}
|
||||
|
||||
return svc
|
||||
}
|
||||
|
||||
// newRequest creates a new request for a Neptune operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *Neptune) newRequest(op *request.Operation, params, data interface{}) *request.Request {
|
||||
req := c.NewRequest(op, params, data)
|
||||
|
||||
// Run custom request initialization if present
|
||||
if initRequest != nil {
|
||||
initRequest(req)
|
||||
}
|
||||
|
||||
return req
|
||||
}
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package neptune
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
)
|
||||
|
||||
// WaitUntilDBInstanceAvailable uses the Amazon Neptune API operation
|
||||
// DescribeDBInstances to wait for a condition to be met before returning.
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *Neptune) WaitUntilDBInstanceAvailable(input *DescribeDBInstancesInput) error {
|
||||
return c.WaitUntilDBInstanceAvailableWithContext(aws.BackgroundContext(), input)
|
||||
}
|
||||
|
||||
// WaitUntilDBInstanceAvailableWithContext is an extended version of WaitUntilDBInstanceAvailable.
|
||||
// With the support for passing in a context and options to configure the
|
||||
// Waiter and the underlying request options.
|
||||
//
|
||||
// The context must be non-nil and will be used for request cancellation. If
|
||||
// the context is nil a panic will occur. In the future the SDK may create
|
||||
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
||||
// for more information on using Contexts.
|
||||
func (c *Neptune) WaitUntilDBInstanceAvailableWithContext(ctx aws.Context, input *DescribeDBInstancesInput, opts ...request.WaiterOption) error {
|
||||
w := request.Waiter{
|
||||
Name: "WaitUntilDBInstanceAvailable",
|
||||
MaxAttempts: 60,
|
||||
Delay: request.ConstantWaiterDelay(30 * time.Second),
|
||||
Acceptors: []request.WaiterAcceptor{
|
||||
{
|
||||
State: request.SuccessWaiterState,
|
||||
Matcher: request.PathAllWaiterMatch, Argument: "DBInstances[].DBInstanceStatus",
|
||||
Expected: "available",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "DBInstances[].DBInstanceStatus",
|
||||
Expected: "deleted",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "DBInstances[].DBInstanceStatus",
|
||||
Expected: "deleting",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "DBInstances[].DBInstanceStatus",
|
||||
Expected: "failed",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "DBInstances[].DBInstanceStatus",
|
||||
Expected: "incompatible-restore",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "DBInstances[].DBInstanceStatus",
|
||||
Expected: "incompatible-parameters",
|
||||
},
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
var inCpy *DescribeDBInstancesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeDBInstancesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
},
|
||||
}
|
||||
w.ApplyOptions(opts...)
|
||||
|
||||
return w.WaitWithContext(ctx)
|
||||
}
|
||||
|
||||
// WaitUntilDBInstanceDeleted uses the Amazon Neptune API operation
|
||||
// DescribeDBInstances to wait for a condition to be met before returning.
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *Neptune) WaitUntilDBInstanceDeleted(input *DescribeDBInstancesInput) error {
|
||||
return c.WaitUntilDBInstanceDeletedWithContext(aws.BackgroundContext(), input)
|
||||
}
|
||||
|
||||
// WaitUntilDBInstanceDeletedWithContext is an extended version of WaitUntilDBInstanceDeleted.
|
||||
// With the support for passing in a context and options to configure the
|
||||
// Waiter and the underlying request options.
|
||||
//
|
||||
// The context must be non-nil and will be used for request cancellation. If
|
||||
// the context is nil a panic will occur. In the future the SDK may create
|
||||
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
||||
// for more information on using Contexts.
|
||||
func (c *Neptune) WaitUntilDBInstanceDeletedWithContext(ctx aws.Context, input *DescribeDBInstancesInput, opts ...request.WaiterOption) error {
|
||||
w := request.Waiter{
|
||||
Name: "WaitUntilDBInstanceDeleted",
|
||||
MaxAttempts: 60,
|
||||
Delay: request.ConstantWaiterDelay(30 * time.Second),
|
||||
Acceptors: []request.WaiterAcceptor{
|
||||
{
|
||||
State: request.SuccessWaiterState,
|
||||
Matcher: request.PathAllWaiterMatch, Argument: "DBInstances[].DBInstanceStatus",
|
||||
Expected: "deleted",
|
||||
},
|
||||
{
|
||||
State: request.SuccessWaiterState,
|
||||
Matcher: request.ErrorWaiterMatch,
|
||||
Expected: "DBInstanceNotFound",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "DBInstances[].DBInstanceStatus",
|
||||
Expected: "creating",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "DBInstances[].DBInstanceStatus",
|
||||
Expected: "modifying",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "DBInstances[].DBInstanceStatus",
|
||||
Expected: "rebooting",
|
||||
},
|
||||
{
|
||||
State: request.FailureWaiterState,
|
||||
Matcher: request.PathAnyWaiterMatch, Argument: "DBInstances[].DBInstanceStatus",
|
||||
Expected: "resetting-master-credentials",
|
||||
},
|
||||
},
|
||||
Logger: c.Config.Logger,
|
||||
NewRequest: func(opts []request.Option) (*request.Request, error) {
|
||||
var inCpy *DescribeDBInstancesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeDBInstancesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
},
|
||||
}
|
||||
w.ApplyOptions(opts...)
|
||||
|
||||
return w.WaitWithContext(ctx)
|
||||
}
|
||||
Reference in New Issue
Block a user