Upgrade AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2017-09-28 17:57:05 +03:00
parent 9a767b7631
commit 182c21e38c
1096 changed files with 309697 additions and 132612 deletions
File diff suppressed because it is too large Load Diff
@@ -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 clouddirectoryiface provides an interface to enable mocking the Amazon CloudDirectory 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 CloudDirectory.
@@ -80,6 +80,10 @@ type CloudDirectoryAPI interface {
AttachToIndexWithContext(aws.Context, *clouddirectory.AttachToIndexInput, ...request.Option) (*clouddirectory.AttachToIndexOutput, error)
AttachToIndexRequest(*clouddirectory.AttachToIndexInput) (*request.Request, *clouddirectory.AttachToIndexOutput)
AttachTypedLink(*clouddirectory.AttachTypedLinkInput) (*clouddirectory.AttachTypedLinkOutput, error)
AttachTypedLinkWithContext(aws.Context, *clouddirectory.AttachTypedLinkInput, ...request.Option) (*clouddirectory.AttachTypedLinkOutput, error)
AttachTypedLinkRequest(*clouddirectory.AttachTypedLinkInput) (*request.Request, *clouddirectory.AttachTypedLinkOutput)
BatchRead(*clouddirectory.BatchReadInput) (*clouddirectory.BatchReadOutput, error)
BatchReadWithContext(aws.Context, *clouddirectory.BatchReadInput, ...request.Option) (*clouddirectory.BatchReadOutput, error)
BatchReadRequest(*clouddirectory.BatchReadInput) (*request.Request, *clouddirectory.BatchReadOutput)
@@ -108,6 +112,10 @@ type CloudDirectoryAPI interface {
CreateSchemaWithContext(aws.Context, *clouddirectory.CreateSchemaInput, ...request.Option) (*clouddirectory.CreateSchemaOutput, error)
CreateSchemaRequest(*clouddirectory.CreateSchemaInput) (*request.Request, *clouddirectory.CreateSchemaOutput)
CreateTypedLinkFacet(*clouddirectory.CreateTypedLinkFacetInput) (*clouddirectory.CreateTypedLinkFacetOutput, error)
CreateTypedLinkFacetWithContext(aws.Context, *clouddirectory.CreateTypedLinkFacetInput, ...request.Option) (*clouddirectory.CreateTypedLinkFacetOutput, error)
CreateTypedLinkFacetRequest(*clouddirectory.CreateTypedLinkFacetInput) (*request.Request, *clouddirectory.CreateTypedLinkFacetOutput)
DeleteDirectory(*clouddirectory.DeleteDirectoryInput) (*clouddirectory.DeleteDirectoryOutput, error)
DeleteDirectoryWithContext(aws.Context, *clouddirectory.DeleteDirectoryInput, ...request.Option) (*clouddirectory.DeleteDirectoryOutput, error)
DeleteDirectoryRequest(*clouddirectory.DeleteDirectoryInput) (*request.Request, *clouddirectory.DeleteDirectoryOutput)
@@ -124,6 +132,10 @@ type CloudDirectoryAPI interface {
DeleteSchemaWithContext(aws.Context, *clouddirectory.DeleteSchemaInput, ...request.Option) (*clouddirectory.DeleteSchemaOutput, error)
DeleteSchemaRequest(*clouddirectory.DeleteSchemaInput) (*request.Request, *clouddirectory.DeleteSchemaOutput)
DeleteTypedLinkFacet(*clouddirectory.DeleteTypedLinkFacetInput) (*clouddirectory.DeleteTypedLinkFacetOutput, error)
DeleteTypedLinkFacetWithContext(aws.Context, *clouddirectory.DeleteTypedLinkFacetInput, ...request.Option) (*clouddirectory.DeleteTypedLinkFacetOutput, error)
DeleteTypedLinkFacetRequest(*clouddirectory.DeleteTypedLinkFacetInput) (*request.Request, *clouddirectory.DeleteTypedLinkFacetOutput)
DetachFromIndex(*clouddirectory.DetachFromIndexInput) (*clouddirectory.DetachFromIndexOutput, error)
DetachFromIndexWithContext(aws.Context, *clouddirectory.DetachFromIndexInput, ...request.Option) (*clouddirectory.DetachFromIndexOutput, error)
DetachFromIndexRequest(*clouddirectory.DetachFromIndexInput) (*request.Request, *clouddirectory.DetachFromIndexOutput)
@@ -136,6 +148,10 @@ type CloudDirectoryAPI interface {
DetachPolicyWithContext(aws.Context, *clouddirectory.DetachPolicyInput, ...request.Option) (*clouddirectory.DetachPolicyOutput, error)
DetachPolicyRequest(*clouddirectory.DetachPolicyInput) (*request.Request, *clouddirectory.DetachPolicyOutput)
DetachTypedLink(*clouddirectory.DetachTypedLinkInput) (*clouddirectory.DetachTypedLinkOutput, error)
DetachTypedLinkWithContext(aws.Context, *clouddirectory.DetachTypedLinkInput, ...request.Option) (*clouddirectory.DetachTypedLinkOutput, error)
DetachTypedLinkRequest(*clouddirectory.DetachTypedLinkInput) (*request.Request, *clouddirectory.DetachTypedLinkOutput)
DisableDirectory(*clouddirectory.DisableDirectoryInput) (*clouddirectory.DisableDirectoryOutput, error)
DisableDirectoryWithContext(aws.Context, *clouddirectory.DisableDirectoryInput, ...request.Option) (*clouddirectory.DisableDirectoryOutput, error)
DisableDirectoryRequest(*clouddirectory.DisableDirectoryInput) (*request.Request, *clouddirectory.DisableDirectoryOutput)
@@ -160,6 +176,10 @@ type CloudDirectoryAPI interface {
GetSchemaAsJsonWithContext(aws.Context, *clouddirectory.GetSchemaAsJsonInput, ...request.Option) (*clouddirectory.GetSchemaAsJsonOutput, error)
GetSchemaAsJsonRequest(*clouddirectory.GetSchemaAsJsonInput) (*request.Request, *clouddirectory.GetSchemaAsJsonOutput)
GetTypedLinkFacetInformation(*clouddirectory.GetTypedLinkFacetInformationInput) (*clouddirectory.GetTypedLinkFacetInformationOutput, error)
GetTypedLinkFacetInformationWithContext(aws.Context, *clouddirectory.GetTypedLinkFacetInformationInput, ...request.Option) (*clouddirectory.GetTypedLinkFacetInformationOutput, error)
GetTypedLinkFacetInformationRequest(*clouddirectory.GetTypedLinkFacetInformationInput) (*request.Request, *clouddirectory.GetTypedLinkFacetInformationOutput)
ListAppliedSchemaArns(*clouddirectory.ListAppliedSchemaArnsInput) (*clouddirectory.ListAppliedSchemaArnsOutput, error)
ListAppliedSchemaArnsWithContext(aws.Context, *clouddirectory.ListAppliedSchemaArnsInput, ...request.Option) (*clouddirectory.ListAppliedSchemaArnsOutput, error)
ListAppliedSchemaArnsRequest(*clouddirectory.ListAppliedSchemaArnsInput) (*request.Request, *clouddirectory.ListAppliedSchemaArnsOutput)
@@ -202,6 +222,10 @@ type CloudDirectoryAPI interface {
ListFacetNamesPages(*clouddirectory.ListFacetNamesInput, func(*clouddirectory.ListFacetNamesOutput, bool) bool) error
ListFacetNamesPagesWithContext(aws.Context, *clouddirectory.ListFacetNamesInput, func(*clouddirectory.ListFacetNamesOutput, bool) bool, ...request.Option) error
ListIncomingTypedLinks(*clouddirectory.ListIncomingTypedLinksInput) (*clouddirectory.ListIncomingTypedLinksOutput, error)
ListIncomingTypedLinksWithContext(aws.Context, *clouddirectory.ListIncomingTypedLinksInput, ...request.Option) (*clouddirectory.ListIncomingTypedLinksOutput, error)
ListIncomingTypedLinksRequest(*clouddirectory.ListIncomingTypedLinksInput) (*request.Request, *clouddirectory.ListIncomingTypedLinksOutput)
ListIndex(*clouddirectory.ListIndexInput) (*clouddirectory.ListIndexOutput, error)
ListIndexWithContext(aws.Context, *clouddirectory.ListIndexInput, ...request.Option) (*clouddirectory.ListIndexOutput, error)
ListIndexRequest(*clouddirectory.ListIndexInput) (*request.Request, *clouddirectory.ListIndexOutput)
@@ -244,6 +268,10 @@ type CloudDirectoryAPI interface {
ListObjectPoliciesPages(*clouddirectory.ListObjectPoliciesInput, func(*clouddirectory.ListObjectPoliciesOutput, bool) bool) error
ListObjectPoliciesPagesWithContext(aws.Context, *clouddirectory.ListObjectPoliciesInput, func(*clouddirectory.ListObjectPoliciesOutput, bool) bool, ...request.Option) error
ListOutgoingTypedLinks(*clouddirectory.ListOutgoingTypedLinksInput) (*clouddirectory.ListOutgoingTypedLinksOutput, error)
ListOutgoingTypedLinksWithContext(aws.Context, *clouddirectory.ListOutgoingTypedLinksInput, ...request.Option) (*clouddirectory.ListOutgoingTypedLinksOutput, error)
ListOutgoingTypedLinksRequest(*clouddirectory.ListOutgoingTypedLinksInput) (*request.Request, *clouddirectory.ListOutgoingTypedLinksOutput)
ListPolicyAttachments(*clouddirectory.ListPolicyAttachmentsInput) (*clouddirectory.ListPolicyAttachmentsOutput, error)
ListPolicyAttachmentsWithContext(aws.Context, *clouddirectory.ListPolicyAttachmentsInput, ...request.Option) (*clouddirectory.ListPolicyAttachmentsOutput, error)
ListPolicyAttachmentsRequest(*clouddirectory.ListPolicyAttachmentsInput) (*request.Request, *clouddirectory.ListPolicyAttachmentsOutput)
@@ -265,6 +293,20 @@ type CloudDirectoryAPI interface {
ListTagsForResourcePages(*clouddirectory.ListTagsForResourceInput, func(*clouddirectory.ListTagsForResourceOutput, bool) bool) error
ListTagsForResourcePagesWithContext(aws.Context, *clouddirectory.ListTagsForResourceInput, func(*clouddirectory.ListTagsForResourceOutput, bool) bool, ...request.Option) error
ListTypedLinkFacetAttributes(*clouddirectory.ListTypedLinkFacetAttributesInput) (*clouddirectory.ListTypedLinkFacetAttributesOutput, error)
ListTypedLinkFacetAttributesWithContext(aws.Context, *clouddirectory.ListTypedLinkFacetAttributesInput, ...request.Option) (*clouddirectory.ListTypedLinkFacetAttributesOutput, error)
ListTypedLinkFacetAttributesRequest(*clouddirectory.ListTypedLinkFacetAttributesInput) (*request.Request, *clouddirectory.ListTypedLinkFacetAttributesOutput)
ListTypedLinkFacetAttributesPages(*clouddirectory.ListTypedLinkFacetAttributesInput, func(*clouddirectory.ListTypedLinkFacetAttributesOutput, bool) bool) error
ListTypedLinkFacetAttributesPagesWithContext(aws.Context, *clouddirectory.ListTypedLinkFacetAttributesInput, func(*clouddirectory.ListTypedLinkFacetAttributesOutput, bool) bool, ...request.Option) error
ListTypedLinkFacetNames(*clouddirectory.ListTypedLinkFacetNamesInput) (*clouddirectory.ListTypedLinkFacetNamesOutput, error)
ListTypedLinkFacetNamesWithContext(aws.Context, *clouddirectory.ListTypedLinkFacetNamesInput, ...request.Option) (*clouddirectory.ListTypedLinkFacetNamesOutput, error)
ListTypedLinkFacetNamesRequest(*clouddirectory.ListTypedLinkFacetNamesInput) (*request.Request, *clouddirectory.ListTypedLinkFacetNamesOutput)
ListTypedLinkFacetNamesPages(*clouddirectory.ListTypedLinkFacetNamesInput, func(*clouddirectory.ListTypedLinkFacetNamesOutput, bool) bool) error
ListTypedLinkFacetNamesPagesWithContext(aws.Context, *clouddirectory.ListTypedLinkFacetNamesInput, func(*clouddirectory.ListTypedLinkFacetNamesOutput, bool) bool, ...request.Option) error
LookupPolicy(*clouddirectory.LookupPolicyInput) (*clouddirectory.LookupPolicyOutput, error)
LookupPolicyWithContext(aws.Context, *clouddirectory.LookupPolicyInput, ...request.Option) (*clouddirectory.LookupPolicyOutput, error)
LookupPolicyRequest(*clouddirectory.LookupPolicyInput) (*request.Request, *clouddirectory.LookupPolicyOutput)
@@ -303,6 +345,10 @@ type CloudDirectoryAPI interface {
UpdateSchema(*clouddirectory.UpdateSchemaInput) (*clouddirectory.UpdateSchemaOutput, error)
UpdateSchemaWithContext(aws.Context, *clouddirectory.UpdateSchemaInput, ...request.Option) (*clouddirectory.UpdateSchemaOutput, error)
UpdateSchemaRequest(*clouddirectory.UpdateSchemaInput) (*request.Request, *clouddirectory.UpdateSchemaOutput)
UpdateTypedLinkFacet(*clouddirectory.UpdateTypedLinkFacetInput) (*clouddirectory.UpdateTypedLinkFacetOutput, error)
UpdateTypedLinkFacetWithContext(aws.Context, *clouddirectory.UpdateTypedLinkFacetInput, ...request.Option) (*clouddirectory.UpdateTypedLinkFacetOutput, error)
UpdateTypedLinkFacetRequest(*clouddirectory.UpdateTypedLinkFacetInput) (*request.Request, *clouddirectory.UpdateTypedLinkFacetOutput)
}
var _ CloudDirectoryAPI = (*clouddirectory.CloudDirectory)(nil)
+33
View File
@@ -0,0 +1,33 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package clouddirectory provides the client and types for making API
// requests to Amazon CloudDirectory.
//
// Amazon Cloud Directory is a component of the AWS Directory Service that simplifies
// the development and management of cloud-scale web, mobile, and IoT applications.
// This guide describes the Cloud Directory operations that you can call programmatically
// and includes detailed information on data types and errors. For information
// about AWS Directory Services features, see AWS Directory Service (https://aws.amazon.com/directoryservice/)
// and the AWS Directory Service Administration Guide (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/what_is.html).
//
// See https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2016-05-10 for more information on this service.
//
// See clouddirectory package documentation for more information.
// https://docs.aws.amazon.com/sdk-for-go/api/service/clouddirectory/
//
// Using the Client
//
// To Amazon CloudDirectory 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 CloudDirectory client CloudDirectory for more
// information on creating client for this service.
// https://docs.aws.amazon.com/sdk-for-go/api/service/clouddirectory/#New
package clouddirectory
+18 -17
View File
@@ -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 clouddirectory
@@ -32,8 +32,8 @@ const (
// ErrCodeDirectoryDeletedException for service response error code
// "DirectoryDeletedException".
//
// A directory that has been deleted has been attempted to be accessed. Note:
// The requested resource will eventually cease to exist.
// A directory that has been deleted and to which access has been attempted.
// Note: The requested resource will eventually cease to exist.
ErrCodeDirectoryDeletedException = "DirectoryDeletedException"
// ErrCodeDirectoryNotDisabledException for service response error code
@@ -57,7 +57,7 @@ const (
// ErrCodeFacetInUseException for service response error code
// "FacetInUseException".
//
// Occurs when deleting a facet that contains an attribute which is a target
// Occurs when deleting a facet that contains an attribute that is a target
// to an attribute reference in a different facet.
ErrCodeFacetInUseException = "FacetInUseException"
@@ -70,8 +70,8 @@ const (
// ErrCodeFacetValidationException for service response error code
// "FacetValidationException".
//
// The Facet you provided was not well formed or could not be validated with
// the schema.
// The Facet that you provided was not well formed or could not be validated
// with the schema.
ErrCodeFacetValidationException = "FacetValidationException"
// ErrCodeIndexedAttributeMissingException for service response error code
@@ -100,8 +100,8 @@ const (
// "InvalidAttachmentException".
//
// Indicates that an attempt to attach an object with the same link name or
// to apply a schema with same name has occurred. Rename the link or the schema
// and then try again.
// to apply a schema with the same name has occurred. Rename the link or the
// schema and then try again.
ErrCodeInvalidAttachmentException = "InvalidAttachmentException"
// ErrCodeInvalidFacetUpdateException for service response error code
@@ -139,7 +139,7 @@ const (
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// Indicates limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html)
// Indicates that limits are exceeded. See Limits (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/limits.html)
// for more information.
ErrCodeLimitExceededException = "LimitExceededException"
@@ -153,32 +153,32 @@ const (
// ErrCodeNotIndexException for service response error code
// "NotIndexException".
//
// Indicates the requested operation can only operate on index objects.
// Indicates that the requested operation can only operate on index objects.
ErrCodeNotIndexException = "NotIndexException"
// ErrCodeNotNodeException for service response error code
// "NotNodeException".
//
// Occurs when any invalid operations are performed on an object which is not
// Occurs when any invalid operations are performed on an object that is not
// a node, such as calling ListObjectChildren for a leaf node object.
ErrCodeNotNodeException = "NotNodeException"
// ErrCodeNotPolicyException for service response error code
// "NotPolicyException".
//
// Indicates the requested operation can only operate on policy objects.
// Indicates that the requested operation can only operate on policy objects.
ErrCodeNotPolicyException = "NotPolicyException"
// ErrCodeObjectAlreadyDetachedException for service response error code
// "ObjectAlreadyDetachedException".
//
// Indicates the object is not attached to the index.
// Indicates that the object is not attached to the index.
ErrCodeObjectAlreadyDetachedException = "ObjectAlreadyDetachedException"
// ErrCodeObjectNotDetachedException for service response error code
// "ObjectNotDetachedException".
//
// Indicates the requested operation cannot be completed because the object
// Indicates that the requested operation cannot be completed because the object
// has not been detached from the tree.
ErrCodeObjectNotDetachedException = "ObjectNotDetachedException"
@@ -209,7 +209,7 @@ const (
// ErrCodeSchemaAlreadyPublishedException for service response error code
// "SchemaAlreadyPublishedException".
//
// Indicates a schema is already published.
// Indicates that a schema is already published.
ErrCodeSchemaAlreadyPublishedException = "SchemaAlreadyPublishedException"
// ErrCodeStillContainsLinksException for service response error code
@@ -222,12 +222,13 @@ const (
// ErrCodeUnsupportedIndexTypeException for service response error code
// "UnsupportedIndexTypeException".
//
// Indicates the requested index type is not supported.
// Indicates that the requested index type is not supported.
ErrCodeUnsupportedIndexTypeException = "UnsupportedIndexTypeException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// Indicates your request is malformed in some manner. See the exception message.
// Indicates that your request is malformed in some manner. See the exception
// message.
ErrCodeValidationException = "ValidationException"
)
File diff suppressed because it is too large Load Diff
+7 -10
View File
@@ -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 clouddirectory
@@ -11,15 +11,12 @@ import (
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
// Amazon Cloud Directory is a component of the AWS Directory Service that simplifies
// the development and management of cloud-scale web, mobile and IoT applications.
// This guide describes the Cloud Directory operations that you can call programatically
// and includes detailed information on data types and errors. For information
// about AWS Directory Services features, see AWS Directory Service (https://aws.amazon.com/directoryservice/)
// and the AWS Directory Service Administration Guide (http://docs.aws.amazon.com/directoryservice/latest/admin-guide/what_is.html).
// 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/clouddirectory-2016-05-10
// CloudDirectory provides the API operation methods for making requests to
// Amazon CloudDirectory. See this package's package overview docs
// for details on the service.
//
// CloudDirectory methods are safe to use concurrently. It is not safe to
// modify mutate any of the struct's properties though.
type CloudDirectory struct {
*client.Client
}