Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20420 lines (17879 sloc) 721 KB
<
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package clouddirectory
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/restjson"
)
const opAddFacetToObject = "AddFacetToObject"
// AddFacetToObjectRequest generates a "aws/request.Request" representing the
// client's request for the AddFacetToObject operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See AddFacetToObject for more information on using the AddFacetToObject
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the AddFacetToObjectRequest method.
// req, resp := client.AddFacetToObjectRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/AddFacetToObject
func (c *CloudDirectory) AddFacetToObjectRequest(input *AddFacetToObjectInput) (req *request.Request, output *AddFacetToObjectOutput) {
op := &request.Operation{
Name: opAddFacetToObject,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/object/facets",
}
if input == nil {
input = &AddFacetToObjectInput{}
}
output = &AddFacetToObjectOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// AddFacetToObject API operation for Amazon CloudDirectory.
//
// Adds a new Facet to an object. An object can have more than one facet applied
// on it.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation AddFacetToObject for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeFacetValidationException "FacetValidationException"
// The Facet that you provided was not well formed or could not be validated
// with the schema.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/AddFacetToObject
func (c *CloudDirectory) AddFacetToObject(input *AddFacetToObjectInput) (*AddFacetToObjectOutput, error) {
req, out := c.AddFacetToObjectRequest(input)
return out, req.Send()
}
// AddFacetToObjectWithContext is the same as AddFacetToObject with the addition of
// the ability to pass a context and additional request options.
//
// See AddFacetToObject for details on how to use this API operation.
//
// 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 *CloudDirectory) AddFacetToObjectWithContext(ctx aws.Context, input *AddFacetToObjectInput, opts ...request.Option) (*AddFacetToObjectOutput, error) {
req, out := c.AddFacetToObjectRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opApplySchema = "ApplySchema"
// ApplySchemaRequest generates a "aws/request.Request" representing the
// client's request for the ApplySchema operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See ApplySchema for more information on using the ApplySchema
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the ApplySchemaRequest method.
// req, resp := client.ApplySchemaRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ApplySchema
func (c *CloudDirectory) ApplySchemaRequest(input *ApplySchemaInput) (req *request.Request, output *ApplySchemaOutput) {
op := &request.Operation{
Name: opApplySchema,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/schema/apply",
}
if input == nil {
input = &ApplySchemaInput{}
}
output = &ApplySchemaOutput{}
req = c.newRequest(op, input, output)
return
}
// ApplySchema API operation for Amazon CloudDirectory.
//
// Copies the input published schema, at the specified version, into the Directory
// with the same name and version as that of the published schema.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation ApplySchema for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeSchemaAlreadyExistsException "SchemaAlreadyExistsException"
// Indicates that a schema could not be created due to a naming conflict. Please
// select a different name and then try again.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeInvalidAttachmentException "InvalidAttachmentException"
// Indicates that an attempt to make an attachment was invalid. For example,
// attaching two nodes with a link type that is not applicable to the nodes
// or attempting to apply a schema to a directory a second time.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ApplySchema
func (c *CloudDirectory) ApplySchema(input *ApplySchemaInput) (*ApplySchemaOutput, error) {
req, out := c.ApplySchemaRequest(input)
return out, req.Send()
}
// ApplySchemaWithContext is the same as ApplySchema with the addition of
// the ability to pass a context and additional request options.
//
// See ApplySchema for details on how to use this API operation.
//
// 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 *CloudDirectory) ApplySchemaWithContext(ctx aws.Context, input *ApplySchemaInput, opts ...request.Option) (*ApplySchemaOutput, error) {
req, out := c.ApplySchemaRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opAttachObject = "AttachObject"
// AttachObjectRequest generates a "aws/request.Request" representing the
// client's request for the AttachObject operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See AttachObject for more information on using the AttachObject
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the AttachObjectRequest method.
// req, resp := client.AttachObjectRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/AttachObject
func (c *CloudDirectory) AttachObjectRequest(input *AttachObjectInput) (req *request.Request, output *AttachObjectOutput) {
op := &request.Operation{
Name: opAttachObject,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/object/attach",
}
if input == nil {
input = &AttachObjectInput{}
}
output = &AttachObjectOutput{}
req = c.newRequest(op, input, output)
return
}
// AttachObject API operation for Amazon CloudDirectory.
//
// Attaches an existing object to another object. An object can be accessed
// in two ways:
//
// Using the path
//
// Using ObjectIdentifier
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation AttachObject for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException"
// Indicates that a link could not be created due to a naming conflict. Choose
// a different name and then try again.
//
// * ErrCodeInvalidAttachmentException "InvalidAttachmentException"
// Indicates that an attempt to make an attachment was invalid. For example,
// attaching two nodes with a link type that is not applicable to the nodes
// or attempting to apply a schema to a directory a second time.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeFacetValidationException "FacetValidationException"
// The Facet that you provided was not well formed or could not be validated
// with the schema.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/AttachObject
func (c *CloudDirectory) AttachObject(input *AttachObjectInput) (*AttachObjectOutput, error) {
req, out := c.AttachObjectRequest(input)
return out, req.Send()
}
// AttachObjectWithContext is the same as AttachObject with the addition of
// the ability to pass a context and additional request options.
//
// See AttachObject for details on how to use this API operation.
//
// 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 *CloudDirectory) AttachObjectWithContext(ctx aws.Context, input *AttachObjectInput, opts ...request.Option) (*AttachObjectOutput, error) {
req, out := c.AttachObjectRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opAttachPolicy = "AttachPolicy"
// AttachPolicyRequest generates a "aws/request.Request" representing the
// client's request for the AttachPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See AttachPolicy for more information on using the AttachPolicy
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the AttachPolicyRequest method.
// req, resp := client.AttachPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/AttachPolicy
func (c *CloudDirectory) AttachPolicyRequest(input *AttachPolicyInput) (req *request.Request, output *AttachPolicyOutput) {
op := &request.Operation{
Name: opAttachPolicy,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/policy/attach",
}
if input == nil {
input = &AttachPolicyInput{}
}
output = &AttachPolicyOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// AttachPolicy API operation for Amazon CloudDirectory.
//
// Attaches a policy object to a regular object. An object can have a limited
// number of attached policies.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation AttachPolicy for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeNotPolicyException "NotPolicyException"
// Indicates that the requested operation can only operate on policy objects.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/AttachPolicy
func (c *CloudDirectory) AttachPolicy(input *AttachPolicyInput) (*AttachPolicyOutput, error) {
req, out := c.AttachPolicyRequest(input)
return out, req.Send()
}
// AttachPolicyWithContext is the same as AttachPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See AttachPolicy for details on how to use this API operation.
//
// 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 *CloudDirectory) AttachPolicyWithContext(ctx aws.Context, input *AttachPolicyInput, opts ...request.Option) (*AttachPolicyOutput, error) {
req, out := c.AttachPolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opAttachToIndex = "AttachToIndex"
// AttachToIndexRequest generates a "aws/request.Request" representing the
// client's request for the AttachToIndex operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See AttachToIndex for more information on using the AttachToIndex
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the AttachToIndexRequest method.
// req, resp := client.AttachToIndexRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/AttachToIndex
func (c *CloudDirectory) AttachToIndexRequest(input *AttachToIndexInput) (req *request.Request, output *AttachToIndexOutput) {
op := &request.Operation{
Name: opAttachToIndex,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/index/attach",
}
if input == nil {
input = &AttachToIndexInput{}
}
output = &AttachToIndexOutput{}
req = c.newRequest(op, input, output)
return
}
// AttachToIndex API operation for Amazon CloudDirectory.
//
// Attaches the specified object to the specified index.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation AttachToIndex for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeInvalidAttachmentException "InvalidAttachmentException"
// Indicates that an attempt to make an attachment was invalid. For example,
// attaching two nodes with a link type that is not applicable to the nodes
// or attempting to apply a schema to a directory a second time.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException"
// Indicates that a link could not be created due to a naming conflict. Choose
// a different name and then try again.
//
// * ErrCodeIndexedAttributeMissingException "IndexedAttributeMissingException"
// An object has been attempted to be attached to an object that does not have
// the appropriate attribute value.
//
// * ErrCodeNotIndexException "NotIndexException"
// Indicates that the requested operation can only operate on index objects.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/AttachToIndex
func (c *CloudDirectory) AttachToIndex(input *AttachToIndexInput) (*AttachToIndexOutput, error) {
req, out := c.AttachToIndexRequest(input)
return out, req.Send()
}
// AttachToIndexWithContext is the same as AttachToIndex with the addition of
// the ability to pass a context and additional request options.
//
// See AttachToIndex for details on how to use this API operation.
//
// 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 *CloudDirectory) AttachToIndexWithContext(ctx aws.Context, input *AttachToIndexInput, opts ...request.Option) (*AttachToIndexOutput, error) {
req, out := c.AttachToIndexRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opAttachTypedLink = "AttachTypedLink"
// AttachTypedLinkRequest generates a "aws/request.Request" representing the
// client's request for the AttachTypedLink operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See AttachTypedLink for more information on using the AttachTypedLink
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the AttachTypedLinkRequest method.
// req, resp := client.AttachTypedLinkRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/AttachTypedLink
func (c *CloudDirectory) AttachTypedLinkRequest(input *AttachTypedLinkInput) (req *request.Request, output *AttachTypedLinkOutput) {
op := &request.Operation{
Name: opAttachTypedLink,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/typedlink/attach",
}
if input == nil {
input = &AttachTypedLinkInput{}
}
output = &AttachTypedLinkOutput{}
req = c.newRequest(op, input, output)
return
}
// AttachTypedLink API operation for Amazon CloudDirectory.
//
// Attaches a typed link to a specified source and target object. For more information,
// see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation AttachTypedLink for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeInvalidAttachmentException "InvalidAttachmentException"
// Indicates that an attempt to make an attachment was invalid. For example,
// attaching two nodes with a link type that is not applicable to the nodes
// or attempting to apply a schema to a directory a second time.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeFacetValidationException "FacetValidationException"
// The Facet that you provided was not well formed or could not be validated
// with the schema.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/AttachTypedLink
func (c *CloudDirectory) AttachTypedLink(input *AttachTypedLinkInput) (*AttachTypedLinkOutput, error) {
req, out := c.AttachTypedLinkRequest(input)
return out, req.Send()
}
// AttachTypedLinkWithContext is the same as AttachTypedLink with the addition of
// the ability to pass a context and additional request options.
//
// See AttachTypedLink for details on how to use this API operation.
//
// 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 *CloudDirectory) AttachTypedLinkWithContext(ctx aws.Context, input *AttachTypedLinkInput, opts ...request.Option) (*AttachTypedLinkOutput, error) {
req, out := c.AttachTypedLinkRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opBatchRead = "BatchRead"
// BatchReadRequest generates a "aws/request.Request" representing the
// client's request for the BatchRead operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See BatchRead for more information on using the BatchRead
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the BatchReadRequest method.
// req, resp := client.BatchReadRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/BatchRead
func (c *CloudDirectory) BatchReadRequest(input *BatchReadInput) (req *request.Request, output *BatchReadOutput) {
op := &request.Operation{
Name: opBatchRead,
HTTPMethod: "POST",
HTTPPath: "/amazonclouddirectory/2017-01-11/batchread",
}
if input == nil {
input = &BatchReadInput{}
}
output = &BatchReadOutput{}
req = c.newRequest(op, input, output)
return
}
// BatchRead API operation for Amazon CloudDirectory.
//
// Performs all the read operations in a batch.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation BatchRead for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/BatchRead
func (c *CloudDirectory) BatchRead(input *BatchReadInput) (*BatchReadOutput, error) {
req, out := c.BatchReadRequest(input)
return out, req.Send()
}
// BatchReadWithContext is the same as BatchRead with the addition of
// the ability to pass a context and additional request options.
//
// See BatchRead for details on how to use this API operation.
//
// 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 *CloudDirectory) BatchReadWithContext(ctx aws.Context, input *BatchReadInput, opts ...request.Option) (*BatchReadOutput, error) {
req, out := c.BatchReadRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opBatchWrite = "BatchWrite"
// BatchWriteRequest generates a "aws/request.Request" representing the
// client's request for the BatchWrite operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See BatchWrite for more information on using the BatchWrite
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the BatchWriteRequest method.
// req, resp := client.BatchWriteRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/BatchWrite
func (c *CloudDirectory) BatchWriteRequest(input *BatchWriteInput) (req *request.Request, output *BatchWriteOutput) {
op := &request.Operation{
Name: opBatchWrite,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/batchwrite",
}
if input == nil {
input = &BatchWriteInput{}
}
output = &BatchWriteOutput{}
req = c.newRequest(op, input, output)
return
}
// BatchWrite API operation for Amazon CloudDirectory.
//
// Performs all the write operations in a batch. Either all the operations succeed
// or none.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation BatchWrite for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeBatchWriteException "BatchWriteException"
// A BatchWrite exception has occurred.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/BatchWrite
func (c *CloudDirectory) BatchWrite(input *BatchWriteInput) (*BatchWriteOutput, error) {
req, out := c.BatchWriteRequest(input)
return out, req.Send()
}
// BatchWriteWithContext is the same as BatchWrite with the addition of
// the ability to pass a context and additional request options.
//
// See BatchWrite for details on how to use this API operation.
//
// 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 *CloudDirectory) BatchWriteWithContext(ctx aws.Context, input *BatchWriteInput, opts ...request.Option) (*BatchWriteOutput, error) {
req, out := c.BatchWriteRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateDirectory = "CreateDirectory"
// CreateDirectoryRequest generates a "aws/request.Request" representing the
// client's request for the CreateDirectory operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateDirectory for more information on using the CreateDirectory
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateDirectoryRequest method.
// req, resp := client.CreateDirectoryRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateDirectory
func (c *CloudDirectory) CreateDirectoryRequest(input *CreateDirectoryInput) (req *request.Request, output *CreateDirectoryOutput) {
op := &request.Operation{
Name: opCreateDirectory,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/directory/create",
}
if input == nil {
input = &CreateDirectoryInput{}
}
output = &CreateDirectoryOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateDirectory API operation for Amazon CloudDirectory.
//
// Creates a Directory by copying the published schema into the directory. A
// directory cannot be created without a schema.
//
// You can also quickly create a directory using a managed schema, called the
// QuickStartSchema. For more information, see Managed Schema (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_managed.html)
// in the Amazon Cloud Directory Developer Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation CreateDirectory for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryAlreadyExistsException "DirectoryAlreadyExistsException"
// Indicates that a Directory could not be created due to a naming conflict.
// Choose a different name and try again.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateDirectory
func (c *CloudDirectory) CreateDirectory(input *CreateDirectoryInput) (*CreateDirectoryOutput, error) {
req, out := c.CreateDirectoryRequest(input)
return out, req.Send()
}
// CreateDirectoryWithContext is the same as CreateDirectory with the addition of
// the ability to pass a context and additional request options.
//
// See CreateDirectory for details on how to use this API operation.
//
// 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 *CloudDirectory) CreateDirectoryWithContext(ctx aws.Context, input *CreateDirectoryInput, opts ...request.Option) (*CreateDirectoryOutput, error) {
req, out := c.CreateDirectoryRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateFacet = "CreateFacet"
// CreateFacetRequest generates a "aws/request.Request" representing the
// client's request for the CreateFacet operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateFacet for more information on using the CreateFacet
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateFacetRequest method.
// req, resp := client.CreateFacetRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateFacet
func (c *CloudDirectory) CreateFacetRequest(input *CreateFacetInput) (req *request.Request, output *CreateFacetOutput) {
op := &request.Operation{
Name: opCreateFacet,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/facet/create",
}
if input == nil {
input = &CreateFacetInput{}
}
output = &CreateFacetOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// CreateFacet API operation for Amazon CloudDirectory.
//
// Creates a new Facet in a schema. Facet creation is allowed only in development
// or applied schemas.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation CreateFacet for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeFacetAlreadyExistsException "FacetAlreadyExistsException"
// A facet with the same name already exists.
//
// * ErrCodeInvalidRuleException "InvalidRuleException"
// Occurs when any of the rule parameter keys or values are invalid.
//
// * ErrCodeFacetValidationException "FacetValidationException"
// The Facet that you provided was not well formed or could not be validated
// with the schema.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateFacet
func (c *CloudDirectory) CreateFacet(input *CreateFacetInput) (*CreateFacetOutput, error) {
req, out := c.CreateFacetRequest(input)
return out, req.Send()
}
// CreateFacetWithContext is the same as CreateFacet with the addition of
// the ability to pass a context and additional request options.
//
// See CreateFacet for details on how to use this API operation.
//
// 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 *CloudDirectory) CreateFacetWithContext(ctx aws.Context, input *CreateFacetInput, opts ...request.Option) (*CreateFacetOutput, error) {
req, out := c.CreateFacetRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateIndex = "CreateIndex"
// CreateIndexRequest generates a "aws/request.Request" representing the
// client's request for the CreateIndex operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateIndex for more information on using the CreateIndex
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateIndexRequest method.
// req, resp := client.CreateIndexRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateIndex
func (c *CloudDirectory) CreateIndexRequest(input *CreateIndexInput) (req *request.Request, output *CreateIndexOutput) {
op := &request.Operation{
Name: opCreateIndex,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/index",
}
if input == nil {
input = &CreateIndexInput{}
}
output = &CreateIndexOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateIndex API operation for Amazon CloudDirectory.
//
// Creates an index object. See Indexing and search (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/indexing_search.html)
// for more information.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation CreateIndex for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeFacetValidationException "FacetValidationException"
// The Facet that you provided was not well formed or could not be validated
// with the schema.
//
// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException"
// Indicates that a link could not be created due to a naming conflict. Choose
// a different name and then try again.
//
// * ErrCodeUnsupportedIndexTypeException "UnsupportedIndexTypeException"
// Indicates that the requested index type is not supported.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateIndex
func (c *CloudDirectory) CreateIndex(input *CreateIndexInput) (*CreateIndexOutput, error) {
req, out := c.CreateIndexRequest(input)
return out, req.Send()
}
// CreateIndexWithContext is the same as CreateIndex with the addition of
// the ability to pass a context and additional request options.
//
// See CreateIndex for details on how to use this API operation.
//
// 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 *CloudDirectory) CreateIndexWithContext(ctx aws.Context, input *CreateIndexInput, opts ...request.Option) (*CreateIndexOutput, error) {
req, out := c.CreateIndexRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateObject = "CreateObject"
// CreateObjectRequest generates a "aws/request.Request" representing the
// client's request for the CreateObject operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateObject for more information on using the CreateObject
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateObjectRequest method.
// req, resp := client.CreateObjectRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateObject
func (c *CloudDirectory) CreateObjectRequest(input *CreateObjectInput) (req *request.Request, output *CreateObjectOutput) {
op := &request.Operation{
Name: opCreateObject,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/object",
}
if input == nil {
input = &CreateObjectInput{}
}
output = &CreateObjectOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateObject API operation for Amazon CloudDirectory.
//
// Creates an object in a Directory. Additionally attaches the object to a parent,
// if a parent reference and LinkName is specified. An object is simply a collection
// of Facet attributes. You can also use this API call to create a policy object,
// if the facet from which you create the object is a policy facet.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation CreateObject for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeFacetValidationException "FacetValidationException"
// The Facet that you provided was not well formed or could not be validated
// with the schema.
//
// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException"
// Indicates that a link could not be created due to a naming conflict. Choose
// a different name and then try again.
//
// * ErrCodeUnsupportedIndexTypeException "UnsupportedIndexTypeException"
// Indicates that the requested index type is not supported.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateObject
func (c *CloudDirectory) CreateObject(input *CreateObjectInput) (*CreateObjectOutput, error) {
req, out := c.CreateObjectRequest(input)
return out, req.Send()
}
// CreateObjectWithContext is the same as CreateObject with the addition of
// the ability to pass a context and additional request options.
//
// See CreateObject for details on how to use this API operation.
//
// 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 *CloudDirectory) CreateObjectWithContext(ctx aws.Context, input *CreateObjectInput, opts ...request.Option) (*CreateObjectOutput, error) {
req, out := c.CreateObjectRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateSchema = "CreateSchema"
// CreateSchemaRequest generates a "aws/request.Request" representing the
// client's request for the CreateSchema operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateSchema for more information on using the CreateSchema
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateSchemaRequest method.
// req, resp := client.CreateSchemaRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateSchema
func (c *CloudDirectory) CreateSchemaRequest(input *CreateSchemaInput) (req *request.Request, output *CreateSchemaOutput) {
op := &request.Operation{
Name: opCreateSchema,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/schema/create",
}
if input == nil {
input = &CreateSchemaInput{}
}
output = &CreateSchemaOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateSchema API operation for Amazon CloudDirectory.
//
// Creates a new schema in a development state. A schema can exist in three
// phases:
//
// * Development: This is a mutable phase of the schema. All new schemas
// are in the development phase. Once the schema is finalized, it can be
// published.
//
// * Published: Published schemas are immutable and have a version associated
// with them.
//
// * Applied: Applied schemas are mutable in a way that allows you to add
// new schema facets. You can also add new, nonrequired attributes to existing
// schema facets. You can apply only published schemas to directories.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation CreateSchema for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeSchemaAlreadyExistsException "SchemaAlreadyExistsException"
// Indicates that a schema could not be created due to a naming conflict. Please
// select a different name and then try again.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateSchema
func (c *CloudDirectory) CreateSchema(input *CreateSchemaInput) (*CreateSchemaOutput, error) {
req, out := c.CreateSchemaRequest(input)
return out, req.Send()
}
// CreateSchemaWithContext is the same as CreateSchema with the addition of
// the ability to pass a context and additional request options.
//
// See CreateSchema for details on how to use this API operation.
//
// 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 *CloudDirectory) CreateSchemaWithContext(ctx aws.Context, input *CreateSchemaInput, opts ...request.Option) (*CreateSchemaOutput, error) {
req, out := c.CreateSchemaRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opCreateTypedLinkFacet = "CreateTypedLinkFacet"
// CreateTypedLinkFacetRequest generates a "aws/request.Request" representing the
// client's request for the CreateTypedLinkFacet operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See CreateTypedLinkFacet for more information on using the CreateTypedLinkFacet
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the CreateTypedLinkFacetRequest method.
// req, resp := client.CreateTypedLinkFacetRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateTypedLinkFacet
func (c *CloudDirectory) CreateTypedLinkFacetRequest(input *CreateTypedLinkFacetInput) (req *request.Request, output *CreateTypedLinkFacetOutput) {
op := &request.Operation{
Name: opCreateTypedLinkFacet,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/typedlink/facet/create",
}
if input == nil {
input = &CreateTypedLinkFacetInput{}
}
output = &CreateTypedLinkFacetOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// CreateTypedLinkFacet API operation for Amazon CloudDirectory.
//
// Creates a TypedLinkFacet. For more information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation CreateTypedLinkFacet for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeFacetAlreadyExistsException "FacetAlreadyExistsException"
// A facet with the same name already exists.
//
// * ErrCodeInvalidRuleException "InvalidRuleException"
// Occurs when any of the rule parameter keys or values are invalid.
//
// * ErrCodeFacetValidationException "FacetValidationException"
// The Facet that you provided was not well formed or could not be validated
// with the schema.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateTypedLinkFacet
func (c *CloudDirectory) CreateTypedLinkFacet(input *CreateTypedLinkFacetInput) (*CreateTypedLinkFacetOutput, error) {
req, out := c.CreateTypedLinkFacetRequest(input)
return out, req.Send()
}
// CreateTypedLinkFacetWithContext is the same as CreateTypedLinkFacet with the addition of
// the ability to pass a context and additional request options.
//
// See CreateTypedLinkFacet for details on how to use this API operation.
//
// 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 *CloudDirectory) CreateTypedLinkFacetWithContext(ctx aws.Context, input *CreateTypedLinkFacetInput, opts ...request.Option) (*CreateTypedLinkFacetOutput, error) {
req, out := c.CreateTypedLinkFacetRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteDirectory = "DeleteDirectory"
// DeleteDirectoryRequest generates a "aws/request.Request" representing the
// client's request for the DeleteDirectory operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteDirectory for more information on using the DeleteDirectory
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteDirectoryRequest method.
// req, resp := client.DeleteDirectoryRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DeleteDirectory
func (c *CloudDirectory) DeleteDirectoryRequest(input *DeleteDirectoryInput) (req *request.Request, output *DeleteDirectoryOutput) {
op := &request.Operation{
Name: opDeleteDirectory,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/directory",
}
if input == nil {
input = &DeleteDirectoryInput{}
}
output = &DeleteDirectoryOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteDirectory API operation for Amazon CloudDirectory.
//
// Deletes a directory. Only disabled directories can be deleted. A deleted
// directory cannot be undone. Exercise extreme caution when deleting directories.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation DeleteDirectory for usage and error information.
//
// Returned Error Codes:
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeDirectoryNotDisabledException "DirectoryNotDisabledException"
// An operation can only operate on a disabled directory.
//
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryDeletedException "DirectoryDeletedException"
// A directory that has been deleted and to which access has been attempted.
// Note: The requested resource will eventually cease to exist.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DeleteDirectory
func (c *CloudDirectory) DeleteDirectory(input *DeleteDirectoryInput) (*DeleteDirectoryOutput, error) {
req, out := c.DeleteDirectoryRequest(input)
return out, req.Send()
}
// DeleteDirectoryWithContext is the same as DeleteDirectory with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteDirectory for details on how to use this API operation.
//
// 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 *CloudDirectory) DeleteDirectoryWithContext(ctx aws.Context, input *DeleteDirectoryInput, opts ...request.Option) (*DeleteDirectoryOutput, error) {
req, out := c.DeleteDirectoryRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteFacet = "DeleteFacet"
// DeleteFacetRequest generates a "aws/request.Request" representing the
// client's request for the DeleteFacet operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteFacet for more information on using the DeleteFacet
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteFacetRequest method.
// req, resp := client.DeleteFacetRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DeleteFacet
func (c *CloudDirectory) DeleteFacetRequest(input *DeleteFacetInput) (req *request.Request, output *DeleteFacetOutput) {
op := &request.Operation{
Name: opDeleteFacet,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/facet/delete",
}
if input == nil {
input = &DeleteFacetInput{}
}
output = &DeleteFacetOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteFacet API operation for Amazon CloudDirectory.
//
// Deletes a given Facet. All attributes and Rules that are associated with
// the facet will be deleted. Only development schema facets are allowed deletion.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation DeleteFacet for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeFacetNotFoundException "FacetNotFoundException"
// The specified Facet could not be found.
//
// * ErrCodeFacetInUseException "FacetInUseException"
// Occurs when deleting a facet that contains an attribute that is a target
// to an attribute reference in a different facet.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DeleteFacet
func (c *CloudDirectory) DeleteFacet(input *DeleteFacetInput) (*DeleteFacetOutput, error) {
req, out := c.DeleteFacetRequest(input)
return out, req.Send()
}
// DeleteFacetWithContext is the same as DeleteFacet with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteFacet for details on how to use this API operation.
//
// 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 *CloudDirectory) DeleteFacetWithContext(ctx aws.Context, input *DeleteFacetInput, opts ...request.Option) (*DeleteFacetOutput, error) {
req, out := c.DeleteFacetRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteObject = "DeleteObject"
// DeleteObjectRequest generates a "aws/request.Request" representing the
// client's request for the DeleteObject operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteObject for more information on using the DeleteObject
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteObjectRequest method.
// req, resp := client.DeleteObjectRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DeleteObject
func (c *CloudDirectory) DeleteObjectRequest(input *DeleteObjectInput) (req *request.Request, output *DeleteObjectOutput) {
op := &request.Operation{
Name: opDeleteObject,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/object/delete",
}
if input == nil {
input = &DeleteObjectInput{}
}
output = &DeleteObjectOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteObject API operation for Amazon CloudDirectory.
//
// Deletes an object and its associated attributes. Only objects with no children
// and no parents can be deleted. The maximum number of attributes that can
// be deleted during an object deletion is 30. For more information, see Amazon
// Cloud Directory Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation DeleteObject for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeObjectNotDetachedException "ObjectNotDetachedException"
// Indicates that the requested operation cannot be completed because the object
// has not been detached from the tree.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DeleteObject
func (c *CloudDirectory) DeleteObject(input *DeleteObjectInput) (*DeleteObjectOutput, error) {
req, out := c.DeleteObjectRequest(input)
return out, req.Send()
}
// DeleteObjectWithContext is the same as DeleteObject with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteObject for details on how to use this API operation.
//
// 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 *CloudDirectory) DeleteObjectWithContext(ctx aws.Context, input *DeleteObjectInput, opts ...request.Option) (*DeleteObjectOutput, error) {
req, out := c.DeleteObjectRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteSchema = "DeleteSchema"
// DeleteSchemaRequest generates a "aws/request.Request" representing the
// client's request for the DeleteSchema operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteSchema for more information on using the DeleteSchema
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteSchemaRequest method.
// req, resp := client.DeleteSchemaRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DeleteSchema
func (c *CloudDirectory) DeleteSchemaRequest(input *DeleteSchemaInput) (req *request.Request, output *DeleteSchemaOutput) {
op := &request.Operation{
Name: opDeleteSchema,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/schema",
}
if input == nil {
input = &DeleteSchemaInput{}
}
output = &DeleteSchemaOutput{}
req = c.newRequest(op, input, output)
return
}
// DeleteSchema API operation for Amazon CloudDirectory.
//
// Deletes a given schema. Schemas in a development and published state can
// only be deleted.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation DeleteSchema for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeStillContainsLinksException "StillContainsLinksException"
// The object could not be deleted because links still exist. Remove the links
// and then try the operation again.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DeleteSchema
func (c *CloudDirectory) DeleteSchema(input *DeleteSchemaInput) (*DeleteSchemaOutput, error) {
req, out := c.DeleteSchemaRequest(input)
return out, req.Send()
}
// DeleteSchemaWithContext is the same as DeleteSchema with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteSchema for details on how to use this API operation.
//
// 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 *CloudDirectory) DeleteSchemaWithContext(ctx aws.Context, input *DeleteSchemaInput, opts ...request.Option) (*DeleteSchemaOutput, error) {
req, out := c.DeleteSchemaRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDeleteTypedLinkFacet = "DeleteTypedLinkFacet"
// DeleteTypedLinkFacetRequest generates a "aws/request.Request" representing the
// client's request for the DeleteTypedLinkFacet operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DeleteTypedLinkFacet for more information on using the DeleteTypedLinkFacet
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DeleteTypedLinkFacetRequest method.
// req, resp := client.DeleteTypedLinkFacetRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DeleteTypedLinkFacet
func (c *CloudDirectory) DeleteTypedLinkFacetRequest(input *DeleteTypedLinkFacetInput) (req *request.Request, output *DeleteTypedLinkFacetOutput) {
op := &request.Operation{
Name: opDeleteTypedLinkFacet,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/typedlink/facet/delete",
}
if input == nil {
input = &DeleteTypedLinkFacetInput{}
}
output = &DeleteTypedLinkFacetOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DeleteTypedLinkFacet API operation for Amazon CloudDirectory.
//
// Deletes a TypedLinkFacet. For more information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation DeleteTypedLinkFacet for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeFacetNotFoundException "FacetNotFoundException"
// The specified Facet could not be found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DeleteTypedLinkFacet
func (c *CloudDirectory) DeleteTypedLinkFacet(input *DeleteTypedLinkFacetInput) (*DeleteTypedLinkFacetOutput, error) {
req, out := c.DeleteTypedLinkFacetRequest(input)
return out, req.Send()
}
// DeleteTypedLinkFacetWithContext is the same as DeleteTypedLinkFacet with the addition of
// the ability to pass a context and additional request options.
//
// See DeleteTypedLinkFacet for details on how to use this API operation.
//
// 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 *CloudDirectory) DeleteTypedLinkFacetWithContext(ctx aws.Context, input *DeleteTypedLinkFacetInput, opts ...request.Option) (*DeleteTypedLinkFacetOutput, error) {
req, out := c.DeleteTypedLinkFacetRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDetachFromIndex = "DetachFromIndex"
// DetachFromIndexRequest generates a "aws/request.Request" representing the
// client's request for the DetachFromIndex operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DetachFromIndex for more information on using the DetachFromIndex
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DetachFromIndexRequest method.
// req, resp := client.DetachFromIndexRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DetachFromIndex
func (c *CloudDirectory) DetachFromIndexRequest(input *DetachFromIndexInput) (req *request.Request, output *DetachFromIndexOutput) {
op := &request.Operation{
Name: opDetachFromIndex,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/index/detach",
}
if input == nil {
input = &DetachFromIndexInput{}
}
output = &DetachFromIndexOutput{}
req = c.newRequest(op, input, output)
return
}
// DetachFromIndex API operation for Amazon CloudDirectory.
//
// Detaches the specified object from the specified index.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation DetachFromIndex for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeObjectAlreadyDetachedException "ObjectAlreadyDetachedException"
// Indicates that the object is not attached to the index.
//
// * ErrCodeNotIndexException "NotIndexException"
// Indicates that the requested operation can only operate on index objects.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DetachFromIndex
func (c *CloudDirectory) DetachFromIndex(input *DetachFromIndexInput) (*DetachFromIndexOutput, error) {
req, out := c.DetachFromIndexRequest(input)
return out, req.Send()
}
// DetachFromIndexWithContext is the same as DetachFromIndex with the addition of
// the ability to pass a context and additional request options.
//
// See DetachFromIndex for details on how to use this API operation.
//
// 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 *CloudDirectory) DetachFromIndexWithContext(ctx aws.Context, input *DetachFromIndexInput, opts ...request.Option) (*DetachFromIndexOutput, error) {
req, out := c.DetachFromIndexRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDetachObject = "DetachObject"
// DetachObjectRequest generates a "aws/request.Request" representing the
// client's request for the DetachObject operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DetachObject for more information on using the DetachObject
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DetachObjectRequest method.
// req, resp := client.DetachObjectRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DetachObject
func (c *CloudDirectory) DetachObjectRequest(input *DetachObjectInput) (req *request.Request, output *DetachObjectOutput) {
op := &request.Operation{
Name: opDetachObject,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/object/detach",
}
if input == nil {
input = &DetachObjectInput{}
}
output = &DetachObjectOutput{}
req = c.newRequest(op, input, output)
return
}
// DetachObject API operation for Amazon CloudDirectory.
//
// Detaches a given object from the parent object. The object that is to be
// detached from the parent is specified by the link name.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation DetachObject for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeNotNodeException "NotNodeException"
// Occurs when any invalid operations are performed on an object that is not
// a node, such as calling ListObjectChildren for a leaf node object.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DetachObject
func (c *CloudDirectory) DetachObject(input *DetachObjectInput) (*DetachObjectOutput, error) {
req, out := c.DetachObjectRequest(input)
return out, req.Send()
}
// DetachObjectWithContext is the same as DetachObject with the addition of
// the ability to pass a context and additional request options.
//
// See DetachObject for details on how to use this API operation.
//
// 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 *CloudDirectory) DetachObjectWithContext(ctx aws.Context, input *DetachObjectInput, opts ...request.Option) (*DetachObjectOutput, error) {
req, out := c.DetachObjectRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDetachPolicy = "DetachPolicy"
// DetachPolicyRequest generates a "aws/request.Request" representing the
// client's request for the DetachPolicy operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DetachPolicy for more information on using the DetachPolicy
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DetachPolicyRequest method.
// req, resp := client.DetachPolicyRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DetachPolicy
func (c *CloudDirectory) DetachPolicyRequest(input *DetachPolicyInput) (req *request.Request, output *DetachPolicyOutput) {
op := &request.Operation{
Name: opDetachPolicy,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/policy/detach",
}
if input == nil {
input = &DetachPolicyInput{}
}
output = &DetachPolicyOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DetachPolicy API operation for Amazon CloudDirectory.
//
// Detaches a policy from an object.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation DetachPolicy for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeNotPolicyException "NotPolicyException"
// Indicates that the requested operation can only operate on policy objects.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DetachPolicy
func (c *CloudDirectory) DetachPolicy(input *DetachPolicyInput) (*DetachPolicyOutput, error) {
req, out := c.DetachPolicyRequest(input)
return out, req.Send()
}
// DetachPolicyWithContext is the same as DetachPolicy with the addition of
// the ability to pass a context and additional request options.
//
// See DetachPolicy for details on how to use this API operation.
//
// 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 *CloudDirectory) DetachPolicyWithContext(ctx aws.Context, input *DetachPolicyInput, opts ...request.Option) (*DetachPolicyOutput, error) {
req, out := c.DetachPolicyRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDetachTypedLink = "DetachTypedLink"
// DetachTypedLinkRequest generates a "aws/request.Request" representing the
// client's request for the DetachTypedLink operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DetachTypedLink for more information on using the DetachTypedLink
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DetachTypedLinkRequest method.
// req, resp := client.DetachTypedLinkRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DetachTypedLink
func (c *CloudDirectory) DetachTypedLinkRequest(input *DetachTypedLinkInput) (req *request.Request, output *DetachTypedLinkOutput) {
op := &request.Operation{
Name: opDetachTypedLink,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/typedlink/detach",
}
if input == nil {
input = &DetachTypedLinkInput{}
}
output = &DetachTypedLinkOutput{}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
return
}
// DetachTypedLink API operation for Amazon CloudDirectory.
//
// Detaches a typed link from a specified source and target object. For more
// information, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation DetachTypedLink for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeFacetValidationException "FacetValidationException"
// The Facet that you provided was not well formed or could not be validated
// with the schema.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DetachTypedLink
func (c *CloudDirectory) DetachTypedLink(input *DetachTypedLinkInput) (*DetachTypedLinkOutput, error) {
req, out := c.DetachTypedLinkRequest(input)
return out, req.Send()
}
// DetachTypedLinkWithContext is the same as DetachTypedLink with the addition of
// the ability to pass a context and additional request options.
//
// See DetachTypedLink for details on how to use this API operation.
//
// 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 *CloudDirectory) DetachTypedLinkWithContext(ctx aws.Context, input *DetachTypedLinkInput, opts ...request.Option) (*DetachTypedLinkOutput, error) {
req, out := c.DetachTypedLinkRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opDisableDirectory = "DisableDirectory"
// DisableDirectoryRequest generates a "aws/request.Request" representing the
// client's request for the DisableDirectory operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See DisableDirectory for more information on using the DisableDirectory
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the DisableDirectoryRequest method.
// req, resp := client.DisableDirectoryRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DisableDirectory
func (c *CloudDirectory) DisableDirectoryRequest(input *DisableDirectoryInput) (req *request.Request, output *DisableDirectoryOutput) {
op := &request.Operation{
Name: opDisableDirectory,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/directory/disable",
}
if input == nil {
input = &DisableDirectoryInput{}
}
output = &DisableDirectoryOutput{}
req = c.newRequest(op, input, output)
return
}
// DisableDirectory API operation for Amazon CloudDirectory.
//
// Disables the specified directory. Disabled directories cannot be read or
// written to. Only enabled directories can be disabled. Disabled directories
// may be reenabled.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation DisableDirectory for usage and error information.
//
// Returned Error Codes:
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeDirectoryDeletedException "DirectoryDeletedException"
// A directory that has been deleted and to which access has been attempted.
// Note: The requested resource will eventually cease to exist.
//
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DisableDirectory
func (c *CloudDirectory) DisableDirectory(input *DisableDirectoryInput) (*DisableDirectoryOutput, error) {
req, out := c.DisableDirectoryRequest(input)
return out, req.Send()
}
// DisableDirectoryWithContext is the same as DisableDirectory with the addition of
// the ability to pass a context and additional request options.
//
// See DisableDirectory for details on how to use this API operation.
//
// 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 *CloudDirectory) DisableDirectoryWithContext(ctx aws.Context, input *DisableDirectoryInput, opts ...request.Option) (*DisableDirectoryOutput, error) {
req, out := c.DisableDirectoryRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opEnableDirectory = "EnableDirectory"
// EnableDirectoryRequest generates a "aws/request.Request" representing the
// client's request for the EnableDirectory operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See EnableDirectory for more information on using the EnableDirectory
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the EnableDirectoryRequest method.
// req, resp := client.EnableDirectoryRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/EnableDirectory
func (c *CloudDirectory) EnableDirectoryRequest(input *EnableDirectoryInput) (req *request.Request, output *EnableDirectoryOutput) {
op := &request.Operation{
Name: opEnableDirectory,
HTTPMethod: "PUT",
HTTPPath: "/amazonclouddirectory/2017-01-11/directory/enable",
}
if input == nil {
input = &EnableDirectoryInput{}
}
output = &EnableDirectoryOutput{}
req = c.newRequest(op, input, output)
return
}
// EnableDirectory API operation for Amazon CloudDirectory.
//
// Enables the specified directory. Only disabled directories can be enabled.
// Once enabled, the directory can then be read and written to.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation EnableDirectory for usage and error information.
//
// Returned Error Codes:
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeDirectoryDeletedException "DirectoryDeletedException"
// A directory that has been deleted and to which access has been attempted.
// Note: The requested resource will eventually cease to exist.
//
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/EnableDirectory
func (c *CloudDirectory) EnableDirectory(input *EnableDirectoryInput) (*EnableDirectoryOutput, error) {
req, out := c.EnableDirectoryRequest(input)
return out, req.Send()
}
// EnableDirectoryWithContext is the same as EnableDirectory with the addition of
// the ability to pass a context and additional request options.
//
// See EnableDirectory for details on how to use this API operation.
//
// 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 *CloudDirectory) EnableDirectoryWithContext(ctx aws.Context, input *EnableDirectoryInput, opts ...request.Option) (*EnableDirectoryOutput, error) {
req, out := c.EnableDirectoryRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetAppliedSchemaVersion = "GetAppliedSchemaVersion"
// GetAppliedSchemaVersionRequest generates a "aws/request.Request" representing the
// client's request for the GetAppliedSchemaVersion operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetAppliedSchemaVersion for more information on using the GetAppliedSchemaVersion
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetAppliedSchemaVersionRequest method.
// req, resp := client.GetAppliedSchemaVersionRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetAppliedSchemaVersion
func (c *CloudDirectory) GetAppliedSchemaVersionRequest(input *GetAppliedSchemaVersionInput) (req *request.Request, output *GetAppliedSchemaVersionOutput) {
op := &request.Operation{
Name: opGetAppliedSchemaVersion,
HTTPMethod: "POST",
HTTPPath: "/amazonclouddirectory/2017-01-11/schema/getappliedschema",
}
if input == nil {
input = &GetAppliedSchemaVersionInput{}
}
output = &GetAppliedSchemaVersionOutput{}
req = c.newRequest(op, input, output)
return
}
// GetAppliedSchemaVersion API operation for Amazon CloudDirectory.
//
// Returns current applied schema version ARN, including the minor version in
// use.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation GetAppliedSchemaVersion for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetAppliedSchemaVersion
func (c *CloudDirectory) GetAppliedSchemaVersion(input *GetAppliedSchemaVersionInput) (*GetAppliedSchemaVersionOutput, error) {
req, out := c.GetAppliedSchemaVersionRequest(input)
return out, req.Send()
}
// GetAppliedSchemaVersionWithContext is the same as GetAppliedSchemaVersion with the addition of
// the ability to pass a context and additional request options.
//
// See GetAppliedSchemaVersion for details on how to use this API operation.
//
// 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 *CloudDirectory) GetAppliedSchemaVersionWithContext(ctx aws.Context, input *GetAppliedSchemaVersionInput, opts ...request.Option) (*GetAppliedSchemaVersionOutput, error) {
req, out := c.GetAppliedSchemaVersionRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetDirectory = "GetDirectory"
// GetDirectoryRequest generates a "aws/request.Request" representing the
// client's request for the GetDirectory operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetDirectory for more information on using the GetDirectory
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetDirectoryRequest method.
// req, resp := client.GetDirectoryRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetDirectory
func (c *CloudDirectory) GetDirectoryRequest(input *GetDirectoryInput) (req *request.Request, output *GetDirectoryOutput) {
op := &request.Operation{
Name: opGetDirectory,
HTTPMethod: "POST",
HTTPPath: "/amazonclouddirectory/2017-01-11/directory/get",
}
if input == nil {
input = &GetDirectoryInput{}
}
output = &GetDirectoryOutput{}
req = c.newRequest(op, input, output)
return
}
// GetDirectory API operation for Amazon CloudDirectory.
//
// Retrieves metadata about a directory.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation GetDirectory for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetDirectory
func (c *CloudDirectory) GetDirectory(input *GetDirectoryInput) (*GetDirectoryOutput, error) {
req, out := c.GetDirectoryRequest(input)
return out, req.Send()
}
// GetDirectoryWithContext is the same as GetDirectory with the addition of
// the ability to pass a context and additional request options.
//
// See GetDirectory for details on how to use this API operation.
//
// 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 *CloudDirectory) GetDirectoryWithContext(ctx aws.Context, input *GetDirectoryInput, opts ...request.Option) (*GetDirectoryOutput, error) {
req, out := c.GetDirectoryRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetFacet = "GetFacet"
// GetFacetRequest generates a "aws/request.Request" representing the
// client's request for the GetFacet operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetFacet for more information on using the GetFacet
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetFacetRequest method.
// req, resp := client.GetFacetRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetFacet
func (c *CloudDirectory) GetFacetRequest(input *GetFacetInput) (req *request.Request, output *GetFacetOutput) {
op := &request.Operation{
Name: opGetFacet,
HTTPMethod: "POST",
HTTPPath: "/amazonclouddirectory/2017-01-11/facet",
}
if input == nil {
input = &GetFacetInput{}
}
output = &GetFacetOutput{}
req = c.newRequest(op, input, output)
return
}
// GetFacet API operation for Amazon CloudDirectory.
//
// Gets details of the Facet, such as facet name, attributes, Rules, or ObjectType.
// You can call this on all kinds of schema facets -- published, development,
// or applied.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation GetFacet for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeFacetNotFoundException "FacetNotFoundException"
// The specified Facet could not be found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetFacet
func (c *CloudDirectory) GetFacet(input *GetFacetInput) (*GetFacetOutput, error) {
req, out := c.GetFacetRequest(input)
return out, req.Send()
}
// GetFacetWithContext is the same as GetFacet with the addition of
// the ability to pass a context and additional request options.
//
// See GetFacet for details on how to use this API operation.
//
// 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 *CloudDirectory) GetFacetWithContext(ctx aws.Context, input *GetFacetInput, opts ...request.Option) (*GetFacetOutput, error) {
req, out := c.GetFacetRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetLinkAttributes = "GetLinkAttributes"
// GetLinkAttributesRequest generates a "aws/request.Request" representing the
// client's request for the GetLinkAttributes operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetLinkAttributes for more information on using the GetLinkAttributes
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetLinkAttributesRequest method.
// req, resp := client.GetLinkAttributesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetLinkAttributes
func (c *CloudDirectory) GetLinkAttributesRequest(input *GetLinkAttributesInput) (req *request.Request, output *GetLinkAttributesOutput) {
op := &request.Operation{
Name: opGetLinkAttributes,
HTTPMethod: "POST",
HTTPPath: "/amazonclouddirectory/2017-01-11/typedlink/attributes/get",
}
if input == nil {
input = &GetLinkAttributesInput{}
}
output = &GetLinkAttributesOutput{}
req = c.newRequest(op, input, output)
return
}
// GetLinkAttributes API operation for Amazon CloudDirectory.
//
// Retrieves attributes that are associated with a typed link.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation GetLinkAttributes for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeFacetValidationException "FacetValidationException"
// The Facet that you provided was not well formed or could not be validated
// with the schema.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetLinkAttributes
func (c *CloudDirectory) GetLinkAttributes(input *GetLinkAttributesInput) (*GetLinkAttributesOutput, error) {
req, out := c.GetLinkAttributesRequest(input)
return out, req.Send()
}
// GetLinkAttributesWithContext is the same as GetLinkAttributes with the addition of
// the ability to pass a context and additional request options.
//
// See GetLinkAttributes for details on how to use this API operation.
//
// 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 *CloudDirectory) GetLinkAttributesWithContext(ctx aws.Context, input *GetLinkAttributesInput, opts ...request.Option) (*GetLinkAttributesOutput, error) {
req, out := c.GetLinkAttributesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetObjectAttributes = "GetObjectAttributes"
// GetObjectAttributesRequest generates a "aws/request.Request" representing the
// client's request for the GetObjectAttributes operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetObjectAttributes for more information on using the GetObjectAttributes
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
//
//
// // Example sending a request using the GetObjectAttributesRequest method.
// req, resp := client.GetObjectAttributesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetObjectAttributes
func (c *CloudDirectory) GetObjectAttributesRequest(input *GetObjectAttributesInput) (req *request.Request, output *GetObjectAttributesOutput) {
op := &request.Operation{
Name: opGetObjectAttributes,
HTTPMethod: "POST",
HTTPPath: "/amazonclouddirectory/2017-01-11/object/attributes/get",
}
if input == nil {
input = &GetObjectAttributesInput{}
}
output = &GetObjectAttributesOutput{}
req = c.newRequest(op, input, output)
return
}
// GetObjectAttributes API operation for Amazon CloudDirectory.
//
// Retrieves attributes within a facet that are associated with an object.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for Amazon CloudDirectory's
// API operation GetObjectAttributes for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServiceException "InternalServiceException"
// Indicates a problem that must be resolved by Amazon Web Services. This might
// be a transient error in which case you can retry your request until it succeeds.
// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/)
// site to see if there are any operational issues with the service.
//
// * ErrCodeInvalidArnException "InvalidArnException"
// Indicates that the provided ARN value is not valid.
//
// * ErrCodeRetryableConflictException "RetryableConflictException"
// Occurs when a conflict with a previous successful write is detected. For
// example, if a write operation occurs on an object and then an attempt is
// made to read the object using “SERIALIZABLE” consistency, this exception
// may result. This generally occurs when the previous write did not have time
// to propagate to the host serving the current request. A retry (with appropriate
// backoff logic) is the recommended response to this exception.
//
// * ErrCodeValidationException "ValidationException"
// Indicates that your request is malformed in some manner. See the exception
// message.
//
// * ErrCodeLimitExceededException "LimitExceededException"
// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html)
// for more information.
//
// * ErrCodeAccessDeniedException "AccessDeniedException"
// Access denied. Check your permissions.
//
// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException"
// Operations are only permitted on enabled directories.
//
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
// The specified resource could not be found.
//
// * ErrCodeFacetValidationException "FacetValidationException"
// The Facet that you provided was not well formed or could not be validated
// with the schema.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetObjectAttributes
func (c *CloudDirectory) GetObjectAttributes(input *GetObjectAttributesInput) (*GetObjectAttributesOutput, error) {
req, out := c.GetObjectAttributesRequest(input)
return out, req.Send()
}
// GetObjectAttributesWithContext is the same as GetObjectAttributes with the addition of
// the ability to pass a context and additional request options.
//
// See GetObjectAttributes for details on how to use this API operation.
//
// 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 *CloudDirectory) GetObjectAttributesWithContext(ctx aws.Context, input *GetObjectAttributesInput, opts ...request.Option) (*GetObjectAttributesOutput, error) {
req, out := c.GetObjectAttributesRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opGetObjectInformation = "GetObjectInformation"
// GetObjectInformationRequest generates a "aws/request.Request" representing the
// client's request for the GetObjectInformation operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// Use "Send" method on the returned Request to send the API call to the service.
// the "output" return value is not valid until after Send returns without error.
//
// See GetObjectInformation for more information on using the GetObjectInformation
// API call, and error handling.
//
// This method is useful when you want to inject custom logic or configuration
// into the SDK's request lifecycle. Such as custom headers, or retry logic.