Documentation ¶
Overview ¶
Package storage provides the API client, operations, and parameter types for the API.
Index ¶
- Constants
- func GetHostIDMetadata(metadata middleware.Metadata) (string, bool)
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)
- type AbortMultipartUploadInput
- type AbortMultipartUploadOutput
- type Client
- func (c *Client) AbortMultipartUpload(ctx context.Context, params *AbortMultipartUploadInput, ...) (*AbortMultipartUploadOutput, error)
- func (c *Client) CompleteMultipartUpload(ctx context.Context, params *CompleteMultipartUploadInput, ...) (*CompleteMultipartUploadOutput, error)
- func (c *Client) DeleteBucket(ctx context.Context, params *DeleteBucketInput, optFns ...func(*Options)) (*DeleteBucketOutput, error)
- func (c *Client) DeleteBucketCors(ctx context.Context, params *DeleteBucketCorsInput, optFns ...func(*Options)) (*DeleteBucketCorsOutput, error)
- func (c *Client) DeleteBucketLifecycle(ctx context.Context, params *DeleteBucketLifecycleInput, ...) (*DeleteBucketLifecycleOutput, error)
- func (c *Client) DeleteBucketPolicy(ctx context.Context, params *DeleteBucketPolicyInput, optFns ...func(*Options)) (*DeleteBucketPolicyOutput, error)
- func (c *Client) DeleteBucketTagging(ctx context.Context, params *DeleteBucketTaggingInput, ...) (*DeleteBucketTaggingOutput, error)
- func (c *Client) DeleteMultipleObjects(ctx context.Context, params *DeleteMultipleObjectsInput, ...) (*DeleteMultipleObjectsOutput, error)
- func (c *Client) DeleteObject(ctx context.Context, params *DeleteObjectInput, optFns ...func(*Options)) (*DeleteObjectOutput, error)
- func (c *Client) DeleteObjectTagging(ctx context.Context, params *DeleteObjectTaggingInput, ...) (*DeleteObjectTaggingOutput, error)
- func (c *Client) GetBucket(ctx context.Context, params *GetBucketInput, optFns ...func(*Options)) (*GetBucketOutput, error)
- func (c *Client) GetBucketACL(ctx context.Context, params *GetBucketACLInput, optFns ...func(*Options)) (*GetBucketACLOutput, error)
- func (c *Client) GetBucketConsistency(ctx context.Context, params *GetBucketConsistencyInput, ...) (*GetBucketConsistencyOutput, error)
- func (c *Client) GetBucketCors(ctx context.Context, params *GetBucketCorsInput, optFns ...func(*Options)) (*GetBucketCorsOutput, error)
- func (c *Client) GetBucketLifecycleConfiguration(ctx context.Context, params *GetBucketLifecycleConfigurationInput, ...) (*GetBucketLifecycleConfigurationOutput, error)
- func (c *Client) GetBucketObjectVersions(ctx context.Context, params *GetBucketObjectVersionsInput, ...) (*GetBucketObjectVersionsOutput, error)
- func (c *Client) GetBucketPolicy(ctx context.Context, params *GetBucketPolicyInput, optFns ...func(*Options)) (*GetBucketPolicyOutput, error)
- func (c *Client) GetBucketTagging(ctx context.Context, params *GetBucketTaggingInput, optFns ...func(*Options)) (*GetBucketTaggingOutput, error)
- func (c *Client) GetBucketVersion2(ctx context.Context, params *GetBucketVersion2Input, optFns ...func(*Options)) (*GetBucketVersion2Output, error)
- func (c *Client) GetBucketVersioning(ctx context.Context, params *GetBucketVersioningInput, ...) (*GetBucketVersioningOutput, error)
- func (c *Client) GetObject(ctx context.Context, params *GetObjectInput, optFns ...func(*Options)) (*GetObjectOutput, error)
- func (c *Client) GetObjectACL(ctx context.Context, params *GetObjectACLInput, optFns ...func(*Options)) (*GetObjectACLOutput, error)
- func (c *Client) GetObjectTagging(ctx context.Context, params *GetObjectTaggingInput, optFns ...func(*Options)) (*GetObjectTaggingOutput, error)
- func (c *Client) GetService(ctx context.Context, params *GetServiceInput, optFns ...func(*Options)) (*GetServiceOutput, error)
- func (c *Client) HeadBucket(ctx context.Context, params *HeadBucketInput, optFns ...func(*Options)) (*HeadBucketOutput, error)
- func (c *Client) HeadObject(ctx context.Context, params *HeadObjectInput, optFns ...func(*Options)) (*HeadObjectOutput, error)
- func (c *Client) InitiateMultipartUpload(ctx context.Context, params *InitiateMultipartUploadInput, ...) (*InitiateMultipartUploadOutput, error)
- func (c *Client) ListMultipartUploads(ctx context.Context, params *ListMultipartUploadsInput, ...) (*ListMultipartUploadsOutput, error)
- func (c *Client) ListParts(ctx context.Context, params *ListPartsInput, optFns ...func(*Options)) (*ListPartsOutput, error)
- func (c *Client) PutBucket(ctx context.Context, params *PutBucketInput, optFns ...func(*Options)) (*PutBucketOutput, error)
- func (c *Client) PutBucketConsistency(ctx context.Context, params *PutBucketConsistencyInput, ...) (*PutBucketConsistencyOutput, error)
- func (c *Client) PutBucketCors(ctx context.Context, params *PutBucketCorsInput, optFns ...func(*Options)) (*PutBucketCorsOutput, error)
- func (c *Client) PutBucketLifecycleConfiguration(ctx context.Context, params *PutBucketLifecycleConfigurationInput, ...) (*PutBucketLifecycleConfigurationOutput, error)
- func (c *Client) PutBucketPolicy(ctx context.Context, params *PutBucketPolicyInput, optFns ...func(*Options)) (*PutBucketPolicyOutput, error)
- func (c *Client) PutBucketTagging(ctx context.Context, params *PutBucketTaggingInput, optFns ...func(*Options)) (*PutBucketTaggingOutput, error)
- func (c *Client) PutBucketVersioning(ctx context.Context, params *PutBucketVersioningInput, ...) (*PutBucketVersioningOutput, error)
- func (c *Client) PutObject(ctx context.Context, params *PutObjectInput, optFns ...func(*Options)) (*PutObjectOutput, error)
- func (c *Client) PutObjectCopy(ctx context.Context, params *PutObjectCopyInput, optFns ...func(*Options)) (*PutObjectCopyOutput, error)
- func (c *Client) PutObjectTagging(ctx context.Context, params *PutObjectTaggingInput, optFns ...func(*Options)) (*PutObjectTaggingOutput, error)
- func (c *Client) UploadPart(ctx context.Context, params *UploadPartInput, optFns ...func(*Options)) (*UploadPartOutput, error)
- func (c *Client) UploadPartCopy(ctx context.Context, params *UploadPartCopyInput, optFns ...func(*Options)) (*UploadPartCopyOutput, error)
- type CompleteMultipartUploadInput
- type CompleteMultipartUploadOutput
- type DeleteBucketCorsInput
- type DeleteBucketCorsOutput
- type DeleteBucketInput
- type DeleteBucketLifecycleInput
- type DeleteBucketLifecycleOutput
- type DeleteBucketOutput
- type DeleteBucketPolicyInput
- type DeleteBucketPolicyOutput
- type DeleteBucketTaggingInput
- type DeleteBucketTaggingOutput
- type DeleteMultipleObjectsInput
- type DeleteMultipleObjectsOutput
- type DeleteObjectInput
- type DeleteObjectOutput
- type DeleteObjectTaggingInput
- type DeleteObjectTaggingOutput
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type GetBucketACLInput
- type GetBucketACLOutput
- type GetBucketConsistencyInput
- type GetBucketConsistencyOutput
- type GetBucketCorsInput
- type GetBucketCorsOutput
- type GetBucketInput
- type GetBucketLifecycleConfigurationInput
- type GetBucketLifecycleConfigurationOutput
- type GetBucketObjectVersionsInput
- type GetBucketObjectVersionsOutput
- type GetBucketOutput
- type GetBucketPolicyInput
- type GetBucketPolicyOutput
- type GetBucketTaggingInput
- type GetBucketTaggingOutput
- type GetBucketVersion2Input
- type GetBucketVersion2Output
- type GetBucketVersioningInput
- type GetBucketVersioningOutput
- type GetObjectACLInput
- type GetObjectACLOutput
- type GetObjectInput
- type GetObjectOutput
- type GetObjectTaggingInput
- type GetObjectTaggingOutput
- type GetServiceInput
- type GetServiceOutput
- type HTTPClient
- type HTTPSignerV4
- type HeadBucketInput
- type HeadBucketOutput
- type HeadObjectInput
- type HeadObjectOutput
- type InitiateMultipartUploadInput
- type InitiateMultipartUploadOutput
- type ListMultipartUploadsInput
- type ListMultipartUploadsOutput
- type ListPartsInput
- type ListPartsOutput
- type Options
- type PutBucketConsistencyInput
- type PutBucketConsistencyOutput
- type PutBucketCorsInput
- type PutBucketCorsOutput
- type PutBucketInput
- type PutBucketLifecycleConfigurationInput
- type PutBucketLifecycleConfigurationOutput
- type PutBucketOutput
- type PutBucketPolicyInput
- type PutBucketPolicyOutput
- type PutBucketTaggingInput
- type PutBucketTaggingOutput
- type PutBucketVersioningInput
- type PutBucketVersioningOutput
- type PutObjectCopyInput
- type PutObjectCopyOutput
- type PutObjectInput
- type PutObjectOutput
- type PutObjectTaggingInput
- type PutObjectTaggingOutput
- type ResolveEndpoint
- type ResponseError
- type UploadPartCopyInput
- type UploadPartCopyOutput
- type UploadPartInput
- type UploadPartOutput
Constants ¶
const ServiceAPIVersion = "2006-03-01"
const ServiceID = "storage"
Variables ¶
This section is empty.
Functions ¶
func GetHostIDMetadata ¶
func GetHostIDMetadata(metadata middleware.Metadata) (string, bool)
GetHostIDMetadata retrieves the host id from middleware metadata returns host id as string along with a boolean indicating presence of hostId on middleware metadata.
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver ¶
func WithEndpointResolver(v EndpointResolver) func(*Options)
WithEndpointResolver returns a functional option for setting the Client's EndpointResolver option.
Types ¶
type AbortMultipartUploadOutput ¶
type AbortMultipartUploadOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for the API.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) AbortMultipartUpload ¶
func (c *Client) AbortMultipartUpload(ctx context.Context, params *AbortMultipartUploadInput, optFns ...func(*Options)) (*AbortMultipartUploadOutput, error)
func (*Client) CompleteMultipartUpload ¶
func (c *Client) CompleteMultipartUpload(ctx context.Context, params *CompleteMultipartUploadInput, optFns ...func(*Options)) (*CompleteMultipartUploadOutput, error)
func (*Client) DeleteBucket ¶
func (c *Client) DeleteBucket(ctx context.Context, params *DeleteBucketInput, optFns ...func(*Options)) (*DeleteBucketOutput, error)
func (*Client) DeleteBucketCors ¶
func (c *Client) DeleteBucketCors(ctx context.Context, params *DeleteBucketCorsInput, optFns ...func(*Options)) (*DeleteBucketCorsOutput, error)
func (*Client) DeleteBucketLifecycle ¶
func (c *Client) DeleteBucketLifecycle(ctx context.Context, params *DeleteBucketLifecycleInput, optFns ...func(*Options)) (*DeleteBucketLifecycleOutput, error)
func (*Client) DeleteBucketPolicy ¶
func (c *Client) DeleteBucketPolicy(ctx context.Context, params *DeleteBucketPolicyInput, optFns ...func(*Options)) (*DeleteBucketPolicyOutput, error)
func (*Client) DeleteBucketTagging ¶
func (c *Client) DeleteBucketTagging(ctx context.Context, params *DeleteBucketTaggingInput, optFns ...func(*Options)) (*DeleteBucketTaggingOutput, error)
func (*Client) DeleteMultipleObjects ¶
func (c *Client) DeleteMultipleObjects(ctx context.Context, params *DeleteMultipleObjectsInput, optFns ...func(*Options)) (*DeleteMultipleObjectsOutput, error)
func (*Client) DeleteObject ¶
func (c *Client) DeleteObject(ctx context.Context, params *DeleteObjectInput, optFns ...func(*Options)) (*DeleteObjectOutput, error)
func (*Client) DeleteObjectTagging ¶
func (c *Client) DeleteObjectTagging(ctx context.Context, params *DeleteObjectTaggingInput, optFns ...func(*Options)) (*DeleteObjectTaggingOutput, error)
func (*Client) GetBucket ¶
func (c *Client) GetBucket(ctx context.Context, params *GetBucketInput, optFns ...func(*Options)) (*GetBucketOutput, error)
func (*Client) GetBucketACL ¶
func (c *Client) GetBucketACL(ctx context.Context, params *GetBucketACLInput, optFns ...func(*Options)) (*GetBucketACLOutput, error)
func (*Client) GetBucketConsistency ¶
func (c *Client) GetBucketConsistency(ctx context.Context, params *GetBucketConsistencyInput, optFns ...func(*Options)) (*GetBucketConsistencyOutput, error)
func (*Client) GetBucketCors ¶
func (c *Client) GetBucketCors(ctx context.Context, params *GetBucketCorsInput, optFns ...func(*Options)) (*GetBucketCorsOutput, error)
func (*Client) GetBucketLifecycleConfiguration ¶
func (c *Client) GetBucketLifecycleConfiguration(ctx context.Context, params *GetBucketLifecycleConfigurationInput, optFns ...func(*Options)) (*GetBucketLifecycleConfigurationOutput, error)
func (*Client) GetBucketObjectVersions ¶
func (c *Client) GetBucketObjectVersions(ctx context.Context, params *GetBucketObjectVersionsInput, optFns ...func(*Options)) (*GetBucketObjectVersionsOutput, error)
func (*Client) GetBucketPolicy ¶
func (c *Client) GetBucketPolicy(ctx context.Context, params *GetBucketPolicyInput, optFns ...func(*Options)) (*GetBucketPolicyOutput, error)
func (*Client) GetBucketTagging ¶
func (c *Client) GetBucketTagging(ctx context.Context, params *GetBucketTaggingInput, optFns ...func(*Options)) (*GetBucketTaggingOutput, error)
func (*Client) GetBucketVersion2 ¶
func (c *Client) GetBucketVersion2(ctx context.Context, params *GetBucketVersion2Input, optFns ...func(*Options)) (*GetBucketVersion2Output, error)
func (*Client) GetBucketVersioning ¶
func (c *Client) GetBucketVersioning(ctx context.Context, params *GetBucketVersioningInput, optFns ...func(*Options)) (*GetBucketVersioningOutput, error)
func (*Client) GetObject ¶
func (c *Client) GetObject(ctx context.Context, params *GetObjectInput, optFns ...func(*Options)) (*GetObjectOutput, error)
func (*Client) GetObjectACL ¶
func (c *Client) GetObjectACL(ctx context.Context, params *GetObjectACLInput, optFns ...func(*Options)) (*GetObjectACLOutput, error)
func (*Client) GetObjectTagging ¶
func (c *Client) GetObjectTagging(ctx context.Context, params *GetObjectTaggingInput, optFns ...func(*Options)) (*GetObjectTaggingOutput, error)
func (*Client) GetService ¶
func (c *Client) GetService(ctx context.Context, params *GetServiceInput, optFns ...func(*Options)) (*GetServiceOutput, error)
func (*Client) HeadBucket ¶
func (c *Client) HeadBucket(ctx context.Context, params *HeadBucketInput, optFns ...func(*Options)) (*HeadBucketOutput, error)
func (*Client) HeadObject ¶
func (c *Client) HeadObject(ctx context.Context, params *HeadObjectInput, optFns ...func(*Options)) (*HeadObjectOutput, error)
func (*Client) InitiateMultipartUpload ¶
func (c *Client) InitiateMultipartUpload(ctx context.Context, params *InitiateMultipartUploadInput, optFns ...func(*Options)) (*InitiateMultipartUploadOutput, error)
func (*Client) ListMultipartUploads ¶
func (c *Client) ListMultipartUploads(ctx context.Context, params *ListMultipartUploadsInput, optFns ...func(*Options)) (*ListMultipartUploadsOutput, error)
func (*Client) ListParts ¶
func (c *Client) ListParts(ctx context.Context, params *ListPartsInput, optFns ...func(*Options)) (*ListPartsOutput, error)
func (*Client) PutBucket ¶
func (c *Client) PutBucket(ctx context.Context, params *PutBucketInput, optFns ...func(*Options)) (*PutBucketOutput, error)
func (*Client) PutBucketConsistency ¶
func (c *Client) PutBucketConsistency(ctx context.Context, params *PutBucketConsistencyInput, optFns ...func(*Options)) (*PutBucketConsistencyOutput, error)
func (*Client) PutBucketCors ¶
func (c *Client) PutBucketCors(ctx context.Context, params *PutBucketCorsInput, optFns ...func(*Options)) (*PutBucketCorsOutput, error)
func (*Client) PutBucketLifecycleConfiguration ¶
func (c *Client) PutBucketLifecycleConfiguration(ctx context.Context, params *PutBucketLifecycleConfigurationInput, optFns ...func(*Options)) (*PutBucketLifecycleConfigurationOutput, error)
func (*Client) PutBucketPolicy ¶
func (c *Client) PutBucketPolicy(ctx context.Context, params *PutBucketPolicyInput, optFns ...func(*Options)) (*PutBucketPolicyOutput, error)
func (*Client) PutBucketTagging ¶
func (c *Client) PutBucketTagging(ctx context.Context, params *PutBucketTaggingInput, optFns ...func(*Options)) (*PutBucketTaggingOutput, error)
func (*Client) PutBucketVersioning ¶
func (c *Client) PutBucketVersioning(ctx context.Context, params *PutBucketVersioningInput, optFns ...func(*Options)) (*PutBucketVersioningOutput, error)
func (*Client) PutObject ¶
func (c *Client) PutObject(ctx context.Context, params *PutObjectInput, optFns ...func(*Options)) (*PutObjectOutput, error)
func (*Client) PutObjectCopy ¶
func (c *Client) PutObjectCopy(ctx context.Context, params *PutObjectCopyInput, optFns ...func(*Options)) (*PutObjectCopyOutput, error)
func (*Client) PutObjectTagging ¶
func (c *Client) PutObjectTagging(ctx context.Context, params *PutObjectTaggingInput, optFns ...func(*Options)) (*PutObjectTaggingOutput, error)
func (*Client) UploadPart ¶
func (c *Client) UploadPart(ctx context.Context, params *UploadPartInput, optFns ...func(*Options)) (*UploadPartOutput, error)
func (*Client) UploadPartCopy ¶
func (c *Client) UploadPartCopy(ctx context.Context, params *UploadPartCopyInput, optFns ...func(*Options)) (*UploadPartCopyOutput, error)
type CompleteMultipartUploadInput ¶
type CompleteMultipartUploadInput struct { // This member is required. Bucket *string // This member is required. CompleteMultipartUpload *types.RequestCompleteMultipartUpload // This member is required. Object *string // This member is required. UploadId *string // contains filtered or unexported fields }
type CompleteMultipartUploadOutput ¶
type CompleteMultipartUploadOutput struct { Bucket *string ContentType *string ETag *string Key *string Location *string XAmzExpiration *string XAmzServerSideEncryption *string XAmzServerSideEncryptionAwsKmsKeyId *string XAmzServerSideEncryptionCustomerAlgorithm *string XAmzVersionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteBucketCorsInput ¶
type DeleteBucketCorsInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type DeleteBucketCorsOutput ¶
type DeleteBucketCorsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteBucketInput ¶
type DeleteBucketInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type DeleteBucketLifecycleInput ¶
type DeleteBucketLifecycleInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type DeleteBucketLifecycleOutput ¶
type DeleteBucketLifecycleOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteBucketOutput ¶
type DeleteBucketOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteBucketPolicyInput ¶
type DeleteBucketPolicyInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type DeleteBucketPolicyOutput ¶
type DeleteBucketPolicyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteBucketTaggingInput ¶
type DeleteBucketTaggingInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type DeleteBucketTaggingOutput ¶
type DeleteBucketTaggingOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteMultipleObjectsInput ¶
type DeleteMultipleObjectsInput struct { // This member is required. Bucket *string // This member is required. ContentMd5 *string // This member is required. Delete *types.RequestDelete // contains filtered or unexported fields }
type DeleteMultipleObjectsOutput ¶
type DeleteMultipleObjectsOutput struct { ContentType *string Deleted []types.Deleted // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteObjectInput ¶
type DeleteObjectOutput ¶
type DeleteObjectOutput struct { XAmzVersionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type DeleteObjectTaggingOutput ¶
type DeleteObjectTaggingOutput struct { XAmzVersionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointParameters ¶ added in v1.22.1
type EndpointParameters struct { }
EndpointParameters provides the parameters that influence how endpoints are resolved.
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶ added in v1.22.1
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶ added in v1.22.1
func NewDefaultEndpointResolverV2() EndpointResolverV2
type GetBucketACLInput ¶
type GetBucketACLInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type GetBucketACLOutput ¶
type GetBucketACLOutput struct { AccessControlList []types.AccessControlListOfGetBucketACL ContentType *string Owner *types.Owner // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetBucketConsistencyInput ¶
type GetBucketConsistencyInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type GetBucketConsistencyOutput ¶
type GetBucketConsistencyOutput struct { Consistency *string ContentType *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetBucketCorsInput ¶
type GetBucketCorsInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type GetBucketCorsOutput ¶
type GetBucketCorsOutput struct { CORSRule []types.CORSRule ContentType *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetBucketInput ¶
type GetBucketLifecycleConfigurationInput ¶
type GetBucketLifecycleConfigurationInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type GetBucketLifecycleConfigurationOutput ¶
type GetBucketLifecycleConfigurationOutput struct { Rule *types.Rule // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetBucketObjectVersionsOutput ¶
type GetBucketObjectVersionsOutput struct { ContentType *string IsTruncated *bool KeyMarker *string MaxKeys *string Name *string Prefix *string Version []types.Version VersionIdMarker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetBucketOutput ¶
type GetBucketOutput struct { CommonPrefixes *string ContentType *string Contents []types.Contents Delimiter *string EncodingType *string IsTruncated *bool Marker *string MaxKeys *string Name *string NextMarker *string Prefix *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetBucketPolicyInput ¶
type GetBucketPolicyInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type GetBucketPolicyOutput ¶
type GetBucketPolicyOutput struct { ContentType *string Policy *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetBucketTaggingInput ¶
type GetBucketTaggingInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type GetBucketTaggingOutput ¶
type GetBucketTaggingOutput struct { ContentType *string TagSet []types.TagSetOfGetBucketTagging // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetBucketVersion2Input ¶
type GetBucketVersion2Input struct { // This member is required. Bucket *string // This member is required. ListType *string ContinuationToken *string Delimiter *string EncodingType *string FetchOwner *string Marker *string MaxKeys *string Prefix *string StartAfter *string // contains filtered or unexported fields }
type GetBucketVersion2Output ¶
type GetBucketVersion2Output struct { CommonPrefixes *string ContentType *string Contents []types.Contents ContinuationToken *string Delimiter *string EncodingType *string IsTruncated *bool KeyCount *string MaxKeys *string Name *string NextContinuationToken *string Prefix *string StartAfter *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetBucketVersioningInput ¶
type GetBucketVersioningInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type GetBucketVersioningOutput ¶
type GetBucketVersioningOutput struct { ContentType *string Status *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetObjectACLInput ¶
type GetObjectACLOutput ¶
type GetObjectACLOutput struct { AccessControlList *types.AccessControlList ContentType *string Owner *types.Owner // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetObjectInput ¶
type GetObjectInput struct { // This member is required. Bucket *string // This member is required. Object *string PartNumber *string Range *string ResponseContentDisposition *string ResponseContentEncoding *string ResponseContentType *string VersionId *string XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfGetObjectRequest XAmzServerSideEncryptionCustomerKey *string XAmzServerSideEncryptionCustomerKeyMd5 *string // contains filtered or unexported fields }
type GetObjectOutput ¶
type GetObjectOutput struct { AcceptRanges *string Body []byte ContentRange *string ContentType *string ETag *string LastModified *string XAmzExpiration *string XAmzMpPartsCount *string XAmzServerSideEncryption *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetObjectTaggingInput ¶
type GetObjectTaggingOutput ¶
type GetServiceInput ¶
type GetServiceInput struct {
// contains filtered or unexported fields
}
type GetServiceOutput ¶
type HTTPSignerV4 ¶
type HeadBucketInput ¶
type HeadBucketInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type HeadBucketOutput ¶
type HeadBucketOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HeadObjectInput ¶
type HeadObjectInput struct { // This member is required. Bucket *string // This member is required. Object *string ConsistencyControl *string PartNumber *string VersionId *string XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfHeadObjectRequest XAmzServerSideEncryptionCustomerKey *string XAmzServerSideEncryptionCustomerKeyMd5 *string // contains filtered or unexported fields }
type HeadObjectOutput ¶
type HeadObjectOutput struct { AcceptRanges *string ContentType *string ETag *string LastModified *string XAmzExpiration *string XAmzMpPartsCount *string XAmzServerSideEncryption *string XAmzVersionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type InitiateMultipartUploadInput ¶
type InitiateMultipartUploadInput struct { // This member is required. Bucket *string // This member is required. Object *string ContentDisposition *string ContentEncoding *string ContentType *string XAmzMeta *string XAmzServerSideEncryption *string XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfInitiateMultipartUploadRequest XAmzServerSideEncryptionCustomerKey *string XAmzServerSideEncryptionCustomerKeyMd5 *string XAmzStorageClass types.XAmzStorageClassOfInitiateMultipartUploadRequest XAmzTagging types.XAmzTaggingOfInitiateMultipartUploadRequest // contains filtered or unexported fields }
type ListMultipartUploadsOutput ¶
type ListMultipartUploadsOutput struct { Bucket *string ContentType *string IsTruncated *bool KeyMarker *string MaxUploads *int32 NextKeyMarker *string NextUploadIdMarker *string Upload []types.Upload UploadIdMarker *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListPartsInput ¶
type ListPartsOutput ¶
type ListPartsOutput struct { Bucket *string ContentType *string EncodingType *string Initiator *types.Initiator IsTruncated *bool Key *string MaxParts *int32 NextPartNumberMarker *int32 Owner *types.Owner Part []types.Part PartNumberMarker *int32 StorageClass *string UploadId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // Allows you to disable S3 Multi-Region access points feature. DisableMultiRegionAccessPoints bool // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The logger writer interface to write logging messages to. Logger logging.Logger // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. When creating a new API Clients this // member will only be used if the Retryer Options member is nil. This value will // be ignored if Retryer is not nil. If specified in an operation call's functional // options with a value that is different than the constructed client's Options, // the Client's Retryer will be wrapped to use the operation's specific // RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. When creating a new API Clients this // member will only be used if the Retryer Options member is nil. This value will // be ignored if Retryer is not nil. Currently does not support per operation call // overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // Allows you to enable arn region support for the service. UseARNRegion bool // Allows you to enable S3 Accelerate feature. All operations compatible with S3 // Accelerate will use the accelerate endpoint for requests. Requests not // compatible will fall back to normal S3 requests. The bucket must be enabled for // accelerate to be used with S3 client with accelerate enabled. If the bucket is // not enabled for accelerate an error will be returned. The bucket name must be // DNS compatible to work with accelerate. UseAccelerate bool // Allows you to enable dual-stack endpoint support for the service. // // Deprecated: Set dual-stack by setting UseDualStackEndpoint on // EndpointResolverOptions. When EndpointResolverOptions' UseDualStackEndpoint // field is set it overrides this field value. UseDualstack bool // Allows you to enable the client to use path-style addressing, i.e., // https://s3.amazonaws.com/BUCKET/KEY . By default, the S3 client will use virtual // hosted bucket addressing when possible( https://BUCKET.s3.amazonaws.com/KEY ). UsePathStyle bool // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // contains filtered or unexported fields }
type PutBucketConsistencyInput ¶
type PutBucketConsistencyInput struct { // This member is required. Bucket *string // This member is required. XNtapSgConsistency types.XNtapSgConsistencyOfPutBucketConsistencyRequest // contains filtered or unexported fields }
type PutBucketConsistencyOutput ¶
type PutBucketConsistencyOutput struct { ComtentType *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutBucketCorsInput ¶
type PutBucketCorsInput struct { // This member is required. Bucket *string // This member is required. CORSConfiguration *types.RequestCORSConfiguration // contains filtered or unexported fields }
type PutBucketCorsOutput ¶
type PutBucketCorsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutBucketInput ¶
type PutBucketInput struct { // This member is required. Bucket *string // contains filtered or unexported fields }
type PutBucketLifecycleConfigurationInput ¶
type PutBucketLifecycleConfigurationInput struct { // This member is required. Bucket *string // This member is required. LifecycleConfiguration *types.RequestLifecycleConfiguration // contains filtered or unexported fields }
type PutBucketLifecycleConfigurationOutput ¶
type PutBucketLifecycleConfigurationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutBucketOutput ¶
type PutBucketOutput struct { Location *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutBucketPolicyInput ¶
type PutBucketPolicyOutput ¶
type PutBucketPolicyOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutBucketTaggingInput ¶
type PutBucketTaggingInput struct { // This member is required. Bucket *string ContentMd5 *string Tagging *types.RequestTaggingOfPutBucketTagging // contains filtered or unexported fields }
type PutBucketTaggingOutput ¶
type PutBucketTaggingOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutBucketVersioningInput ¶
type PutBucketVersioningInput struct { // This member is required. Bucket *string ContentMd5 *string VersioningConfiguration *types.RequestVersioningConfiguration // contains filtered or unexported fields }
type PutBucketVersioningOutput ¶
type PutBucketVersioningOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutObjectCopyInput ¶
type PutObjectCopyInput struct { // This member is required. Bucket *string // This member is required. Object *string // This member is required. XAmzCopySource *string XAmzCopySourceIfMatch *string XAmzCopySourceIfModifiedSince *string XAmzCopySourceIfNoneMatch *string XAmzCopySourceIfUnmodifiedSince *string XAmzCopySourceServerSideEncryptionCustomerAlgorithm types.XAmzCopySourceServerSideEncryptionCustomerAlgorithmOfPutObjectCopyRequest XAmzCopySourceServerSideEncryptionCustomerKey *string XAmzCopySourceServerSideEncryptionCustomerKeyMd5 *string XAmzMetadataDirective types.XAmzMetadataDirectiveOfPutObjectCopyRequest XAmzServerSideEncryption *string XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfPutObjectCopyRequest XAmzServerSideEncryptionCustomerKey *string XAmzServerSideEncryptionCustomerKeyMd5 *string XAmzStorageClass types.XAmzStorageClassOfPutObjectCopyRequest XAmzTagging *string XAmzTaggingDirective types.XAmzTaggingDirectiveOfPutObjectCopyRequest // contains filtered or unexported fields }
type PutObjectCopyOutput ¶
type PutObjectInput ¶
type PutObjectInput struct { // This member is required. Bucket *string // This member is required. Object *string Body []byte ContentDisposition *string ContentEncoding types.ContentEncodingOfPutObjectRequest ContentMd5 *string ContentType *string XAmzMeta *string XAmzServerSideEncryption types.XAmzServerSideEncryptionOfPutObjectRequest XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfPutObjectRequest XAmzServerSideEncryptionCustomerKey *string XAmzServerSideEncryptionCustomerKeyMd5 *string XAmzStorageClass types.XAmzStorageClassOfPutObjectRequest XAmzTagging *string // contains filtered or unexported fields }
type PutObjectOutput ¶
type PutObjectOutput struct { ETag *string XAmzVersionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type PutObjectTaggingInput ¶
type PutObjectTaggingOutput ¶
type PutObjectTaggingOutput struct { XAmzVersionId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type ResponseError ¶
ResponseError provides the HTTP centric error type wrapping the underlying error with the HTTP response value and the deserialized RequestID.
type UploadPartCopyInput ¶
type UploadPartCopyInput struct { // This member is required. Bucket *string // This member is required. Object *string // This member is required. PartNumber *string // This member is required. UploadId *string // This member is required. XAmzCopySource *string XAmzCopySourceIfMatch *string XAmzCopySourceIfModifiedSince *string XAmzCopySourceIfNoneMatch *string XAmzCopySourceIfUnmodifiedSince *string XAmzCopySourceRange *string XAmzCopySourceServerSideEncryptionCustomerAlgorithm types.XAmzCopySourceServerSideEncryptionCustomerAlgorithmOfUploadPartCopyRequest XAmzCopySourceServerSideEncryptionCustomerKey *string XAmzCopySourceServerSideEncryptionCustomerKeyMd5 *string XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfUploadPartCopyRequest XAmzServerSideEncryptionCustomerKey *string XAmzServerSideEncryptionCustomerKeyMd5 *string // contains filtered or unexported fields }
type UploadPartCopyOutput ¶
type UploadPartInput ¶
type UploadPartInput struct { // This member is required. Bucket *string // This member is required. Object *string // This member is required. PartNumber *string // This member is required. UploadId *string Body []byte ContentMd5 *string XAmzServerSideEncryptionCustomerAlgorithm types.XAmzServerSideEncryptionCustomerAlgorithmOfUploadPartRequest XAmzServerSideEncryptionCustomerKey *string XAmzServerSideEncryptionCustomerKeyMd5 *string // contains filtered or unexported fields }
type UploadPartOutput ¶
type UploadPartOutput struct { ETag *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files ¶
- api_client.go
- api_op_AbortMultipartUpload.go
- api_op_CompleteMultipartUpload.go
- api_op_DeleteBucket.go
- api_op_DeleteBucketCors.go
- api_op_DeleteBucketLifecycle.go
- api_op_DeleteBucketPolicy.go
- api_op_DeleteBucketTagging.go
- api_op_DeleteMultipleObjects.go
- api_op_DeleteObject.go
- api_op_DeleteObjectTagging.go
- api_op_GetBucket.go
- api_op_GetBucketACL.go
- api_op_GetBucketConsistency.go
- api_op_GetBucketCors.go
- api_op_GetBucketLifecycleConfiguration.go
- api_op_GetBucketObjectVersions.go
- api_op_GetBucketPolicy.go
- api_op_GetBucketTagging.go
- api_op_GetBucketVersion2.go
- api_op_GetBucketVersioning.go
- api_op_GetObject.go
- api_op_GetObjectACL.go
- api_op_GetObjectTagging.go
- api_op_GetService.go
- api_op_HeadBucket.go
- api_op_HeadObject.go
- api_op_InitiateMultipartUpload.go
- api_op_ListMultipartUploads.go
- api_op_ListParts.go
- api_op_PutBucket.go
- api_op_PutBucketConsistency.go
- api_op_PutBucketCors.go
- api_op_PutBucketLifecycleConfiguration.go
- api_op_PutBucketPolicy.go
- api_op_PutBucketTagging.go
- api_op_PutBucketVersioning.go
- api_op_PutObject.go
- api_op_PutObjectCopy.go
- api_op_PutObjectTagging.go
- api_op_UploadPart.go
- api_op_UploadPartCopy.go
- deserializers.go
- doc.go
- endpoints.go
- serializers.go
- validators.go