var NormalizeBucketLocationHandler = request.NamedHandler{ Name: "awssdk.s3.NormalizeBucketLocation", Fn: func(req *request.Request) { if req.Error != nil { return } out := req.Data.(*GetBucketLocationOutput) loc := NormalizeBucketLocation(aws.StringValue(out.LocationConstraint)) out.LocationConstraint = aws.String(loc) }, }
NormalizeBucketLocationHandler is a request handler which will update the GetBucketLocation's result LocationConstraint value to always be a region ID.
Replaces empty string with "us-east-1", and "EU" with "eu-west-1".
See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html for more information on the values that can be returned.
req, result := svc.GetBucketLocationRequest(&s3.GetBucketLocationInput{ Bucket: aws.String(bucket), }) req.Handlers.Unmarshal.PushBackNamed(NormalizeBucketLocationHandler) err := req.Send()
func NormalizeBucketLocation(loc string) string
NormalizeBucketLocation is a utility function which will update the passed in value to always be a region ID. Generally this would be used with GetBucketLocation API operation.
Replaces empty string with "us-east-1", and "EU" with "eu-west-1".
See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html for more information on the values that can be returned.
func WithNormalizeBucketLocation(r *request.Request)
WithNormalizeBucketLocation is a request option which will update the GetBucketLocation's result LocationConstraint value to always be a region ID.
Replaces empty string with "us-east-1", and "EU" with "eu-west-1".
See http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html for more information on the values that can be returned.
result, err := svc.GetBucketLocationWithContext(ctx, &s3.GetBucketLocationInput{ Bucket: aws.String(bucket), }, s3.WithNormalizeBucketLocation, )
type AbortIncompleteMultipartUpload struct { // Specifies the number of days after which Amazon S3 aborts an incomplete multipart // upload. DaysAfterInitiation *int64 `type:"integer"` // contains filtered or unexported fields }
Specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload. For more information, see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) in the Amazon Simple Storage Service Developer Guide.
func (s AbortIncompleteMultipartUpload) GoString() string
GoString returns the string representation
func (s *AbortIncompleteMultipartUpload) SetDaysAfterInitiation(v int64) *AbortIncompleteMultipartUpload
SetDaysAfterInitiation sets the DaysAfterInitiation field's value.
func (s AbortIncompleteMultipartUpload) String() string
String returns the string representation
type AbortMultipartUploadInput struct { // The bucket to which the upload was taking place. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Key of the object for which the multipart upload was initiated. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // Upload ID that identifies the multipart upload. // // UploadId is a required field UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"` // contains filtered or unexported fields }
func (s AbortMultipartUploadInput) GoString() string
GoString returns the string representation
func (s *AbortMultipartUploadInput) SetBucket(v string) *AbortMultipartUploadInput
SetBucket sets the Bucket field's value.
func (s *AbortMultipartUploadInput) SetKey(v string) *AbortMultipartUploadInput
SetKey sets the Key field's value.
func (s *AbortMultipartUploadInput) SetRequestPayer(v string) *AbortMultipartUploadInput
SetRequestPayer sets the RequestPayer field's value.
func (s *AbortMultipartUploadInput) SetUploadId(v string) *AbortMultipartUploadInput
SetUploadId sets the UploadId field's value.
func (s AbortMultipartUploadInput) String() string
String returns the string representation
func (s *AbortMultipartUploadInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AbortMultipartUploadOutput struct { // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` // contains filtered or unexported fields }
func (s AbortMultipartUploadOutput) GoString() string
GoString returns the string representation
func (s *AbortMultipartUploadOutput) SetRequestCharged(v string) *AbortMultipartUploadOutput
SetRequestCharged sets the RequestCharged field's value.
func (s AbortMultipartUploadOutput) String() string
String returns the string representation
type AccelerateConfiguration struct { // Specifies the transfer acceleration status of the bucket. Status *string `type:"string" enum:"BucketAccelerateStatus"` // contains filtered or unexported fields }
Configures the transfer acceleration state for an Amazon S3 bucket. For more information, see Amazon S3 Transfer Acceleration (https://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html) in the Amazon Simple Storage Service Developer Guide.
func (s AccelerateConfiguration) GoString() string
GoString returns the string representation
func (s *AccelerateConfiguration) SetStatus(v string) *AccelerateConfiguration
SetStatus sets the Status field's value.
func (s AccelerateConfiguration) String() string
String returns the string representation
type AccessControlPolicy struct { // A list of grants. Grants []*Grant `locationName:"AccessControlList" locationNameList:"Grant" type:"list"` // Container for the bucket owner's display name and ID. Owner *Owner `type:"structure"` // contains filtered or unexported fields }
Contains the elements that set the ACL permissions for an object per grantee.
func (s AccessControlPolicy) GoString() string
GoString returns the string representation
func (s *AccessControlPolicy) SetGrants(v []*Grant) *AccessControlPolicy
SetGrants sets the Grants field's value.
func (s *AccessControlPolicy) SetOwner(v *Owner) *AccessControlPolicy
SetOwner sets the Owner field's value.
func (s AccessControlPolicy) String() string
String returns the string representation
func (s *AccessControlPolicy) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AccessControlTranslation struct { // Specifies the replica ownership. For default and valid values, see PUT bucket // replication (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) // in the Amazon Simple Storage Service API Reference. // // Owner is a required field Owner *string `type:"string" required:"true" enum:"OwnerOverride"` // contains filtered or unexported fields }
A container for information about access control for replicas.
func (s AccessControlTranslation) GoString() string
GoString returns the string representation
func (s *AccessControlTranslation) SetOwner(v string) *AccessControlTranslation
SetOwner sets the Owner field's value.
func (s AccessControlTranslation) String() string
String returns the string representation
func (s *AccessControlTranslation) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AnalyticsAndOperator struct { // The prefix to use when evaluating an AND predicate: The prefix that an object // must have to be included in the metrics results. Prefix *string `type:"string"` // The list of tags to use when evaluating an AND predicate. Tags []*Tag `locationName:"Tag" locationNameList:"Tag" type:"list" flattened:"true"` // contains filtered or unexported fields }
A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. The operator must have at least two predicates in any combination, and an object must match all of the predicates for the filter to apply.
func (s AnalyticsAndOperator) GoString() string
GoString returns the string representation
func (s *AnalyticsAndOperator) SetPrefix(v string) *AnalyticsAndOperator
SetPrefix sets the Prefix field's value.
func (s *AnalyticsAndOperator) SetTags(v []*Tag) *AnalyticsAndOperator
SetTags sets the Tags field's value.
func (s AnalyticsAndOperator) String() string
String returns the string representation
func (s *AnalyticsAndOperator) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AnalyticsConfiguration struct { // The filter used to describe a set of objects for analyses. A filter must // have exactly one prefix, one tag, or one conjunction (AnalyticsAndOperator). // If no filter is provided, all objects will be considered in any analysis. Filter *AnalyticsFilter `type:"structure"` // The ID that identifies the analytics configuration. // // Id is a required field Id *string `type:"string" required:"true"` // Contains data related to access patterns to be collected and made available // to analyze the tradeoffs between different storage classes. // // StorageClassAnalysis is a required field StorageClassAnalysis *StorageClassAnalysis `type:"structure" required:"true"` // contains filtered or unexported fields }
Specifies the configuration and any analyses for the analytics filter of an Amazon S3 bucket.
func (s AnalyticsConfiguration) GoString() string
GoString returns the string representation
func (s *AnalyticsConfiguration) SetFilter(v *AnalyticsFilter) *AnalyticsConfiguration
SetFilter sets the Filter field's value.
func (s *AnalyticsConfiguration) SetId(v string) *AnalyticsConfiguration
SetId sets the Id field's value.
func (s *AnalyticsConfiguration) SetStorageClassAnalysis(v *StorageClassAnalysis) *AnalyticsConfiguration
SetStorageClassAnalysis sets the StorageClassAnalysis field's value.
func (s AnalyticsConfiguration) String() string
String returns the string representation
func (s *AnalyticsConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AnalyticsExportDestination struct { // A destination signifying output to an S3 bucket. // // S3BucketDestination is a required field S3BucketDestination *AnalyticsS3BucketDestination `type:"structure" required:"true"` // contains filtered or unexported fields }
Where to publish the analytics results.
func (s AnalyticsExportDestination) GoString() string
GoString returns the string representation
func (s *AnalyticsExportDestination) SetS3BucketDestination(v *AnalyticsS3BucketDestination) *AnalyticsExportDestination
SetS3BucketDestination sets the S3BucketDestination field's value.
func (s AnalyticsExportDestination) String() string
String returns the string representation
func (s *AnalyticsExportDestination) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AnalyticsFilter struct { // A conjunction (logical AND) of predicates, which is used in evaluating an // analytics filter. The operator must have at least two predicates. And *AnalyticsAndOperator `type:"structure"` // The prefix to use when evaluating an analytics filter. Prefix *string `type:"string"` // The tag to use when evaluating an analytics filter. Tag *Tag `type:"structure"` // contains filtered or unexported fields }
The filter used to describe a set of objects for analyses. A filter must have exactly one prefix, one tag, or one conjunction (AnalyticsAndOperator). If no filter is provided, all objects will be considered in any analysis.
func (s AnalyticsFilter) GoString() string
GoString returns the string representation
func (s *AnalyticsFilter) SetAnd(v *AnalyticsAndOperator) *AnalyticsFilter
SetAnd sets the And field's value.
func (s *AnalyticsFilter) SetPrefix(v string) *AnalyticsFilter
SetPrefix sets the Prefix field's value.
func (s *AnalyticsFilter) SetTag(v *Tag) *AnalyticsFilter
SetTag sets the Tag field's value.
func (s AnalyticsFilter) String() string
String returns the string representation
func (s *AnalyticsFilter) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type AnalyticsS3BucketDestination struct { // The Amazon Resource Name (ARN) of the bucket to which data is exported. // // Bucket is a required field Bucket *string `type:"string" required:"true"` // The account ID that owns the destination bucket. If no account ID is provided, // the owner will not be validated prior to exporting data. BucketAccountId *string `type:"string"` // Specifies the file format used when exporting data to Amazon S3. // // Format is a required field Format *string `type:"string" required:"true" enum:"AnalyticsS3ExportFileFormat"` // The prefix to use when exporting data. The prefix is prepended to all results. Prefix *string `type:"string"` // contains filtered or unexported fields }
Contains information about where to publish the analytics results.
func (s AnalyticsS3BucketDestination) GoString() string
GoString returns the string representation
func (s *AnalyticsS3BucketDestination) SetBucket(v string) *AnalyticsS3BucketDestination
SetBucket sets the Bucket field's value.
func (s *AnalyticsS3BucketDestination) SetBucketAccountId(v string) *AnalyticsS3BucketDestination
SetBucketAccountId sets the BucketAccountId field's value.
func (s *AnalyticsS3BucketDestination) SetFormat(v string) *AnalyticsS3BucketDestination
SetFormat sets the Format field's value.
func (s *AnalyticsS3BucketDestination) SetPrefix(v string) *AnalyticsS3BucketDestination
SetPrefix sets the Prefix field's value.
func (s AnalyticsS3BucketDestination) String() string
String returns the string representation
func (s *AnalyticsS3BucketDestination) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type Bucket struct { // Date the bucket was created. CreationDate *time.Time `type:"timestamp"` // The name of the bucket. Name *string `type:"string"` // contains filtered or unexported fields }
In terms of implementation, a Bucket is a resource. An Amazon S3 bucket name is globally unique, and the namespace is shared by all AWS accounts.
func (s Bucket) GoString() string
GoString returns the string representation
func (s *Bucket) SetCreationDate(v time.Time) *Bucket
SetCreationDate sets the CreationDate field's value.
func (s *Bucket) SetName(v string) *Bucket
SetName sets the Name field's value.
func (s Bucket) String() string
String returns the string representation
type BucketLifecycleConfiguration struct { // A lifecycle rule for individual objects in an Amazon S3 bucket. // // Rules is a required field Rules []*LifecycleRule `locationName:"Rule" type:"list" flattened:"true" required:"true"` // contains filtered or unexported fields }
Specifies the lifecycle configuration for objects in an Amazon S3 bucket. For more information, see Object Lifecycle Management (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html) in the Amazon Simple Storage Service Developer Guide.
func (s BucketLifecycleConfiguration) GoString() string
GoString returns the string representation
func (s *BucketLifecycleConfiguration) SetRules(v []*LifecycleRule) *BucketLifecycleConfiguration
SetRules sets the Rules field's value.
func (s BucketLifecycleConfiguration) String() string
String returns the string representation
func (s *BucketLifecycleConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type BucketLoggingStatus struct { // Describes where logs are stored and the prefix that Amazon S3 assigns to // all log object keys for a bucket. For more information, see PUT Bucket logging // (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlogging.html) // in the Amazon Simple Storage Service API Reference. LoggingEnabled *LoggingEnabled `type:"structure"` // contains filtered or unexported fields }
Container for logging status information.
func (s BucketLoggingStatus) GoString() string
GoString returns the string representation
func (s *BucketLoggingStatus) SetLoggingEnabled(v *LoggingEnabled) *BucketLoggingStatus
SetLoggingEnabled sets the LoggingEnabled field's value.
func (s BucketLoggingStatus) String() string
String returns the string representation
func (s *BucketLoggingStatus) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CORSConfiguration struct { // A set of origins and methods (cross-origin access that you want to allow). // You can add up to 100 rules to the configuration. // // CORSRules is a required field CORSRules []*CORSRule `locationName:"CORSRule" type:"list" flattened:"true" required:"true"` // contains filtered or unexported fields }
Describes the cross-origin access configuration for objects in an Amazon S3 bucket. For more information, see Enabling Cross-Origin Resource Sharing (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) in the Amazon Simple Storage Service Developer Guide.
func (s CORSConfiguration) GoString() string
GoString returns the string representation
func (s *CORSConfiguration) SetCORSRules(v []*CORSRule) *CORSConfiguration
SetCORSRules sets the CORSRules field's value.
func (s CORSConfiguration) String() string
String returns the string representation
func (s *CORSConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CORSRule struct { // Headers that are specified in the Access-Control-Request-Headers header. // These headers are allowed in a preflight OPTIONS request. In response to // any preflight OPTIONS request, Amazon S3 returns any requested headers that // are allowed. AllowedHeaders []*string `locationName:"AllowedHeader" type:"list" flattened:"true"` // An HTTP method that you allow the origin to execute. Valid values are GET, // PUT, HEAD, POST, and DELETE. // // AllowedMethods is a required field AllowedMethods []*string `locationName:"AllowedMethod" type:"list" flattened:"true" required:"true"` // One or more origins you want customers to be able to access the bucket from. // // AllowedOrigins is a required field AllowedOrigins []*string `locationName:"AllowedOrigin" type:"list" flattened:"true" required:"true"` // One or more headers in the response that you want customers to be able to // access from their applications (for example, from a JavaScript XMLHttpRequest // object). ExposeHeaders []*string `locationName:"ExposeHeader" type:"list" flattened:"true"` // The time in seconds that your browser is to cache the preflight response // for the specified resource. MaxAgeSeconds *int64 `type:"integer"` // contains filtered or unexported fields }
Specifies a cross-origin access rule for an Amazon S3 bucket.
func (s CORSRule) GoString() string
GoString returns the string representation
func (s *CORSRule) SetAllowedHeaders(v []*string) *CORSRule
SetAllowedHeaders sets the AllowedHeaders field's value.
func (s *CORSRule) SetAllowedMethods(v []*string) *CORSRule
SetAllowedMethods sets the AllowedMethods field's value.
func (s *CORSRule) SetAllowedOrigins(v []*string) *CORSRule
SetAllowedOrigins sets the AllowedOrigins field's value.
func (s *CORSRule) SetExposeHeaders(v []*string) *CORSRule
SetExposeHeaders sets the ExposeHeaders field's value.
func (s *CORSRule) SetMaxAgeSeconds(v int64) *CORSRule
SetMaxAgeSeconds sets the MaxAgeSeconds field's value.
func (s CORSRule) String() string
String returns the string representation
func (s *CORSRule) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CSVInput struct { // Specifies that CSV field values may contain quoted record delimiters and // such records should be allowed. Default value is FALSE. Setting this value // to TRUE may lower performance. AllowQuotedRecordDelimiter *bool `type:"boolean"` // A single character used to indicate that a row should be ignored when the // character is present at the start of that row. You can specify any character // to indicate a comment line. Comments *string `type:"string"` // A single character used to separate individual fields in a record. You can // specify an arbitrary delimiter. FieldDelimiter *string `type:"string"` // Describes the first line of input. Valid values are: // // * NONE: First line is not a header. // // * IGNORE: First line is a header, but you can't use the header values // to indicate the column in an expression. You can use column position (such // as _1, _2, …) to indicate the column (SELECT s._1 FROM OBJECT s). // // * Use: First line is a header, and you can use the header value to identify // a column in an expression (SELECT "name" FROM OBJECT). FileHeaderInfo *string `type:"string" enum:"FileHeaderInfo"` // A single character used for escaping when the field delimiter is part of // the value. For example, if the value is a, b, Amazon S3 wraps this field // value in quotation marks, as follows: " a , b ". // // Type: String // // Default: " // // Ancestors: CSV QuoteCharacter *string `type:"string"` // A single character used for escaping the quotation mark character inside // an already escaped value. For example, the value """ a , b """ is parsed // as " a , b ". QuoteEscapeCharacter *string `type:"string"` // A single character used to separate individual records in the input. Instead // of the default value, you can specify an arbitrary delimiter. RecordDelimiter *string `type:"string"` // contains filtered or unexported fields }
Describes how a uncompressed comma-separated values (CSV)-formatted input object is formatted.
func (s CSVInput) GoString() string
GoString returns the string representation
func (s *CSVInput) SetAllowQuotedRecordDelimiter(v bool) *CSVInput
SetAllowQuotedRecordDelimiter sets the AllowQuotedRecordDelimiter field's value.
func (s *CSVInput) SetComments(v string) *CSVInput
SetComments sets the Comments field's value.
func (s *CSVInput) SetFieldDelimiter(v string) *CSVInput
SetFieldDelimiter sets the FieldDelimiter field's value.
func (s *CSVInput) SetFileHeaderInfo(v string) *CSVInput
SetFileHeaderInfo sets the FileHeaderInfo field's value.
func (s *CSVInput) SetQuoteCharacter(v string) *CSVInput
SetQuoteCharacter sets the QuoteCharacter field's value.
func (s *CSVInput) SetQuoteEscapeCharacter(v string) *CSVInput
SetQuoteEscapeCharacter sets the QuoteEscapeCharacter field's value.
func (s *CSVInput) SetRecordDelimiter(v string) *CSVInput
SetRecordDelimiter sets the RecordDelimiter field's value.
func (s CSVInput) String() string
String returns the string representation
type CSVOutput struct { // The value used to separate individual fields in a record. You can specify // an arbitrary delimiter. FieldDelimiter *string `type:"string"` // A single character used for escaping when the field delimiter is part of // the value. For example, if the value is a, b, Amazon S3 wraps this field // value in quotation marks, as follows: " a , b ". QuoteCharacter *string `type:"string"` // The single character used for escaping the quote character inside an already // escaped value. QuoteEscapeCharacter *string `type:"string"` // Indicates whether to use quotation marks around output fields. // // * ALWAYS: Always use quotation marks for output fields. // // * ASNEEDED: Use quotation marks for output fields when needed. QuoteFields *string `type:"string" enum:"QuoteFields"` // A single character used to separate individual records in the output. Instead // of the default value, you can specify an arbitrary delimiter. RecordDelimiter *string `type:"string"` // contains filtered or unexported fields }
Describes how uncompressed comma-separated values (CSV)-formatted results are formatted.
func (s CSVOutput) GoString() string
GoString returns the string representation
func (s *CSVOutput) SetFieldDelimiter(v string) *CSVOutput
SetFieldDelimiter sets the FieldDelimiter field's value.
func (s *CSVOutput) SetQuoteCharacter(v string) *CSVOutput
SetQuoteCharacter sets the QuoteCharacter field's value.
func (s *CSVOutput) SetQuoteEscapeCharacter(v string) *CSVOutput
SetQuoteEscapeCharacter sets the QuoteEscapeCharacter field's value.
func (s *CSVOutput) SetQuoteFields(v string) *CSVOutput
SetQuoteFields sets the QuoteFields field's value.
func (s *CSVOutput) SetRecordDelimiter(v string) *CSVOutput
SetRecordDelimiter sets the RecordDelimiter field's value.
func (s CSVOutput) String() string
String returns the string representation
type CloudFunctionConfiguration struct { // Lambda cloud function ARN that Amazon S3 can invoke when it detects events // of the specified type. CloudFunction *string `type:"string"` // The bucket event for which to send notifications. // // Deprecated: Event has been deprecated Event *string `deprecated:"true" type:"string" enum:"Event"` // Bucket events for which to send notifications. Events []*string `locationName:"Event" type:"list" flattened:"true"` // An optional unique identifier for configurations in a notification configuration. // If you don't provide one, Amazon S3 will assign an ID. Id *string `type:"string"` // The role supporting the invocation of the lambda function InvocationRole *string `type:"string"` // contains filtered or unexported fields }
Container for specifying the AWS Lambda notification configuration.
func (s CloudFunctionConfiguration) GoString() string
GoString returns the string representation
func (s *CloudFunctionConfiguration) SetCloudFunction(v string) *CloudFunctionConfiguration
SetCloudFunction sets the CloudFunction field's value.
func (s *CloudFunctionConfiguration) SetEvent(v string) *CloudFunctionConfiguration
SetEvent sets the Event field's value.
func (s *CloudFunctionConfiguration) SetEvents(v []*string) *CloudFunctionConfiguration
SetEvents sets the Events field's value.
func (s *CloudFunctionConfiguration) SetId(v string) *CloudFunctionConfiguration
SetId sets the Id field's value.
func (s *CloudFunctionConfiguration) SetInvocationRole(v string) *CloudFunctionConfiguration
SetInvocationRole sets the InvocationRole field's value.
func (s CloudFunctionConfiguration) String() string
String returns the string representation
type CommonPrefix struct { // Container for the specified common prefix. Prefix *string `type:"string"` // contains filtered or unexported fields }
Container for all (if there are any) keys between Prefix and the next occurrence of the string specified by a delimiter. CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix. For example, if the prefix is notes/ and the delimiter is a slash (/) as in notes/summer/july, the common prefix is notes/summer/.
func (s CommonPrefix) GoString() string
GoString returns the string representation
func (s *CommonPrefix) SetPrefix(v string) *CommonPrefix
SetPrefix sets the Prefix field's value.
func (s CommonPrefix) String() string
String returns the string representation
type CompleteMultipartUploadInput struct { // Name of the bucket to which the multipart upload was initiated. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Object key for which the multipart upload was initiated. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // The container for the multipart upload request information. MultipartUpload *CompletedMultipartUpload `locationName:"CompleteMultipartUpload" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // ID for the initiated multipart upload. // // UploadId is a required field UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"` // contains filtered or unexported fields }
func (s CompleteMultipartUploadInput) GoString() string
GoString returns the string representation
func (s *CompleteMultipartUploadInput) SetBucket(v string) *CompleteMultipartUploadInput
SetBucket sets the Bucket field's value.
func (s *CompleteMultipartUploadInput) SetKey(v string) *CompleteMultipartUploadInput
SetKey sets the Key field's value.
func (s *CompleteMultipartUploadInput) SetMultipartUpload(v *CompletedMultipartUpload) *CompleteMultipartUploadInput
SetMultipartUpload sets the MultipartUpload field's value.
func (s *CompleteMultipartUploadInput) SetRequestPayer(v string) *CompleteMultipartUploadInput
SetRequestPayer sets the RequestPayer field's value.
func (s *CompleteMultipartUploadInput) SetUploadId(v string) *CompleteMultipartUploadInput
SetUploadId sets the UploadId field's value.
func (s CompleteMultipartUploadInput) String() string
String returns the string representation
func (s *CompleteMultipartUploadInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CompleteMultipartUploadOutput struct { // The name of the bucket that contains the newly created object. Bucket *string `type:"string"` // Entity tag that identifies the newly created object's data. Objects with // different object data will have different entity tags. The entity tag is // an opaque string. The entity tag may or may not be an MD5 digest of the object // data. If the entity tag is not an MD5 digest of the object data, it will // contain one or more nonhexadecimal characters and/or will consist of less // than 32 or more than 32 hexadecimal digits. ETag *string `type:"string"` // If the object expiration is configured, this will contain the expiration // date (expiry-date) and rule ID (rule-id). The value of rule-id is URL encoded. Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"` // The object key of the newly created object. Key *string `min:"1" type:"string"` // The URI that identifies the newly created object. Location *string `type:"string"` // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` // If present, specifies the ID of the AWS Key Management Service (KMS) customer // master key (CMK) that was used for the object. SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // If you specified server-side encryption either with an Amazon S3-managed // encryption key or an AWS KMS customer master key (CMK) in your initiate multipart // upload request, the response includes this header. It confirms the encryption // algorithm that Amazon S3 used to encrypt the object. ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"` // Version ID of the newly created object, in case the bucket has versioning // turned on. VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` // contains filtered or unexported fields }
func (s CompleteMultipartUploadOutput) GoString() string
GoString returns the string representation
func (s *CompleteMultipartUploadOutput) SetBucket(v string) *CompleteMultipartUploadOutput
SetBucket sets the Bucket field's value.
func (s *CompleteMultipartUploadOutput) SetETag(v string) *CompleteMultipartUploadOutput
SetETag sets the ETag field's value.
func (s *CompleteMultipartUploadOutput) SetExpiration(v string) *CompleteMultipartUploadOutput
SetExpiration sets the Expiration field's value.
func (s *CompleteMultipartUploadOutput) SetKey(v string) *CompleteMultipartUploadOutput
SetKey sets the Key field's value.
func (s *CompleteMultipartUploadOutput) SetLocation(v string) *CompleteMultipartUploadOutput
SetLocation sets the Location field's value.
func (s *CompleteMultipartUploadOutput) SetRequestCharged(v string) *CompleteMultipartUploadOutput
SetRequestCharged sets the RequestCharged field's value.
func (s *CompleteMultipartUploadOutput) SetSSEKMSKeyId(v string) *CompleteMultipartUploadOutput
SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
func (s *CompleteMultipartUploadOutput) SetServerSideEncryption(v string) *CompleteMultipartUploadOutput
SetServerSideEncryption sets the ServerSideEncryption field's value.
func (s *CompleteMultipartUploadOutput) SetVersionId(v string) *CompleteMultipartUploadOutput
SetVersionId sets the VersionId field's value.
func (s CompleteMultipartUploadOutput) String() string
String returns the string representation
type CompletedMultipartUpload struct { // Array of CompletedPart data types. Parts []*CompletedPart `locationName:"Part" type:"list" flattened:"true"` // contains filtered or unexported fields }
The container for the completed multipart upload details.
func (s CompletedMultipartUpload) GoString() string
GoString returns the string representation
func (s *CompletedMultipartUpload) SetParts(v []*CompletedPart) *CompletedMultipartUpload
SetParts sets the Parts field's value.
func (s CompletedMultipartUpload) String() string
String returns the string representation
type CompletedPart struct { // Entity tag returned when the part was uploaded. ETag *string `type:"string"` // Part number that identifies the part. This is a positive integer between // 1 and 10,000. PartNumber *int64 `type:"integer"` // contains filtered or unexported fields }
Details of the parts that were uploaded.
func (s CompletedPart) GoString() string
GoString returns the string representation
func (s *CompletedPart) SetETag(v string) *CompletedPart
SetETag sets the ETag field's value.
func (s *CompletedPart) SetPartNumber(v int64) *CompletedPart
SetPartNumber sets the PartNumber field's value.
func (s CompletedPart) String() string
String returns the string representation
type Condition struct { // The HTTP error code when the redirect is applied. In the event of an error, // if the error code equals this value, then the specified redirect is applied. // Required when parent element Condition is specified and sibling KeyPrefixEquals // is not specified. If both are specified, then both must be true for the redirect // to be applied. HttpErrorCodeReturnedEquals *string `type:"string"` // The object key name prefix when the redirect is applied. For example, to // redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html. // To redirect request for all pages with the prefix docs/, the key prefix will // be /docs, which identifies all objects in the docs/ folder. Required when // the parent element Condition is specified and sibling HttpErrorCodeReturnedEquals // is not specified. If both conditions are specified, both must be true for // the redirect to be applied. KeyPrefixEquals *string `type:"string"` // contains filtered or unexported fields }
A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the /docs folder, redirect to the /documents folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.
func (s Condition) GoString() string
GoString returns the string representation
func (s *Condition) SetHttpErrorCodeReturnedEquals(v string) *Condition
SetHttpErrorCodeReturnedEquals sets the HttpErrorCodeReturnedEquals field's value.
func (s *Condition) SetKeyPrefixEquals(v string) *Condition
SetKeyPrefixEquals sets the KeyPrefixEquals field's value.
func (s Condition) String() string
String returns the string representation
type ContinuationEvent struct {
// contains filtered or unexported fields
}
func (s ContinuationEvent) GoString() string
GoString returns the string representation
func (s ContinuationEvent) String() string
String returns the string representation
func (s *ContinuationEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the ContinuationEvent value. This method is only used internally within the SDK's EventStream handling.
type CopyObjectInput struct { // The canned ACL to apply to the object. ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"` // The name of the destination bucket. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Specifies caching behavior along the request/reply chain. CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"` // Specifies presentational information for the object. ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"` // Specifies what content encodings have been applied to the object and thus // what decoding mechanisms must be applied to obtain the media-type referenced // by the Content-Type header field. ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"` // The language the content is in. ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"` // A standard MIME type describing the format of the object data. ContentType *string `location:"header" locationName:"Content-Type" type:"string"` // The name of the source bucket and key name of the source object, separated // by a slash (/). Must be URL-encoded. // // CopySource is a required field CopySource *string `location:"header" locationName:"x-amz-copy-source" type:"string" required:"true"` // Copies the object if its entity tag (ETag) matches the specified tag. CopySourceIfMatch *string `location:"header" locationName:"x-amz-copy-source-if-match" type:"string"` // Copies the object if it has been modified since the specified time. CopySourceIfModifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-modified-since" type:"timestamp"` // Copies the object if its entity tag (ETag) is different than the specified // ETag. CopySourceIfNoneMatch *string `location:"header" locationName:"x-amz-copy-source-if-none-match" type:"string"` // Copies the object if it hasn't been modified since the specified time. CopySourceIfUnmodifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-unmodified-since" type:"timestamp"` // Specifies the algorithm to use when decrypting the source object (e.g., AES256). CopySourceSSECustomerAlgorithm *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-algorithm" type:"string"` // Specifies the customer-provided encryption key for Amazon S3 to use to decrypt // the source object. The encryption key provided in this header must be one // that was used when the source object was created. CopySourceSSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption // key was transmitted without error. CopySourceSSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5" type:"string"` // The date and time at which the object is no longer cacheable. Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp"` // Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object. GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"` // Allows grantee to read the object data and its metadata. GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"` // Allows grantee to read the object ACL. GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"` // Allows grantee to write the ACL for the applicable object. GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"` // The key of the destination object. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // A map of metadata to store with the object in S3. Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"` // Specifies whether the metadata is copied from the source object or replaced // with metadata provided in the request. MetadataDirective *string `location:"header" locationName:"x-amz-metadata-directive" type:"string" enum:"MetadataDirective"` // Specifies whether you want to apply a Legal Hold to the copied object. ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"` // The Object Lock mode that you want to apply to the copied object. ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"` // The date and time when you want the copied object's Object Lock to expire. ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // Specifies the algorithm to use to when encrypting the object (e.g., AES256). SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"` // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting // data. This value is used to store the object and then it is discarded; Amazon // does not store the encryption key. The key must be appropriate for use with // the algorithm specified in the x-amz-server-side-encryption-customer-algorithm // header. SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption // key was transmitted without error. SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"` // Specifies the AWS KMS Encryption Context to use for object encryption. The // value of this header is a base64-encoded UTF-8 string holding JSON with the // encryption context key-value pairs. SSEKMSEncryptionContext *string `location:"header" locationName:"x-amz-server-side-encryption-context" type:"string" sensitive:"true"` // Specifies the AWS KMS key ID to use for object encryption. All GET and PUT // requests for an object protected by AWS KMS will fail if not made via SSL // or using SigV4. Documentation on configuring any of the officially supported // AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"` // The type of storage to use for the object. Defaults to 'STANDARD'. StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"` // The tag-set for the object destination object this value must be used in // conjunction with the TaggingDirective. The tag-set must be encoded as URL // Query parameters Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"` // Specifies whether the object tag-set are copied from the source object or // replaced with tag-set provided in the request. TaggingDirective *string `location:"header" locationName:"x-amz-tagging-directive" type:"string" enum:"TaggingDirective"` // If the bucket is configured as a website, redirects requests for this object // to another object in the same bucket or to an external URL. Amazon S3 stores // the value of this header in the object metadata. WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"` // contains filtered or unexported fields }
func (s CopyObjectInput) GoString() string
GoString returns the string representation
func (s *CopyObjectInput) SetACL(v string) *CopyObjectInput
SetACL sets the ACL field's value.
func (s *CopyObjectInput) SetBucket(v string) *CopyObjectInput
SetBucket sets the Bucket field's value.
func (s *CopyObjectInput) SetCacheControl(v string) *CopyObjectInput
SetCacheControl sets the CacheControl field's value.
func (s *CopyObjectInput) SetContentDisposition(v string) *CopyObjectInput
SetContentDisposition sets the ContentDisposition field's value.
func (s *CopyObjectInput) SetContentEncoding(v string) *CopyObjectInput
SetContentEncoding sets the ContentEncoding field's value.
func (s *CopyObjectInput) SetContentLanguage(v string) *CopyObjectInput
SetContentLanguage sets the ContentLanguage field's value.
func (s *CopyObjectInput) SetContentType(v string) *CopyObjectInput
SetContentType sets the ContentType field's value.
func (s *CopyObjectInput) SetCopySource(v string) *CopyObjectInput
SetCopySource sets the CopySource field's value.
func (s *CopyObjectInput) SetCopySourceIfMatch(v string) *CopyObjectInput
SetCopySourceIfMatch sets the CopySourceIfMatch field's value.
func (s *CopyObjectInput) SetCopySourceIfModifiedSince(v time.Time) *CopyObjectInput
SetCopySourceIfModifiedSince sets the CopySourceIfModifiedSince field's value.
func (s *CopyObjectInput) SetCopySourceIfNoneMatch(v string) *CopyObjectInput
SetCopySourceIfNoneMatch sets the CopySourceIfNoneMatch field's value.
func (s *CopyObjectInput) SetCopySourceIfUnmodifiedSince(v time.Time) *CopyObjectInput
SetCopySourceIfUnmodifiedSince sets the CopySourceIfUnmodifiedSince field's value.
func (s *CopyObjectInput) SetCopySourceSSECustomerAlgorithm(v string) *CopyObjectInput
SetCopySourceSSECustomerAlgorithm sets the CopySourceSSECustomerAlgorithm field's value.
func (s *CopyObjectInput) SetCopySourceSSECustomerKey(v string) *CopyObjectInput
SetCopySourceSSECustomerKey sets the CopySourceSSECustomerKey field's value.
func (s *CopyObjectInput) SetCopySourceSSECustomerKeyMD5(v string) *CopyObjectInput
SetCopySourceSSECustomerKeyMD5 sets the CopySourceSSECustomerKeyMD5 field's value.
func (s *CopyObjectInput) SetExpires(v time.Time) *CopyObjectInput
SetExpires sets the Expires field's value.
func (s *CopyObjectInput) SetGrantFullControl(v string) *CopyObjectInput
SetGrantFullControl sets the GrantFullControl field's value.
func (s *CopyObjectInput) SetGrantRead(v string) *CopyObjectInput
SetGrantRead sets the GrantRead field's value.
func (s *CopyObjectInput) SetGrantReadACP(v string) *CopyObjectInput
SetGrantReadACP sets the GrantReadACP field's value.
func (s *CopyObjectInput) SetGrantWriteACP(v string) *CopyObjectInput
SetGrantWriteACP sets the GrantWriteACP field's value.
func (s *CopyObjectInput) SetKey(v string) *CopyObjectInput
SetKey sets the Key field's value.
func (s *CopyObjectInput) SetMetadata(v map[string]*string) *CopyObjectInput
SetMetadata sets the Metadata field's value.
func (s *CopyObjectInput) SetMetadataDirective(v string) *CopyObjectInput
SetMetadataDirective sets the MetadataDirective field's value.
func (s *CopyObjectInput) SetObjectLockLegalHoldStatus(v string) *CopyObjectInput
SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value.
func (s *CopyObjectInput) SetObjectLockMode(v string) *CopyObjectInput
SetObjectLockMode sets the ObjectLockMode field's value.
func (s *CopyObjectInput) SetObjectLockRetainUntilDate(v time.Time) *CopyObjectInput
SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value.
func (s *CopyObjectInput) SetRequestPayer(v string) *CopyObjectInput
SetRequestPayer sets the RequestPayer field's value.
func (s *CopyObjectInput) SetSSECustomerAlgorithm(v string) *CopyObjectInput
SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
func (s *CopyObjectInput) SetSSECustomerKey(v string) *CopyObjectInput
SetSSECustomerKey sets the SSECustomerKey field's value.
func (s *CopyObjectInput) SetSSECustomerKeyMD5(v string) *CopyObjectInput
SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
func (s *CopyObjectInput) SetSSEKMSEncryptionContext(v string) *CopyObjectInput
SetSSEKMSEncryptionContext sets the SSEKMSEncryptionContext field's value.
func (s *CopyObjectInput) SetSSEKMSKeyId(v string) *CopyObjectInput
SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
func (s *CopyObjectInput) SetServerSideEncryption(v string) *CopyObjectInput
SetServerSideEncryption sets the ServerSideEncryption field's value.
func (s *CopyObjectInput) SetStorageClass(v string) *CopyObjectInput
SetStorageClass sets the StorageClass field's value.
func (s *CopyObjectInput) SetTagging(v string) *CopyObjectInput
SetTagging sets the Tagging field's value.
func (s *CopyObjectInput) SetTaggingDirective(v string) *CopyObjectInput
SetTaggingDirective sets the TaggingDirective field's value.
func (s *CopyObjectInput) SetWebsiteRedirectLocation(v string) *CopyObjectInput
SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.
func (s CopyObjectInput) String() string
String returns the string representation
func (s *CopyObjectInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CopyObjectOutput struct { // Container for all response elements. CopyObjectResult *CopyObjectResult `type:"structure"` // Version of the copied object in the destination bucket. CopySourceVersionId *string `location:"header" locationName:"x-amz-copy-source-version-id" type:"string"` // If the object expiration is configured, the response includes this header. Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"` // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` // If server-side encryption with a customer-provided encryption key was requested, // the response will include this header confirming the encryption algorithm // used. SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"` // If server-side encryption with a customer-provided encryption key was requested, // the response will include this header to provide round trip message integrity // verification of the customer-provided encryption key. SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"` // If present, specifies the AWS KMS Encryption Context to use for object encryption. // The value of this header is a base64-encoded UTF-8 string holding JSON with // the encryption context key-value pairs. SSEKMSEncryptionContext *string `location:"header" locationName:"x-amz-server-side-encryption-context" type:"string" sensitive:"true"` // If present, specifies the ID of the AWS Key Management Service (KMS) customer // master key (CMK) that was used for the object. SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"` // Version ID of the newly created copy. VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` // contains filtered or unexported fields }
func (s CopyObjectOutput) GoString() string
GoString returns the string representation
func (s *CopyObjectOutput) SetCopyObjectResult(v *CopyObjectResult) *CopyObjectOutput
SetCopyObjectResult sets the CopyObjectResult field's value.
func (s *CopyObjectOutput) SetCopySourceVersionId(v string) *CopyObjectOutput
SetCopySourceVersionId sets the CopySourceVersionId field's value.
func (s *CopyObjectOutput) SetExpiration(v string) *CopyObjectOutput
SetExpiration sets the Expiration field's value.
func (s *CopyObjectOutput) SetRequestCharged(v string) *CopyObjectOutput
SetRequestCharged sets the RequestCharged field's value.
func (s *CopyObjectOutput) SetSSECustomerAlgorithm(v string) *CopyObjectOutput
SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
func (s *CopyObjectOutput) SetSSECustomerKeyMD5(v string) *CopyObjectOutput
SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
func (s *CopyObjectOutput) SetSSEKMSEncryptionContext(v string) *CopyObjectOutput
SetSSEKMSEncryptionContext sets the SSEKMSEncryptionContext field's value.
func (s *CopyObjectOutput) SetSSEKMSKeyId(v string) *CopyObjectOutput
SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
func (s *CopyObjectOutput) SetServerSideEncryption(v string) *CopyObjectOutput
SetServerSideEncryption sets the ServerSideEncryption field's value.
func (s *CopyObjectOutput) SetVersionId(v string) *CopyObjectOutput
SetVersionId sets the VersionId field's value.
func (s CopyObjectOutput) String() string
String returns the string representation
type CopyObjectResult struct { // Returns the ETag of the new object. The ETag reflects only changes to the // contents of an object, not its metadata. The source and destination ETag // is identical for a successfully copied object. ETag *string `type:"string"` // Returns the date that the object was last modified. LastModified *time.Time `type:"timestamp"` // contains filtered or unexported fields }
>Container for all response elements.
func (s CopyObjectResult) GoString() string
GoString returns the string representation
func (s *CopyObjectResult) SetETag(v string) *CopyObjectResult
SetETag sets the ETag field's value.
func (s *CopyObjectResult) SetLastModified(v time.Time) *CopyObjectResult
SetLastModified sets the LastModified field's value.
func (s CopyObjectResult) String() string
String returns the string representation
type CopyPartResult struct { // Entity tag of the object. ETag *string `type:"string"` // Date and time at which the object was uploaded. LastModified *time.Time `type:"timestamp"` // contains filtered or unexported fields }
Container for all response elements.
func (s CopyPartResult) GoString() string
GoString returns the string representation
func (s *CopyPartResult) SetETag(v string) *CopyPartResult
SetETag sets the ETag field's value.
func (s *CopyPartResult) SetLastModified(v time.Time) *CopyPartResult
SetLastModified sets the LastModified field's value.
func (s CopyPartResult) String() string
String returns the string representation
type CreateBucketConfiguration struct { // Specifies the region where the bucket will be created. If you don't specify // a region, the bucket is created in US East (N. Virginia) Region (us-east-1). LocationConstraint *string `type:"string" enum:"BucketLocationConstraint"` // contains filtered or unexported fields }
The configuration information for the bucket.
func (s CreateBucketConfiguration) GoString() string
GoString returns the string representation
func (s *CreateBucketConfiguration) SetLocationConstraint(v string) *CreateBucketConfiguration
SetLocationConstraint sets the LocationConstraint field's value.
func (s CreateBucketConfiguration) String() string
String returns the string representation
type CreateBucketInput struct { // The canned ACL to apply to the bucket. ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"BucketCannedACL"` // The name of the bucket to create. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The configuration information for the bucket. CreateBucketConfiguration *CreateBucketConfiguration `locationName:"CreateBucketConfiguration" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"` // Allows grantee the read, write, read ACP, and write ACP permissions on the // bucket. GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"` // Allows grantee to list the objects in the bucket. GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"` // Allows grantee to read the bucket ACL. GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"` // Allows grantee to create, overwrite, and delete any object in the bucket. GrantWrite *string `location:"header" locationName:"x-amz-grant-write" type:"string"` // Allows grantee to write the ACL for the applicable bucket. GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"` // Specifies whether you want S3 Object Lock to be enabled for the new bucket. ObjectLockEnabledForBucket *bool `location:"header" locationName:"x-amz-bucket-object-lock-enabled" type:"boolean"` // contains filtered or unexported fields }
func (s CreateBucketInput) GoString() string
GoString returns the string representation
func (s *CreateBucketInput) SetACL(v string) *CreateBucketInput
SetACL sets the ACL field's value.
func (s *CreateBucketInput) SetBucket(v string) *CreateBucketInput
SetBucket sets the Bucket field's value.
func (s *CreateBucketInput) SetCreateBucketConfiguration(v *CreateBucketConfiguration) *CreateBucketInput
SetCreateBucketConfiguration sets the CreateBucketConfiguration field's value.
func (s *CreateBucketInput) SetGrantFullControl(v string) *CreateBucketInput
SetGrantFullControl sets the GrantFullControl field's value.
func (s *CreateBucketInput) SetGrantRead(v string) *CreateBucketInput
SetGrantRead sets the GrantRead field's value.
func (s *CreateBucketInput) SetGrantReadACP(v string) *CreateBucketInput
SetGrantReadACP sets the GrantReadACP field's value.
func (s *CreateBucketInput) SetGrantWrite(v string) *CreateBucketInput
SetGrantWrite sets the GrantWrite field's value.
func (s *CreateBucketInput) SetGrantWriteACP(v string) *CreateBucketInput
SetGrantWriteACP sets the GrantWriteACP field's value.
func (s *CreateBucketInput) SetObjectLockEnabledForBucket(v bool) *CreateBucketInput
SetObjectLockEnabledForBucket sets the ObjectLockEnabledForBucket field's value.
func (s CreateBucketInput) String() string
String returns the string representation
func (s *CreateBucketInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateBucketOutput struct { // Specifies the region where the bucket will be created. If you are creating // a bucket on the US East (N. Virginia) region (us-east-1), you do not need // to specify the location. Location *string `location:"header" locationName:"Location" type:"string"` // contains filtered or unexported fields }
func (s CreateBucketOutput) GoString() string
GoString returns the string representation
func (s *CreateBucketOutput) SetLocation(v string) *CreateBucketOutput
SetLocation sets the Location field's value.
func (s CreateBucketOutput) String() string
String returns the string representation
type CreateMultipartUploadInput struct { // The canned ACL to apply to the object. ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"` // The name of the bucket to which to initiate the upload // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Specifies caching behavior along the request/reply chain. CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"` // Specifies presentational information for the object. ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"` // Specifies what content encodings have been applied to the object and thus // what decoding mechanisms must be applied to obtain the media-type referenced // by the Content-Type header field. ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"` // The language the content is in. ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"` // A standard MIME type describing the format of the object data. ContentType *string `location:"header" locationName:"Content-Type" type:"string"` // The date and time at which the object is no longer cacheable. Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp"` // Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object. GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"` // Allows grantee to read the object data and its metadata. GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"` // Allows grantee to read the object ACL. GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"` // Allows grantee to write the ACL for the applicable object. GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"` // Object key for which the multipart upload is to be initiated. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // A map of metadata to store with the object in S3. Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"` // Specifies whether you want to apply a Legal Hold to the uploaded object. ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"` // Specifies the Object Lock mode that you want to apply to the uploaded object. ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"` // Specifies the date and time when you want the Object Lock to expire. ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // Specifies the algorithm to use to when encrypting the object (e.g., AES256). SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"` // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting // data. This value is used to store the object and then it is discarded; Amazon // does not store the encryption key. The key must be appropriate for use with // the algorithm specified in the x-amz-server-side-encryption-customer-algorithm // header. SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption // key was transmitted without error. SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"` // Specifies the AWS KMS Encryption Context to use for object encryption. The // value of this header is a base64-encoded UTF-8 string holding JSON with the // encryption context key-value pairs. SSEKMSEncryptionContext *string `location:"header" locationName:"x-amz-server-side-encryption-context" type:"string" sensitive:"true"` // Specifies the AWS KMS key ID to use for object encryption. All GET and PUT // requests for an object protected by AWS KMS will fail if not made via SSL // or using SigV4. Documentation on configuring any of the officially supported // AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"` // The type of storage to use for the object. Defaults to 'STANDARD'. StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"` // The tag-set for the object. The tag-set must be encoded as URL Query parameters Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"` // If the bucket is configured as a website, redirects requests for this object // to another object in the same bucket or to an external URL. Amazon S3 stores // the value of this header in the object metadata. WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"` // contains filtered or unexported fields }
func (s CreateMultipartUploadInput) GoString() string
GoString returns the string representation
func (s *CreateMultipartUploadInput) SetACL(v string) *CreateMultipartUploadInput
SetACL sets the ACL field's value.
func (s *CreateMultipartUploadInput) SetBucket(v string) *CreateMultipartUploadInput
SetBucket sets the Bucket field's value.
func (s *CreateMultipartUploadInput) SetCacheControl(v string) *CreateMultipartUploadInput
SetCacheControl sets the CacheControl field's value.
func (s *CreateMultipartUploadInput) SetContentDisposition(v string) *CreateMultipartUploadInput
SetContentDisposition sets the ContentDisposition field's value.
func (s *CreateMultipartUploadInput) SetContentEncoding(v string) *CreateMultipartUploadInput
SetContentEncoding sets the ContentEncoding field's value.
func (s *CreateMultipartUploadInput) SetContentLanguage(v string) *CreateMultipartUploadInput
SetContentLanguage sets the ContentLanguage field's value.
func (s *CreateMultipartUploadInput) SetContentType(v string) *CreateMultipartUploadInput
SetContentType sets the ContentType field's value.
func (s *CreateMultipartUploadInput) SetExpires(v time.Time) *CreateMultipartUploadInput
SetExpires sets the Expires field's value.
func (s *CreateMultipartUploadInput) SetGrantFullControl(v string) *CreateMultipartUploadInput
SetGrantFullControl sets the GrantFullControl field's value.
func (s *CreateMultipartUploadInput) SetGrantRead(v string) *CreateMultipartUploadInput
SetGrantRead sets the GrantRead field's value.
func (s *CreateMultipartUploadInput) SetGrantReadACP(v string) *CreateMultipartUploadInput
SetGrantReadACP sets the GrantReadACP field's value.
func (s *CreateMultipartUploadInput) SetGrantWriteACP(v string) *CreateMultipartUploadInput
SetGrantWriteACP sets the GrantWriteACP field's value.
func (s *CreateMultipartUploadInput) SetKey(v string) *CreateMultipartUploadInput
SetKey sets the Key field's value.
func (s *CreateMultipartUploadInput) SetMetadata(v map[string]*string) *CreateMultipartUploadInput
SetMetadata sets the Metadata field's value.
func (s *CreateMultipartUploadInput) SetObjectLockLegalHoldStatus(v string) *CreateMultipartUploadInput
SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value.
func (s *CreateMultipartUploadInput) SetObjectLockMode(v string) *CreateMultipartUploadInput
SetObjectLockMode sets the ObjectLockMode field's value.
func (s *CreateMultipartUploadInput) SetObjectLockRetainUntilDate(v time.Time) *CreateMultipartUploadInput
SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value.
func (s *CreateMultipartUploadInput) SetRequestPayer(v string) *CreateMultipartUploadInput
SetRequestPayer sets the RequestPayer field's value.
func (s *CreateMultipartUploadInput) SetSSECustomerAlgorithm(v string) *CreateMultipartUploadInput
SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
func (s *CreateMultipartUploadInput) SetSSECustomerKey(v string) *CreateMultipartUploadInput
SetSSECustomerKey sets the SSECustomerKey field's value.
func (s *CreateMultipartUploadInput) SetSSECustomerKeyMD5(v string) *CreateMultipartUploadInput
SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
func (s *CreateMultipartUploadInput) SetSSEKMSEncryptionContext(v string) *CreateMultipartUploadInput
SetSSEKMSEncryptionContext sets the SSEKMSEncryptionContext field's value.
func (s *CreateMultipartUploadInput) SetSSEKMSKeyId(v string) *CreateMultipartUploadInput
SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
func (s *CreateMultipartUploadInput) SetServerSideEncryption(v string) *CreateMultipartUploadInput
SetServerSideEncryption sets the ServerSideEncryption field's value.
func (s *CreateMultipartUploadInput) SetStorageClass(v string) *CreateMultipartUploadInput
SetStorageClass sets the StorageClass field's value.
func (s *CreateMultipartUploadInput) SetTagging(v string) *CreateMultipartUploadInput
SetTagging sets the Tagging field's value.
func (s *CreateMultipartUploadInput) SetWebsiteRedirectLocation(v string) *CreateMultipartUploadInput
SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.
func (s CreateMultipartUploadInput) String() string
String returns the string representation
func (s *CreateMultipartUploadInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateMultipartUploadOutput struct { // If the bucket has a lifecycle rule configured with an action to abort incomplete // multipart uploads and the prefix in the lifecycle rule matches the object // name in the request, the response includes this header. The header indicates // when the initiated multipart upload becomes eligible for an abort operation. // For more information, see Aborting Incomplete Multipart Uploads Using a Bucket // Lifecycle Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config). // // The response also includes the x-amz-abort-rule-id header that provides the // ID of the lifecycle configuration rule that defines this action. AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp"` // This header is returned along with the x-amz-abort-date header. It identifies // the applicable lifecycle configuration rule that defines the action to abort // incomplete multipart uploads. AbortRuleId *string `location:"header" locationName:"x-amz-abort-rule-id" type:"string"` // Name of the bucket to which the multipart upload was initiated. Bucket *string `locationName:"Bucket" type:"string"` // Object key for which the multipart upload was initiated. Key *string `min:"1" type:"string"` // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` // If server-side encryption with a customer-provided encryption key was requested, // the response will include this header confirming the encryption algorithm // used. SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"` // If server-side encryption with a customer-provided encryption key was requested, // the response will include this header to provide round trip message integrity // verification of the customer-provided encryption key. SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"` // If present, specifies the AWS KMS Encryption Context to use for object encryption. // The value of this header is a base64-encoded UTF-8 string holding JSON with // the encryption context key-value pairs. SSEKMSEncryptionContext *string `location:"header" locationName:"x-amz-server-side-encryption-context" type:"string" sensitive:"true"` // If present, specifies the ID of the AWS Key Management Service (KMS) customer // master key (CMK) that was used for the object. SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"` // ID for the initiated multipart upload. UploadId *string `type:"string"` // contains filtered or unexported fields }
func (s CreateMultipartUploadOutput) GoString() string
GoString returns the string representation
func (s *CreateMultipartUploadOutput) SetAbortDate(v time.Time) *CreateMultipartUploadOutput
SetAbortDate sets the AbortDate field's value.
func (s *CreateMultipartUploadOutput) SetAbortRuleId(v string) *CreateMultipartUploadOutput
SetAbortRuleId sets the AbortRuleId field's value.
func (s *CreateMultipartUploadOutput) SetBucket(v string) *CreateMultipartUploadOutput
SetBucket sets the Bucket field's value.
func (s *CreateMultipartUploadOutput) SetKey(v string) *CreateMultipartUploadOutput
SetKey sets the Key field's value.
func (s *CreateMultipartUploadOutput) SetRequestCharged(v string) *CreateMultipartUploadOutput
SetRequestCharged sets the RequestCharged field's value.
func (s *CreateMultipartUploadOutput) SetSSECustomerAlgorithm(v string) *CreateMultipartUploadOutput
SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
func (s *CreateMultipartUploadOutput) SetSSECustomerKeyMD5(v string) *CreateMultipartUploadOutput
SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
func (s *CreateMultipartUploadOutput) SetSSEKMSEncryptionContext(v string) *CreateMultipartUploadOutput
SetSSEKMSEncryptionContext sets the SSEKMSEncryptionContext field's value.
func (s *CreateMultipartUploadOutput) SetSSEKMSKeyId(v string) *CreateMultipartUploadOutput
SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
func (s *CreateMultipartUploadOutput) SetServerSideEncryption(v string) *CreateMultipartUploadOutput
SetServerSideEncryption sets the ServerSideEncryption field's value.
func (s *CreateMultipartUploadOutput) SetUploadId(v string) *CreateMultipartUploadOutput
SetUploadId sets the UploadId field's value.
func (s CreateMultipartUploadOutput) String() string
String returns the string representation
type DefaultRetention struct { // The number of days that you want to specify for the default retention period. Days *int64 `type:"integer"` // The default Object Lock retention mode you want to apply to new objects placed // in the specified bucket. Mode *string `type:"string" enum:"ObjectLockRetentionMode"` // The number of years that you want to specify for the default retention period. Years *int64 `type:"integer"` // contains filtered or unexported fields }
The container element for specifying the default Object Lock retention settings for new objects placed in the specified bucket.
func (s DefaultRetention) GoString() string
GoString returns the string representation
func (s *DefaultRetention) SetDays(v int64) *DefaultRetention
SetDays sets the Days field's value.
func (s *DefaultRetention) SetMode(v string) *DefaultRetention
SetMode sets the Mode field's value.
func (s *DefaultRetention) SetYears(v int64) *DefaultRetention
SetYears sets the Years field's value.
func (s DefaultRetention) String() string
String returns the string representation
type Delete struct { // The objects to delete. // // Objects is a required field Objects []*ObjectIdentifier `locationName:"Object" type:"list" flattened:"true" required:"true"` // Element to enable quiet mode for the request. When you add this element, // you must set its value to true. Quiet *bool `type:"boolean"` // contains filtered or unexported fields }
Container for the objects to delete.
func (s Delete) GoString() string
GoString returns the string representation
func (s *Delete) SetObjects(v []*ObjectIdentifier) *Delete
SetObjects sets the Objects field's value.
func (s *Delete) SetQuiet(v bool) *Delete
SetQuiet sets the Quiet field's value.
func (s Delete) String() string
String returns the string representation
func (s *Delete) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBucketAnalyticsConfigurationInput struct { // The name of the bucket from which an analytics configuration is deleted. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The ID that identifies the analytics configuration. // // Id is a required field Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteBucketAnalyticsConfigurationInput) GoString() string
GoString returns the string representation
func (s *DeleteBucketAnalyticsConfigurationInput) SetBucket(v string) *DeleteBucketAnalyticsConfigurationInput
SetBucket sets the Bucket field's value.
func (s *DeleteBucketAnalyticsConfigurationInput) SetId(v string) *DeleteBucketAnalyticsConfigurationInput
SetId sets the Id field's value.
func (s DeleteBucketAnalyticsConfigurationInput) String() string
String returns the string representation
func (s *DeleteBucketAnalyticsConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBucketAnalyticsConfigurationOutput struct {
// contains filtered or unexported fields
}
func (s DeleteBucketAnalyticsConfigurationOutput) GoString() string
GoString returns the string representation
func (s DeleteBucketAnalyticsConfigurationOutput) String() string
String returns the string representation
type DeleteBucketCorsInput struct { // Specifies the bucket whose cors configuration is being deleted. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteBucketCorsInput) GoString() string
GoString returns the string representation
func (s *DeleteBucketCorsInput) SetBucket(v string) *DeleteBucketCorsInput
SetBucket sets the Bucket field's value.
func (s DeleteBucketCorsInput) String() string
String returns the string representation
func (s *DeleteBucketCorsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBucketCorsOutput struct {
// contains filtered or unexported fields
}
func (s DeleteBucketCorsOutput) GoString() string
GoString returns the string representation
func (s DeleteBucketCorsOutput) String() string
String returns the string representation
type DeleteBucketEncryptionInput struct { // The name of the bucket containing the server-side encryption configuration // to delete. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteBucketEncryptionInput) GoString() string
GoString returns the string representation
func (s *DeleteBucketEncryptionInput) SetBucket(v string) *DeleteBucketEncryptionInput
SetBucket sets the Bucket field's value.
func (s DeleteBucketEncryptionInput) String() string
String returns the string representation
func (s *DeleteBucketEncryptionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBucketEncryptionOutput struct {
// contains filtered or unexported fields
}
func (s DeleteBucketEncryptionOutput) GoString() string
GoString returns the string representation
func (s DeleteBucketEncryptionOutput) String() string
String returns the string representation
type DeleteBucketInput struct { // Specifies the bucket being deleted. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteBucketInput) GoString() string
GoString returns the string representation
func (s *DeleteBucketInput) SetBucket(v string) *DeleteBucketInput
SetBucket sets the Bucket field's value.
func (s DeleteBucketInput) String() string
String returns the string representation
func (s *DeleteBucketInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBucketInventoryConfigurationInput struct { // The name of the bucket containing the inventory configuration to delete. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The ID used to identify the inventory configuration. // // Id is a required field Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteBucketInventoryConfigurationInput) GoString() string
GoString returns the string representation
func (s *DeleteBucketInventoryConfigurationInput) SetBucket(v string) *DeleteBucketInventoryConfigurationInput
SetBucket sets the Bucket field's value.
func (s *DeleteBucketInventoryConfigurationInput) SetId(v string) *DeleteBucketInventoryConfigurationInput
SetId sets the Id field's value.
func (s DeleteBucketInventoryConfigurationInput) String() string
String returns the string representation
func (s *DeleteBucketInventoryConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBucketInventoryConfigurationOutput struct {
// contains filtered or unexported fields
}
func (s DeleteBucketInventoryConfigurationOutput) GoString() string
GoString returns the string representation
func (s DeleteBucketInventoryConfigurationOutput) String() string
String returns the string representation
type DeleteBucketLifecycleInput struct { // The bucket name of the lifecycle to delete. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteBucketLifecycleInput) GoString() string
GoString returns the string representation
func (s *DeleteBucketLifecycleInput) SetBucket(v string) *DeleteBucketLifecycleInput
SetBucket sets the Bucket field's value.
func (s DeleteBucketLifecycleInput) String() string
String returns the string representation
func (s *DeleteBucketLifecycleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBucketLifecycleOutput struct {
// contains filtered or unexported fields
}
func (s DeleteBucketLifecycleOutput) GoString() string
GoString returns the string representation
func (s DeleteBucketLifecycleOutput) String() string
String returns the string representation
type DeleteBucketMetricsConfigurationInput struct { // The name of the bucket containing the metrics configuration to delete. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The ID used to identify the metrics configuration. // // Id is a required field Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteBucketMetricsConfigurationInput) GoString() string
GoString returns the string representation
func (s *DeleteBucketMetricsConfigurationInput) SetBucket(v string) *DeleteBucketMetricsConfigurationInput
SetBucket sets the Bucket field's value.
func (s *DeleteBucketMetricsConfigurationInput) SetId(v string) *DeleteBucketMetricsConfigurationInput
SetId sets the Id field's value.
func (s DeleteBucketMetricsConfigurationInput) String() string
String returns the string representation
func (s *DeleteBucketMetricsConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBucketMetricsConfigurationOutput struct {
// contains filtered or unexported fields
}
func (s DeleteBucketMetricsConfigurationOutput) GoString() string
GoString returns the string representation
func (s DeleteBucketMetricsConfigurationOutput) String() string
String returns the string representation
type DeleteBucketOutput struct {
// contains filtered or unexported fields
}
func (s DeleteBucketOutput) GoString() string
GoString returns the string representation
func (s DeleteBucketOutput) String() string
String returns the string representation
type DeleteBucketPolicyInput struct { // The bucket name. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteBucketPolicyInput) GoString() string
GoString returns the string representation
func (s *DeleteBucketPolicyInput) SetBucket(v string) *DeleteBucketPolicyInput
SetBucket sets the Bucket field's value.
func (s DeleteBucketPolicyInput) String() string
String returns the string representation
func (s *DeleteBucketPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBucketPolicyOutput struct {
// contains filtered or unexported fields
}
func (s DeleteBucketPolicyOutput) GoString() string
GoString returns the string representation
func (s DeleteBucketPolicyOutput) String() string
String returns the string representation
type DeleteBucketReplicationInput struct { // The bucket name. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteBucketReplicationInput) GoString() string
GoString returns the string representation
func (s *DeleteBucketReplicationInput) SetBucket(v string) *DeleteBucketReplicationInput
SetBucket sets the Bucket field's value.
func (s DeleteBucketReplicationInput) String() string
String returns the string representation
func (s *DeleteBucketReplicationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBucketReplicationOutput struct {
// contains filtered or unexported fields
}
func (s DeleteBucketReplicationOutput) GoString() string
GoString returns the string representation
func (s DeleteBucketReplicationOutput) String() string
String returns the string representation
type DeleteBucketTaggingInput struct { // The bucket that has the tag set to be removed. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteBucketTaggingInput) GoString() string
GoString returns the string representation
func (s *DeleteBucketTaggingInput) SetBucket(v string) *DeleteBucketTaggingInput
SetBucket sets the Bucket field's value.
func (s DeleteBucketTaggingInput) String() string
String returns the string representation
func (s *DeleteBucketTaggingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBucketTaggingOutput struct {
// contains filtered or unexported fields
}
func (s DeleteBucketTaggingOutput) GoString() string
GoString returns the string representation
func (s DeleteBucketTaggingOutput) String() string
String returns the string representation
type DeleteBucketWebsiteInput struct { // The bucket name for which you want to remove the website configuration. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeleteBucketWebsiteInput) GoString() string
GoString returns the string representation
func (s *DeleteBucketWebsiteInput) SetBucket(v string) *DeleteBucketWebsiteInput
SetBucket sets the Bucket field's value.
func (s DeleteBucketWebsiteInput) String() string
String returns the string representation
func (s *DeleteBucketWebsiteInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteBucketWebsiteOutput struct {
// contains filtered or unexported fields
}
func (s DeleteBucketWebsiteOutput) GoString() string
GoString returns the string representation
func (s DeleteBucketWebsiteOutput) String() string
String returns the string representation
type DeleteMarkerEntry struct { // Specifies whether the object is (true) or is not (false) the latest version // of an object. IsLatest *bool `type:"boolean"` // The object key. Key *string `min:"1" type:"string"` // Date and time the object was last modified. LastModified *time.Time `type:"timestamp"` // The account that created the delete marker.> Owner *Owner `type:"structure"` // Version ID of an object. VersionId *string `type:"string"` // contains filtered or unexported fields }
Information about the delete marker.
func (s DeleteMarkerEntry) GoString() string
GoString returns the string representation
func (s *DeleteMarkerEntry) SetIsLatest(v bool) *DeleteMarkerEntry
SetIsLatest sets the IsLatest field's value.
func (s *DeleteMarkerEntry) SetKey(v string) *DeleteMarkerEntry
SetKey sets the Key field's value.
func (s *DeleteMarkerEntry) SetLastModified(v time.Time) *DeleteMarkerEntry
SetLastModified sets the LastModified field's value.
func (s *DeleteMarkerEntry) SetOwner(v *Owner) *DeleteMarkerEntry
SetOwner sets the Owner field's value.
func (s *DeleteMarkerEntry) SetVersionId(v string) *DeleteMarkerEntry
SetVersionId sets the VersionId field's value.
func (s DeleteMarkerEntry) String() string
String returns the string representation
type DeleteMarkerReplication struct { // Indicates whether to replicate delete markers. // // In the current implementation, Amazon S3 doesn't replicate the delete markers. // The status must be Disabled. Status *string `type:"string" enum:"DeleteMarkerReplicationStatus"` // contains filtered or unexported fields }
Specifies whether Amazon S3 replicates the delete markers. If you specify a Filter, you must specify this element. However, in the latest version of replication configuration (when Filter is specified), Amazon S3 doesn't replicate delete markers. Therefore, the DeleteMarkerReplication element can contain only <Status>Disabled</Status>. For an example configuration, see Basic Rule Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-config-min-rule-config).
If you don't specify the Filter element, Amazon S3 assumes the replication configuration is the earlier version, V1. In the earlier version, Amazon S3 handled replication of delete markers differently. For more information, see Backward Compatibility (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-backward-compat-considerations).
func (s DeleteMarkerReplication) GoString() string
GoString returns the string representation
func (s *DeleteMarkerReplication) SetStatus(v string) *DeleteMarkerReplication
SetStatus sets the Status field's value.
func (s DeleteMarkerReplication) String() string
String returns the string representation
type DeleteObjectInput struct { // The bucket name of the bucket containing the object. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Indicates whether S3 Object Lock should bypass Governance-mode restrictions // to process this operation. BypassGovernanceRetention *bool `location:"header" locationName:"x-amz-bypass-governance-retention" type:"boolean"` // Key name of the object to delete. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // The concatenation of the authentication device's serial number, a space, // and the value that is displayed on your authentication device. Required to // permanently delete a versionedobject if versioning is configured with MFA // Deleteenabled. MFA *string `location:"header" locationName:"x-amz-mfa" type:"string"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // VersionId used to reference a specific version of the object. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` // contains filtered or unexported fields }
func (s DeleteObjectInput) GoString() string
GoString returns the string representation
func (s *DeleteObjectInput) SetBucket(v string) *DeleteObjectInput
SetBucket sets the Bucket field's value.
func (s *DeleteObjectInput) SetBypassGovernanceRetention(v bool) *DeleteObjectInput
SetBypassGovernanceRetention sets the BypassGovernanceRetention field's value.
func (s *DeleteObjectInput) SetKey(v string) *DeleteObjectInput
SetKey sets the Key field's value.
func (s *DeleteObjectInput) SetMFA(v string) *DeleteObjectInput
SetMFA sets the MFA field's value.
func (s *DeleteObjectInput) SetRequestPayer(v string) *DeleteObjectInput
SetRequestPayer sets the RequestPayer field's value.
func (s *DeleteObjectInput) SetVersionId(v string) *DeleteObjectInput
SetVersionId sets the VersionId field's value.
func (s DeleteObjectInput) String() string
String returns the string representation
func (s *DeleteObjectInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteObjectOutput struct { // Specifies whether the versioned object that was permanently deleted was (true) // or was not (false) a delete marker. DeleteMarker *bool `location:"header" locationName:"x-amz-delete-marker" type:"boolean"` // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` // Returns the version ID of the delete marker created as a result of the DELETE // operation. VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` // contains filtered or unexported fields }
func (s DeleteObjectOutput) GoString() string
GoString returns the string representation
func (s *DeleteObjectOutput) SetDeleteMarker(v bool) *DeleteObjectOutput
SetDeleteMarker sets the DeleteMarker field's value.
func (s *DeleteObjectOutput) SetRequestCharged(v string) *DeleteObjectOutput
SetRequestCharged sets the RequestCharged field's value.
func (s *DeleteObjectOutput) SetVersionId(v string) *DeleteObjectOutput
SetVersionId sets the VersionId field's value.
func (s DeleteObjectOutput) String() string
String returns the string representation
type DeleteObjectTaggingInput struct { // The bucket containing the objects from which to remove the tags. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Name of the tag. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // The versionId of the object that the tag-set will be removed from. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` // contains filtered or unexported fields }
func (s DeleteObjectTaggingInput) GoString() string
GoString returns the string representation
func (s *DeleteObjectTaggingInput) SetBucket(v string) *DeleteObjectTaggingInput
SetBucket sets the Bucket field's value.
func (s *DeleteObjectTaggingInput) SetKey(v string) *DeleteObjectTaggingInput
SetKey sets the Key field's value.
func (s *DeleteObjectTaggingInput) SetVersionId(v string) *DeleteObjectTaggingInput
SetVersionId sets the VersionId field's value.
func (s DeleteObjectTaggingInput) String() string
String returns the string representation
func (s *DeleteObjectTaggingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteObjectTaggingOutput struct { // The versionId of the object the tag-set was removed from. VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` // contains filtered or unexported fields }
func (s DeleteObjectTaggingOutput) GoString() string
GoString returns the string representation
func (s *DeleteObjectTaggingOutput) SetVersionId(v string) *DeleteObjectTaggingOutput
SetVersionId sets the VersionId field's value.
func (s DeleteObjectTaggingOutput) String() string
String returns the string representation
type DeleteObjectsInput struct { // The bucket name containing the objects to delete. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Specifies whether you want to delete this object even if it has a Governance-type // Object Lock in place. You must have sufficient permissions to perform this // operation. BypassGovernanceRetention *bool `location:"header" locationName:"x-amz-bypass-governance-retention" type:"boolean"` // Container for the request. // // Delete is a required field Delete *Delete `locationName:"Delete" type:"structure" required:"true" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"` // The concatenation of the authentication device's serial number, a space, // and the value that is displayed on your authentication device. Required to // permanently delete a versioned object if versioning is configured with MFA // Delete enabled. MFA *string `location:"header" locationName:"x-amz-mfa" type:"string"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // contains filtered or unexported fields }
func (s DeleteObjectsInput) GoString() string
GoString returns the string representation
func (s *DeleteObjectsInput) SetBucket(v string) *DeleteObjectsInput
SetBucket sets the Bucket field's value.
func (s *DeleteObjectsInput) SetBypassGovernanceRetention(v bool) *DeleteObjectsInput
SetBypassGovernanceRetention sets the BypassGovernanceRetention field's value.
func (s *DeleteObjectsInput) SetDelete(v *Delete) *DeleteObjectsInput
SetDelete sets the Delete field's value.
func (s *DeleteObjectsInput) SetMFA(v string) *DeleteObjectsInput
SetMFA sets the MFA field's value.
func (s *DeleteObjectsInput) SetRequestPayer(v string) *DeleteObjectsInput
SetRequestPayer sets the RequestPayer field's value.
func (s DeleteObjectsInput) String() string
String returns the string representation
func (s *DeleteObjectsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteObjectsOutput struct { // Container element for a successful delete. It identifies the object that // was successfully deleted. Deleted []*DeletedObject `type:"list" flattened:"true"` // Container for a failed delete operation that describes the object that Amazon // S3 attempted to delete and the error it encountered. Errors []*Error `locationName:"Error" type:"list" flattened:"true"` // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` // contains filtered or unexported fields }
func (s DeleteObjectsOutput) GoString() string
GoString returns the string representation
func (s *DeleteObjectsOutput) SetDeleted(v []*DeletedObject) *DeleteObjectsOutput
SetDeleted sets the Deleted field's value.
func (s *DeleteObjectsOutput) SetErrors(v []*Error) *DeleteObjectsOutput
SetErrors sets the Errors field's value.
func (s *DeleteObjectsOutput) SetRequestCharged(v string) *DeleteObjectsOutput
SetRequestCharged sets the RequestCharged field's value.
func (s DeleteObjectsOutput) String() string
String returns the string representation
type DeletePublicAccessBlockInput struct { // The Amazon S3 bucket whose PublicAccessBlock configuration you want to delete. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s DeletePublicAccessBlockInput) GoString() string
GoString returns the string representation
func (s *DeletePublicAccessBlockInput) SetBucket(v string) *DeletePublicAccessBlockInput
SetBucket sets the Bucket field's value.
func (s DeletePublicAccessBlockInput) String() string
String returns the string representation
func (s *DeletePublicAccessBlockInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeletePublicAccessBlockOutput struct {
// contains filtered or unexported fields
}
func (s DeletePublicAccessBlockOutput) GoString() string
GoString returns the string representation
func (s DeletePublicAccessBlockOutput) String() string
String returns the string representation
type DeletedObject struct { // Specifies whether the versioned object that was permanently deleted was (true) // or was not (false) a delete marker. In a simple DELETE, this header indicates // whether (true) or not (false) a delete marker was created. DeleteMarker *bool `type:"boolean"` // The version ID of the delete marker created as a result of the DELETE operation. // If you delete a specific object version, the value returned by this header // is the version ID of the object version deleted. DeleteMarkerVersionId *string `type:"string"` // The name of the deleted object. Key *string `min:"1" type:"string"` // The version ID of the deleted object. VersionId *string `type:"string"` // contains filtered or unexported fields }
Information about the deleted object.
func (s DeletedObject) GoString() string
GoString returns the string representation
func (s *DeletedObject) SetDeleteMarker(v bool) *DeletedObject
SetDeleteMarker sets the DeleteMarker field's value.
func (s *DeletedObject) SetDeleteMarkerVersionId(v string) *DeletedObject
SetDeleteMarkerVersionId sets the DeleteMarkerVersionId field's value.
func (s *DeletedObject) SetKey(v string) *DeletedObject
SetKey sets the Key field's value.
func (s *DeletedObject) SetVersionId(v string) *DeletedObject
SetVersionId sets the VersionId field's value.
func (s DeletedObject) String() string
String returns the string representation
type Destination struct { // Specify this only in a cross-account scenario (where source and destination // bucket owners are not the same), and you want to change replica ownership // to the AWS account that owns the destination bucket. If this is not specified // in the replication configuration, the replicas are owned by same AWS account // that owns the source object. AccessControlTranslation *AccessControlTranslation `type:"structure"` // Destination bucket owner account ID. In a cross-account scenario, if you // direct Amazon S3 to change replica ownership to the AWS account that owns // the destination bucket by specifying the AccessControlTranslation property, // this is the account ID of the destination bucket owner. For more information, // see Replication Additional Configuration: Change Replica Owner (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-change-owner.html) // in the Amazon Simple Storage Service Developer Guide. Account *string `type:"string"` // The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to // store the results. // // Bucket is a required field Bucket *string `type:"string" required:"true"` // A container that provides information about encryption. If SourceSelectionCriteria // is specified, you must specify this element. EncryptionConfiguration *EncryptionConfiguration `type:"structure"` // A container specifying replication metrics-related information, including // whether emitting metrics and Amazon S3 events for replication are enabled. // In addition, contains configurations related to specific metrics or events. // Must be specified together with a ReplicationTime block. Metrics *Metrics `type:"structure"` // A container specifying the time when all objects and operations on objects // are replicated. Must be specified together with a Metrics block. ReplicationTime *ReplicationTime `type:"structure"` // The storage class to use when replicating objects, such as standard or reduced // redundancy. By default, Amazon S3 uses the storage class of the source object // to create the object replica. // // For valid values, see the StorageClass element of the PUT Bucket replication // (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html) // action in the Amazon Simple Storage Service API Reference. StorageClass *string `type:"string" enum:"StorageClass"` // contains filtered or unexported fields }
Specifies information about where to publish analysis or configuration results for an Amazon S3 bucket.
func (s Destination) GoString() string
GoString returns the string representation
func (s *Destination) SetAccessControlTranslation(v *AccessControlTranslation) *Destination
SetAccessControlTranslation sets the AccessControlTranslation field's value.
func (s *Destination) SetAccount(v string) *Destination
SetAccount sets the Account field's value.
func (s *Destination) SetBucket(v string) *Destination
SetBucket sets the Bucket field's value.
func (s *Destination) SetEncryptionConfiguration(v *EncryptionConfiguration) *Destination
SetEncryptionConfiguration sets the EncryptionConfiguration field's value.
func (s *Destination) SetMetrics(v *Metrics) *Destination
SetMetrics sets the Metrics field's value.
func (s *Destination) SetReplicationTime(v *ReplicationTime) *Destination
SetReplicationTime sets the ReplicationTime field's value.
func (s *Destination) SetStorageClass(v string) *Destination
SetStorageClass sets the StorageClass field's value.
func (s Destination) String() string
String returns the string representation
func (s *Destination) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type Encryption struct { // The server-side encryption algorithm used when storing job results in Amazon // S3 (e.g., AES256, aws:kms). // // EncryptionType is a required field EncryptionType *string `type:"string" required:"true" enum:"ServerSideEncryption"` // If the encryption type is aws:kms, this optional value can be used to specify // the encryption context for the restore results. KMSContext *string `type:"string"` // If the encryption type is aws:kms, this optional value specifies the AWS // KMS key ID to use for encryption of job results. KMSKeyId *string `type:"string" sensitive:"true"` // contains filtered or unexported fields }
Contains the type of server-side encryption used.
func (s Encryption) GoString() string
GoString returns the string representation
func (s *Encryption) SetEncryptionType(v string) *Encryption
SetEncryptionType sets the EncryptionType field's value.
func (s *Encryption) SetKMSContext(v string) *Encryption
SetKMSContext sets the KMSContext field's value.
func (s *Encryption) SetKMSKeyId(v string) *Encryption
SetKMSKeyId sets the KMSKeyId field's value.
func (s Encryption) String() string
String returns the string representation
func (s *Encryption) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type EncryptionConfiguration struct { // Specifies the AWS KMS Key ID (Key ARN or Alias ARN) for the destination bucket. // Amazon S3 uses this key to encrypt replica objects. ReplicaKmsKeyID *string `type:"string"` // contains filtered or unexported fields }
Specifies encryption-related information for an Amazon S3 bucket that is a destination for replicated objects.
func (s EncryptionConfiguration) GoString() string
GoString returns the string representation
func (s *EncryptionConfiguration) SetReplicaKmsKeyID(v string) *EncryptionConfiguration
SetReplicaKmsKeyID sets the ReplicaKmsKeyID field's value.
func (s EncryptionConfiguration) String() string
String returns the string representation
type EndEvent struct {
// contains filtered or unexported fields
}
A message that indicates the request is complete and no more messages will be sent. You should not assume that the request is complete until the client receives an EndEvent.
func (s EndEvent) GoString() string
GoString returns the string representation
func (s EndEvent) String() string
String returns the string representation
func (s *EndEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the EndEvent value. This method is only used internally within the SDK's EventStream handling.
type Error struct { // The error code is a string that uniquely identifies an error condition. It // is meant to be read and understood by programs that detect and handle errors // by type. // // Amazon S3 error codes // // * Code: AccessDenied Description: Access Denied HTTP Status Code: 403 // Forbidden SOAP Fault Code Prefix: Client // // * Code: AccountProblem Description: There is a problem with your AWS account // that prevents the operation from completing successfully. Contact AWS // Support for further assistance. HTTP Status Code: 403 Forbidden SOAP Fault // Code Prefix: Client // // * Code: AllAccessDisabled Description: All access to this Amazon S3 resource // has been disabled. Contact AWS Support for further assistance. HTTP Status // Code: 403 Forbidden SOAP Fault Code Prefix: Client // // * Code: AmbiguousGrantByEmailAddress Description: The email address you // provided is associated with more than one account. HTTP Status Code: 400 // Bad Request SOAP Fault Code Prefix: Client // // * Code: AuthorizationHeaderMalformed Description: The authorization header // you provided is invalid. HTTP Status Code: 400 Bad Request HTTP Status // Code: N/A // // * Code: BadDigest Description: The Content-MD5 you specified did not match // what we received. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: // Client // // * Code: BucketAlreadyExists Description: The requested bucket name is // not available. The bucket namespace is shared by all users of the system. // Please select a different name and try again. HTTP Status Code: 409 Conflict // SOAP Fault Code Prefix: Client // // * Code: BucketAlreadyOwnedByYou Description: The bucket you tried to create // already exists, and you own it. Amazon S3 returns this error in all AWS // Regions except in the North Virginia region. For legacy compatibility, // if you re-create an existing bucket that you already own in the North // Virginia region, Amazon S3 returns 200 OK and resets the bucket access // control lists (ACLs). Code: 409 Conflict (in all regions except the North // Virginia region) SOAP Fault Code Prefix: Client // // * Code: BucketNotEmpty Description: The bucket you tried to delete is // not empty. HTTP Status Code: 409 Conflict SOAP Fault Code Prefix: Client // // * Code: CredentialsNotSupported Description: This request does not support // credentials. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: // Client // // * Code: CrossLocationLoggingProhibited Description: Cross-location logging // not allowed. Buckets in one geographic location cannot log information // to a bucket in another location. HTTP Status Code: 403 Forbidden SOAP // Fault Code Prefix: Client // // * Code: EntityTooSmall Description: Your proposed upload is smaller than // the minimum allowed object size. HTTP Status Code: 400 Bad Request SOAP // Fault Code Prefix: Client // // * Code: EntityTooLarge Description: Your proposed upload exceeds the maximum // allowed object size. HTTP Status Code: 400 Bad Request SOAP Fault Code // Prefix: Client // // * Code: ExpiredToken Description: The provided token has expired. HTTP // Status Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: IllegalVersioningConfigurationException Description: Indicates // that the versioning configuration specified in the request is invalid. // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: IncompleteBody Description: You did not provide the number of // bytes specified by the Content-Length HTTP header HTTP Status Code: 400 // Bad Request SOAP Fault Code Prefix: Client // // * Code: IncorrectNumberOfFilesInPostRequest Description: POST requires // exactly one file upload per request. HTTP Status Code: 400 Bad Request // SOAP Fault Code Prefix: Client // // * Code: InlineDataTooLarge Description: Inline data exceeds the maximum // allowed size. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: // Client // // * Code: InternalError Description: We encountered an internal error. Please // try again. HTTP Status Code: 500 Internal Server Error SOAP Fault Code // Prefix: Server // // * Code: InvalidAccessKeyId Description: The AWS access key ID you provided // does not exist in our records. HTTP Status Code: 403 Forbidden SOAP Fault // Code Prefix: Client // // * Code: InvalidAddressingHeader Description: You must specify the Anonymous // role. HTTP Status Code: N/A SOAP Fault Code Prefix: Client // // * Code: InvalidArgument Description: Invalid Argument HTTP Status Code: // 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: InvalidBucketName Description: The specified bucket is not valid. // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: InvalidBucketState Description: The request is not valid with // the current state of the bucket. HTTP Status Code: 409 Conflict SOAP Fault // Code Prefix: Client // // * Code: InvalidDigest Description: The Content-MD5 you specified is not // valid. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: InvalidEncryptionAlgorithmError Description: The encryption request // you specified is not valid. The valid value is AES256. HTTP Status Code: // 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: InvalidLocationConstraint Description: The specified location // constraint is not valid. For more information about Regions, see How to // Select a Region for Your Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html#access-bucket-intro). // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: InvalidObjectState Description: The operation is not valid for // the current state of the object. HTTP Status Code: 403 Forbidden SOAP // Fault Code Prefix: Client // // * Code: InvalidPart Description: One or more of the specified parts could // not be found. The part might not have been uploaded, or the specified // entity tag might not have matched the part's entity tag. HTTP Status Code: // 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: InvalidPartOrder Description: The list of parts was not in ascending // order. Parts list must be specified in order by part number. HTTP Status // Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: InvalidPayer Description: All access to this object has been disabled. // Please contact AWS Support for further assistance. HTTP Status Code: 403 // Forbidden SOAP Fault Code Prefix: Client // // * Code: InvalidPolicyDocument Description: The content of the form does // not meet the conditions specified in the policy document. HTTP Status // Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: InvalidRange Description: The requested range cannot be satisfied. // HTTP Status Code: 416 Requested Range Not Satisfiable SOAP Fault Code // Prefix: Client // // * Code: InvalidRequest Description: Please use AWS4-HMAC-SHA256. HTTP // Status Code: 400 Bad Request Code: N/A // // * Code: InvalidRequest Description: SOAP requests must be made over an // HTTPS connection. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: // Client // // * Code: InvalidRequest Description: Amazon S3 Transfer Acceleration is // not supported for buckets with non-DNS compliant names. HTTP Status Code: // 400 Bad Request Code: N/A // // * Code: InvalidRequest Description: Amazon S3 Transfer Acceleration is // not supported for buckets with periods (.) in their names. HTTP Status // Code: 400 Bad Request Code: N/A // // * Code: InvalidRequest Description: Amazon S3 Transfer Accelerate endpoint // only supports virtual style requests. HTTP Status Code: 400 Bad Request // Code: N/A // // * Code: InvalidRequest Description: Amazon S3 Transfer Accelerate is not // configured on this bucket. HTTP Status Code: 400 Bad Request Code: N/A // // * Code: InvalidRequest Description: Amazon S3 Transfer Accelerate is disabled // on this bucket. HTTP Status Code: 400 Bad Request Code: N/A // // * Code: InvalidRequest Description: Amazon S3 Transfer Acceleration is // not supported on this bucket. Contact AWS Support for more information. // HTTP Status Code: 400 Bad Request Code: N/A // // * Code: InvalidRequest Description: Amazon S3 Transfer Acceleration cannot // be enabled on this bucket. Contact AWS Support for more information. HTTP // Status Code: 400 Bad Request Code: N/A // // * Code: InvalidSecurity Description: The provided security credentials // are not valid. HTTP Status Code: 403 Forbidden SOAP Fault Code Prefix: // Client // // * Code: InvalidSOAPRequest Description: The SOAP request body is invalid. // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: InvalidStorageClass Description: The storage class you specified // is not valid. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: // Client // // * Code: InvalidTargetBucketForLogging Description: The target bucket for // logging does not exist, is not owned by you, or does not have the appropriate // grants for the log-delivery group. HTTP Status Code: 400 Bad Request SOAP // Fault Code Prefix: Client // // * Code: InvalidToken Description: The provided token is malformed or otherwise // invalid. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: InvalidURI Description: Couldn't parse the specified URI. HTTP // Status Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: KeyTooLongError Description: Your key is too long. HTTP Status // Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: MalformedACLError Description: The XML you provided was not well-formed // or did not validate against our published schema. HTTP Status Code: 400 // Bad Request SOAP Fault Code Prefix: Client // // * Code: MalformedPOSTRequest Description: The body of your POST request // is not well-formed multipart/form-data. HTTP Status Code: 400 Bad Request // SOAP Fault Code Prefix: Client // // * Code: MalformedXML Description: This happens when the user sends malformed // XML (XML that doesn't conform to the published XSD) for the configuration. // The error message is, "The XML you provided was not well-formed or did // not validate against our published schema." HTTP Status Code: 400 Bad // Request SOAP Fault Code Prefix: Client // // * Code: MaxMessageLengthExceeded Description: Your request was too big. // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: MaxPostPreDataLengthExceededError Description: Your POST request // fields preceding the upload file were too large. HTTP Status Code: 400 // Bad Request SOAP Fault Code Prefix: Client // // * Code: MetadataTooLarge Description: Your metadata headers exceed the // maximum allowed metadata size. HTTP Status Code: 400 Bad Request SOAP // Fault Code Prefix: Client // // * Code: MethodNotAllowed Description: The specified method is not allowed // against this resource. HTTP Status Code: 405 Method Not Allowed SOAP Fault // Code Prefix: Client // // * Code: MissingAttachment Description: A SOAP attachment was expected, // but none were found. HTTP Status Code: N/A SOAP Fault Code Prefix: Client // // * Code: MissingContentLength Description: You must provide the Content-Length // HTTP header. HTTP Status Code: 411 Length Required SOAP Fault Code Prefix: // Client // // * Code: MissingRequestBodyError Description: This happens when the user // sends an empty XML document as a request. The error message is, "Request // body is empty." HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: // Client // // * Code: MissingSecurityElement Description: The SOAP 1.1 request is missing // a security element. HTTP Status Code: 400 Bad Request SOAP Fault Code // Prefix: Client // // * Code: MissingSecurityHeader Description: Your request is missing a required // header. HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: NoLoggingStatusForKey Description: There is no such thing as a // logging status subresource for a key. HTTP Status Code: 400 Bad Request // SOAP Fault Code Prefix: Client // // * Code: NoSuchBucket Description: The specified bucket does not exist. // HTTP Status Code: 404 Not Found SOAP Fault Code Prefix: Client // // * Code: NoSuchBucketPolicy Description: The specified bucket does not // have a bucket policy. HTTP Status Code: 404 Not Found SOAP Fault Code // Prefix: Client // // * Code: NoSuchKey Description: The specified key does not exist. HTTP // Status Code: 404 Not Found SOAP Fault Code Prefix: Client // // * Code: NoSuchLifecycleConfiguration Description: The lifecycle configuration // does not exist. HTTP Status Code: 404 Not Found SOAP Fault Code Prefix: // Client // // * Code: NoSuchUpload Description: The specified multipart upload does // not exist. The upload ID might be invalid, or the multipart upload might // have been aborted or completed. HTTP Status Code: 404 Not Found SOAP Fault // Code Prefix: Client // // * Code: NoSuchVersion Description: Indicates that the version ID specified // in the request does not match an existing version. HTTP Status Code: 404 // Not Found SOAP Fault Code Prefix: Client // // * Code: NotImplemented Description: A header you provided implies functionality // that is not implemented. HTTP Status Code: 501 Not Implemented SOAP Fault // Code Prefix: Server // // * Code: NotSignedUp Description: Your account is not signed up for the // Amazon S3 service. You must sign up before you can use Amazon S3. You // can sign up at the following URL: https://aws.amazon.com/s3 HTTP Status // Code: 403 Forbidden SOAP Fault Code Prefix: Client // // * Code: OperationAborted Description: A conflicting conditional operation // is currently in progress against this resource. Try again. HTTP Status // Code: 409 Conflict SOAP Fault Code Prefix: Client // // * Code: PermanentRedirect Description: The bucket you are attempting to // access must be addressed using the specified endpoint. Send all future // requests to this endpoint. HTTP Status Code: 301 Moved Permanently SOAP // Fault Code Prefix: Client // // * Code: PreconditionFailed Description: At least one of the preconditions // you specified did not hold. HTTP Status Code: 412 Precondition Failed // SOAP Fault Code Prefix: Client // // * Code: Redirect Description: Temporary redirect. HTTP Status Code: 307 // Moved Temporarily SOAP Fault Code Prefix: Client // // * Code: RestoreAlreadyInProgress Description: Object restore is already // in progress. HTTP Status Code: 409 Conflict SOAP Fault Code Prefix: Client // // * Code: RequestIsNotMultiPartContent Description: Bucket POST must be // of the enclosure-type multipart/form-data. HTTP Status Code: 400 Bad Request // SOAP Fault Code Prefix: Client // // * Code: RequestTimeout Description: Your socket connection to the server // was not read from or written to within the timeout period. HTTP Status // Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: RequestTimeTooSkewed Description: The difference between the request // time and the server's time is too large. HTTP Status Code: 403 Forbidden // SOAP Fault Code Prefix: Client // // * Code: RequestTorrentOfBucketError Description: Requesting the torrent // file of a bucket is not permitted. HTTP Status Code: 400 Bad Request SOAP // Fault Code Prefix: Client // // * Code: SignatureDoesNotMatch Description: The request signature we calculated // does not match the signature you provided. Check your AWS secret access // key and signing method. For more information, see REST Authentication // (https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html) // and SOAP Authentication (https://docs.aws.amazon.com/AmazonS3/latest/dev/SOAPAuthentication.html) // for details. HTTP Status Code: 403 Forbidden SOAP Fault Code Prefix: Client // // * Code: ServiceUnavailable Description: Reduce your request rate. HTTP // Status Code: 503 Service Unavailable SOAP Fault Code Prefix: Server // // * Code: SlowDown Description: Reduce your request rate. HTTP Status Code: // 503 Slow Down SOAP Fault Code Prefix: Server // // * Code: TemporaryRedirect Description: You are being redirected to the // bucket while DNS updates. HTTP Status Code: 307 Moved Temporarily SOAP // Fault Code Prefix: Client // // * Code: TokenRefreshRequired Description: The provided token must be refreshed. // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: TooManyBuckets Description: You have attempted to create more // buckets than allowed. HTTP Status Code: 400 Bad Request SOAP Fault Code // Prefix: Client // // * Code: UnexpectedContent Description: This request does not support content. // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client // // * Code: UnresolvableGrantByEmailAddress Description: The email address // you provided does not match any account on record. HTTP Status Code: 400 // Bad Request SOAP Fault Code Prefix: Client // // * Code: UserKeyMustBeSpecified Description: The bucket POST must contain // the specified field name. If it is specified, check the order of the fields. // HTTP Status Code: 400 Bad Request SOAP Fault Code Prefix: Client Code *string `type:"string"` // The error key. Key *string `min:"1" type:"string"` // The error message contains a generic description of the error condition in // English. It is intended for a human audience. Simple programs display the // message directly to the end user if they encounter an error condition they // don't know how or don't care to handle. Sophisticated programs with more // exhaustive error handling and proper internationalization are more likely // to ignore the error message. Message *string `type:"string"` // The version ID of the error. VersionId *string `type:"string"` // contains filtered or unexported fields }
Container for all error elements.
func (s Error) GoString() string
GoString returns the string representation
func (s *Error) SetCode(v string) *Error
SetCode sets the Code field's value.
func (s *Error) SetKey(v string) *Error
SetKey sets the Key field's value.
func (s *Error) SetMessage(v string) *Error
SetMessage sets the Message field's value.
func (s *Error) SetVersionId(v string) *Error
SetVersionId sets the VersionId field's value.
func (s Error) String() string
String returns the string representation
type ErrorDocument struct { // The object key name to use when a 4XX class error occurs. // // Key is a required field Key *string `min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
The error information.
func (s ErrorDocument) GoString() string
GoString returns the string representation
func (s *ErrorDocument) SetKey(v string) *ErrorDocument
SetKey sets the Key field's value.
func (s ErrorDocument) String() string
String returns the string representation
func (s *ErrorDocument) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExistingObjectReplication struct { // Specifies whether existing object replication is enabled. // // Status is a required field Status *string `type:"string" required:"true" enum:"ExistingObjectReplicationStatus"` // contains filtered or unexported fields }
A container that specifies information about existing object replication. You can choose whether to enable or disable the replication of existing objects.
func (s ExistingObjectReplication) GoString() string
GoString returns the string representation
func (s *ExistingObjectReplication) SetStatus(v string) *ExistingObjectReplication
SetStatus sets the Status field's value.
func (s ExistingObjectReplication) String() string
String returns the string representation
func (s *ExistingObjectReplication) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type FilterRule struct { // The object key name prefix or suffix identifying one or more objects to which // the filtering rule applies. The maximum length is 1,024 characters. Overlapping // prefixes and suffixes are not supported. For more information, see Configuring // Event Notifications (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) // in the Amazon Simple Storage Service Developer Guide. Name *string `type:"string" enum:"FilterRuleName"` // The value that the filter searches for in object key names. Value *string `type:"string"` // contains filtered or unexported fields }
Specifies the Amazon S3 object key name to filter on and whether to filter on the suffix or prefix of the key name.
func (s FilterRule) GoString() string
GoString returns the string representation
func (s *FilterRule) SetName(v string) *FilterRule
SetName sets the Name field's value.
func (s *FilterRule) SetValue(v string) *FilterRule
SetValue sets the Value field's value.
func (s FilterRule) String() string
String returns the string representation
type GetBucketAccelerateConfigurationInput struct { // Name of the bucket for which the accelerate configuration is retrieved. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketAccelerateConfigurationInput) GoString() string
GoString returns the string representation
func (s *GetBucketAccelerateConfigurationInput) SetBucket(v string) *GetBucketAccelerateConfigurationInput
SetBucket sets the Bucket field's value.
func (s GetBucketAccelerateConfigurationInput) String() string
String returns the string representation
func (s *GetBucketAccelerateConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketAccelerateConfigurationOutput struct { // The accelerate configuration of the bucket. Status *string `type:"string" enum:"BucketAccelerateStatus"` // contains filtered or unexported fields }
func (s GetBucketAccelerateConfigurationOutput) GoString() string
GoString returns the string representation
func (s *GetBucketAccelerateConfigurationOutput) SetStatus(v string) *GetBucketAccelerateConfigurationOutput
SetStatus sets the Status field's value.
func (s GetBucketAccelerateConfigurationOutput) String() string
String returns the string representation
type GetBucketAclInput struct { // Specifies the S3 bucket whose ACL is being requested. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketAclInput) GoString() string
GoString returns the string representation
func (s *GetBucketAclInput) SetBucket(v string) *GetBucketAclInput
SetBucket sets the Bucket field's value.
func (s GetBucketAclInput) String() string
String returns the string representation
func (s *GetBucketAclInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketAclOutput struct { // A list of grants. Grants []*Grant `locationName:"AccessControlList" locationNameList:"Grant" type:"list"` // Container for the bucket owner's display name and ID. Owner *Owner `type:"structure"` // contains filtered or unexported fields }
func (s GetBucketAclOutput) GoString() string
GoString returns the string representation
func (s *GetBucketAclOutput) SetGrants(v []*Grant) *GetBucketAclOutput
SetGrants sets the Grants field's value.
func (s *GetBucketAclOutput) SetOwner(v *Owner) *GetBucketAclOutput
SetOwner sets the Owner field's value.
func (s GetBucketAclOutput) String() string
String returns the string representation
type GetBucketAnalyticsConfigurationInput struct { // The name of the bucket from which an analytics configuration is retrieved. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The ID that identifies the analytics configuration. // // Id is a required field Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketAnalyticsConfigurationInput) GoString() string
GoString returns the string representation
func (s *GetBucketAnalyticsConfigurationInput) SetBucket(v string) *GetBucketAnalyticsConfigurationInput
SetBucket sets the Bucket field's value.
func (s *GetBucketAnalyticsConfigurationInput) SetId(v string) *GetBucketAnalyticsConfigurationInput
SetId sets the Id field's value.
func (s GetBucketAnalyticsConfigurationInput) String() string
String returns the string representation
func (s *GetBucketAnalyticsConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketAnalyticsConfigurationOutput struct { // The configuration and any analyses for the analytics filter. AnalyticsConfiguration *AnalyticsConfiguration `type:"structure"` // contains filtered or unexported fields }
func (s GetBucketAnalyticsConfigurationOutput) GoString() string
GoString returns the string representation
func (s *GetBucketAnalyticsConfigurationOutput) SetAnalyticsConfiguration(v *AnalyticsConfiguration) *GetBucketAnalyticsConfigurationOutput
SetAnalyticsConfiguration sets the AnalyticsConfiguration field's value.
func (s GetBucketAnalyticsConfigurationOutput) String() string
String returns the string representation
type GetBucketCorsInput struct { // The bucket name for which to get the cors configuration. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketCorsInput) GoString() string
GoString returns the string representation
func (s *GetBucketCorsInput) SetBucket(v string) *GetBucketCorsInput
SetBucket sets the Bucket field's value.
func (s GetBucketCorsInput) String() string
String returns the string representation
func (s *GetBucketCorsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketCorsOutput struct { // A set of origins and methods (cross-origin access that you want to allow). // You can add up to 100 rules to the configuration. CORSRules []*CORSRule `locationName:"CORSRule" type:"list" flattened:"true"` // contains filtered or unexported fields }
func (s GetBucketCorsOutput) GoString() string
GoString returns the string representation
func (s *GetBucketCorsOutput) SetCORSRules(v []*CORSRule) *GetBucketCorsOutput
SetCORSRules sets the CORSRules field's value.
func (s GetBucketCorsOutput) String() string
String returns the string representation
type GetBucketEncryptionInput struct { // The name of the bucket from which the server-side encryption configuration // is retrieved. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketEncryptionInput) GoString() string
GoString returns the string representation
func (s *GetBucketEncryptionInput) SetBucket(v string) *GetBucketEncryptionInput
SetBucket sets the Bucket field's value.
func (s GetBucketEncryptionInput) String() string
String returns the string representation
func (s *GetBucketEncryptionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketEncryptionOutput struct { // Specifies the default server-side-encryption configuration. ServerSideEncryptionConfiguration *ServerSideEncryptionConfiguration `type:"structure"` // contains filtered or unexported fields }
func (s GetBucketEncryptionOutput) GoString() string
GoString returns the string representation
func (s *GetBucketEncryptionOutput) SetServerSideEncryptionConfiguration(v *ServerSideEncryptionConfiguration) *GetBucketEncryptionOutput
SetServerSideEncryptionConfiguration sets the ServerSideEncryptionConfiguration field's value.
func (s GetBucketEncryptionOutput) String() string
String returns the string representation
type GetBucketInventoryConfigurationInput struct { // The name of the bucket containing the inventory configuration to retrieve. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The ID used to identify the inventory configuration. // // Id is a required field Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketInventoryConfigurationInput) GoString() string
GoString returns the string representation
func (s *GetBucketInventoryConfigurationInput) SetBucket(v string) *GetBucketInventoryConfigurationInput
SetBucket sets the Bucket field's value.
func (s *GetBucketInventoryConfigurationInput) SetId(v string) *GetBucketInventoryConfigurationInput
SetId sets the Id field's value.
func (s GetBucketInventoryConfigurationInput) String() string
String returns the string representation
func (s *GetBucketInventoryConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketInventoryConfigurationOutput struct { // Specifies the inventory configuration. InventoryConfiguration *InventoryConfiguration `type:"structure"` // contains filtered or unexported fields }
func (s GetBucketInventoryConfigurationOutput) GoString() string
GoString returns the string representation
func (s *GetBucketInventoryConfigurationOutput) SetInventoryConfiguration(v *InventoryConfiguration) *GetBucketInventoryConfigurationOutput
SetInventoryConfiguration sets the InventoryConfiguration field's value.
func (s GetBucketInventoryConfigurationOutput) String() string
String returns the string representation
type GetBucketLifecycleConfigurationInput struct { // The name of the bucket for which to the the lifecycle information. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketLifecycleConfigurationInput) GoString() string
GoString returns the string representation
func (s *GetBucketLifecycleConfigurationInput) SetBucket(v string) *GetBucketLifecycleConfigurationInput
SetBucket sets the Bucket field's value.
func (s GetBucketLifecycleConfigurationInput) String() string
String returns the string representation
func (s *GetBucketLifecycleConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketLifecycleConfigurationOutput struct { // Container for a lifecycle rule. Rules []*LifecycleRule `locationName:"Rule" type:"list" flattened:"true"` // contains filtered or unexported fields }
func (s GetBucketLifecycleConfigurationOutput) GoString() string
GoString returns the string representation
func (s *GetBucketLifecycleConfigurationOutput) SetRules(v []*LifecycleRule) *GetBucketLifecycleConfigurationOutput
SetRules sets the Rules field's value.
func (s GetBucketLifecycleConfigurationOutput) String() string
String returns the string representation
type GetBucketLifecycleInput struct { // The name of the bucket for which to the the lifecycle information. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketLifecycleInput) GoString() string
GoString returns the string representation
func (s *GetBucketLifecycleInput) SetBucket(v string) *GetBucketLifecycleInput
SetBucket sets the Bucket field's value.
func (s GetBucketLifecycleInput) String() string
String returns the string representation
func (s *GetBucketLifecycleInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketLifecycleOutput struct { // Container for a lifecycle rule. Rules []*Rule `locationName:"Rule" type:"list" flattened:"true"` // contains filtered or unexported fields }
func (s GetBucketLifecycleOutput) GoString() string
GoString returns the string representation
func (s *GetBucketLifecycleOutput) SetRules(v []*Rule) *GetBucketLifecycleOutput
SetRules sets the Rules field's value.
func (s GetBucketLifecycleOutput) String() string
String returns the string representation
type GetBucketLocationInput struct { // The name of the bucket for which to get the location. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketLocationInput) GoString() string
GoString returns the string representation
func (s *GetBucketLocationInput) SetBucket(v string) *GetBucketLocationInput
SetBucket sets the Bucket field's value.
func (s GetBucketLocationInput) String() string
String returns the string representation
func (s *GetBucketLocationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketLocationOutput struct { // Specifies the region where the bucket resides. For a list of all the Amazon // S3 supported location constraints by region, see Regions and Endpoints (https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region). LocationConstraint *string `type:"string" enum:"BucketLocationConstraint"` // contains filtered or unexported fields }
func (s GetBucketLocationOutput) GoString() string
GoString returns the string representation
func (s *GetBucketLocationOutput) SetLocationConstraint(v string) *GetBucketLocationOutput
SetLocationConstraint sets the LocationConstraint field's value.
func (s GetBucketLocationOutput) String() string
String returns the string representation
type GetBucketLoggingInput struct { // The bucket name for which to get the logging information. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketLoggingInput) GoString() string
GoString returns the string representation
func (s *GetBucketLoggingInput) SetBucket(v string) *GetBucketLoggingInput
SetBucket sets the Bucket field's value.
func (s GetBucketLoggingInput) String() string
String returns the string representation
func (s *GetBucketLoggingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketLoggingOutput struct { // Describes where logs are stored and the prefix that Amazon S3 assigns to // all log object keys for a bucket. For more information, see PUT Bucket logging // (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlogging.html) // in the Amazon Simple Storage Service API Reference. LoggingEnabled *LoggingEnabled `type:"structure"` // contains filtered or unexported fields }
func (s GetBucketLoggingOutput) GoString() string
GoString returns the string representation
func (s *GetBucketLoggingOutput) SetLoggingEnabled(v *LoggingEnabled) *GetBucketLoggingOutput
SetLoggingEnabled sets the LoggingEnabled field's value.
func (s GetBucketLoggingOutput) String() string
String returns the string representation
type GetBucketMetricsConfigurationInput struct { // The name of the bucket containing the metrics configuration to retrieve. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The ID used to identify the metrics configuration. // // Id is a required field Id *string `location:"querystring" locationName:"id" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketMetricsConfigurationInput) GoString() string
GoString returns the string representation
func (s *GetBucketMetricsConfigurationInput) SetBucket(v string) *GetBucketMetricsConfigurationInput
SetBucket sets the Bucket field's value.
func (s *GetBucketMetricsConfigurationInput) SetId(v string) *GetBucketMetricsConfigurationInput
SetId sets the Id field's value.
func (s GetBucketMetricsConfigurationInput) String() string
String returns the string representation
func (s *GetBucketMetricsConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketMetricsConfigurationOutput struct { // Specifies the metrics configuration. MetricsConfiguration *MetricsConfiguration `type:"structure"` // contains filtered or unexported fields }
func (s GetBucketMetricsConfigurationOutput) GoString() string
GoString returns the string representation
func (s *GetBucketMetricsConfigurationOutput) SetMetricsConfiguration(v *MetricsConfiguration) *GetBucketMetricsConfigurationOutput
SetMetricsConfiguration sets the MetricsConfiguration field's value.
func (s GetBucketMetricsConfigurationOutput) String() string
String returns the string representation
type GetBucketNotificationConfigurationRequest struct { // Name of the bucket for which to get the notification configuration // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketNotificationConfigurationRequest) GoString() string
GoString returns the string representation
func (s *GetBucketNotificationConfigurationRequest) SetBucket(v string) *GetBucketNotificationConfigurationRequest
SetBucket sets the Bucket field's value.
func (s GetBucketNotificationConfigurationRequest) String() string
String returns the string representation
func (s *GetBucketNotificationConfigurationRequest) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketPolicyInput struct { // The bucket name for which to get the bucket policy. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketPolicyInput) GoString() string
GoString returns the string representation
func (s *GetBucketPolicyInput) SetBucket(v string) *GetBucketPolicyInput
SetBucket sets the Bucket field's value.
func (s GetBucketPolicyInput) String() string
String returns the string representation
func (s *GetBucketPolicyInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketPolicyOutput struct { // The bucket policy as a JSON document. Policy *string `type:"string"` // contains filtered or unexported fields }
func (s GetBucketPolicyOutput) GoString() string
GoString returns the string representation
func (s *GetBucketPolicyOutput) SetPolicy(v string) *GetBucketPolicyOutput
SetPolicy sets the Policy field's value.
func (s GetBucketPolicyOutput) String() string
String returns the string representation
type GetBucketPolicyStatusInput struct { // The name of the Amazon S3 bucket whose policy status you want to retrieve. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketPolicyStatusInput) GoString() string
GoString returns the string representation
func (s *GetBucketPolicyStatusInput) SetBucket(v string) *GetBucketPolicyStatusInput
SetBucket sets the Bucket field's value.
func (s GetBucketPolicyStatusInput) String() string
String returns the string representation
func (s *GetBucketPolicyStatusInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketPolicyStatusOutput struct { // The policy status for the specified bucket. PolicyStatus *PolicyStatus `type:"structure"` // contains filtered or unexported fields }
func (s GetBucketPolicyStatusOutput) GoString() string
GoString returns the string representation
func (s *GetBucketPolicyStatusOutput) SetPolicyStatus(v *PolicyStatus) *GetBucketPolicyStatusOutput
SetPolicyStatus sets the PolicyStatus field's value.
func (s GetBucketPolicyStatusOutput) String() string
String returns the string representation
type GetBucketReplicationInput struct { // The bucket name for which to get the replication information. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketReplicationInput) GoString() string
GoString returns the string representation
func (s *GetBucketReplicationInput) SetBucket(v string) *GetBucketReplicationInput
SetBucket sets the Bucket field's value.
func (s GetBucketReplicationInput) String() string
String returns the string representation
func (s *GetBucketReplicationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketReplicationOutput struct { // A container for replication rules. You can add up to 1,000 rules. The maximum // size of a replication configuration is 2 MB. ReplicationConfiguration *ReplicationConfiguration `type:"structure"` // contains filtered or unexported fields }
func (s GetBucketReplicationOutput) GoString() string
GoString returns the string representation
func (s *GetBucketReplicationOutput) SetReplicationConfiguration(v *ReplicationConfiguration) *GetBucketReplicationOutput
SetReplicationConfiguration sets the ReplicationConfiguration field's value.
func (s GetBucketReplicationOutput) String() string
String returns the string representation
type GetBucketRequestPaymentInput struct { // The name of the bucket for which to get the payment request configuration // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketRequestPaymentInput) GoString() string
GoString returns the string representation
func (s *GetBucketRequestPaymentInput) SetBucket(v string) *GetBucketRequestPaymentInput
SetBucket sets the Bucket field's value.
func (s GetBucketRequestPaymentInput) String() string
String returns the string representation
func (s *GetBucketRequestPaymentInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketRequestPaymentOutput struct { // Specifies who pays for the download and request fees. Payer *string `type:"string" enum:"Payer"` // contains filtered or unexported fields }
func (s GetBucketRequestPaymentOutput) GoString() string
GoString returns the string representation
func (s *GetBucketRequestPaymentOutput) SetPayer(v string) *GetBucketRequestPaymentOutput
SetPayer sets the Payer field's value.
func (s GetBucketRequestPaymentOutput) String() string
String returns the string representation
type GetBucketTaggingInput struct { // The name of the bucket for which to get the tagging information. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketTaggingInput) GoString() string
GoString returns the string representation
func (s *GetBucketTaggingInput) SetBucket(v string) *GetBucketTaggingInput
SetBucket sets the Bucket field's value.
func (s GetBucketTaggingInput) String() string
String returns the string representation
func (s *GetBucketTaggingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketTaggingOutput struct { // Contains the tag set. // // TagSet is a required field TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"` // contains filtered or unexported fields }
func (s GetBucketTaggingOutput) GoString() string
GoString returns the string representation
func (s *GetBucketTaggingOutput) SetTagSet(v []*Tag) *GetBucketTaggingOutput
SetTagSet sets the TagSet field's value.
func (s GetBucketTaggingOutput) String() string
String returns the string representation
type GetBucketVersioningInput struct { // The name of the bucket for which to get the versioning information. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketVersioningInput) GoString() string
GoString returns the string representation
func (s *GetBucketVersioningInput) SetBucket(v string) *GetBucketVersioningInput
SetBucket sets the Bucket field's value.
func (s GetBucketVersioningInput) String() string
String returns the string representation
func (s *GetBucketVersioningInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketVersioningOutput struct { // Specifies whether MFA delete is enabled in the bucket versioning configuration. // This element is only returned if the bucket has been configured with MFA // delete. If the bucket has never been so configured, this element is not returned. MFADelete *string `locationName:"MfaDelete" type:"string" enum:"MFADeleteStatus"` // The versioning state of the bucket. Status *string `type:"string" enum:"BucketVersioningStatus"` // contains filtered or unexported fields }
func (s GetBucketVersioningOutput) GoString() string
GoString returns the string representation
func (s *GetBucketVersioningOutput) SetMFADelete(v string) *GetBucketVersioningOutput
SetMFADelete sets the MFADelete field's value.
func (s *GetBucketVersioningOutput) SetStatus(v string) *GetBucketVersioningOutput
SetStatus sets the Status field's value.
func (s GetBucketVersioningOutput) String() string
String returns the string representation
type GetBucketWebsiteInput struct { // The bucket name for which to get the website configuration. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetBucketWebsiteInput) GoString() string
GoString returns the string representation
func (s *GetBucketWebsiteInput) SetBucket(v string) *GetBucketWebsiteInput
SetBucket sets the Bucket field's value.
func (s GetBucketWebsiteInput) String() string
String returns the string representation
func (s *GetBucketWebsiteInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetBucketWebsiteOutput struct { // The name of the error document for the website. ErrorDocument *ErrorDocument `type:"structure"` // The name of the index document for the website. IndexDocument *IndexDocument `type:"structure"` // Specifies the redirect behavior of all requests to a website endpoint of // an Amazon S3 bucket. RedirectAllRequestsTo *RedirectAllRequestsTo `type:"structure"` // Rules that define when a redirect is applied and the redirect behavior. RoutingRules []*RoutingRule `locationNameList:"RoutingRule" type:"list"` // contains filtered or unexported fields }
func (s GetBucketWebsiteOutput) GoString() string
GoString returns the string representation
func (s *GetBucketWebsiteOutput) SetErrorDocument(v *ErrorDocument) *GetBucketWebsiteOutput
SetErrorDocument sets the ErrorDocument field's value.
func (s *GetBucketWebsiteOutput) SetIndexDocument(v *IndexDocument) *GetBucketWebsiteOutput
SetIndexDocument sets the IndexDocument field's value.
func (s *GetBucketWebsiteOutput) SetRedirectAllRequestsTo(v *RedirectAllRequestsTo) *GetBucketWebsiteOutput
SetRedirectAllRequestsTo sets the RedirectAllRequestsTo field's value.
func (s *GetBucketWebsiteOutput) SetRoutingRules(v []*RoutingRule) *GetBucketWebsiteOutput
SetRoutingRules sets the RoutingRules field's value.
func (s GetBucketWebsiteOutput) String() string
String returns the string representation
type GetObjectAclInput struct { // The bucket name of the object for which to get the ACL information. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The key of the object for which to get the ACL information. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // VersionId used to reference a specific version of the object. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` // contains filtered or unexported fields }
func (s GetObjectAclInput) GoString() string
GoString returns the string representation
func (s *GetObjectAclInput) SetBucket(v string) *GetObjectAclInput
SetBucket sets the Bucket field's value.
func (s *GetObjectAclInput) SetKey(v string) *GetObjectAclInput
SetKey sets the Key field's value.
func (s *GetObjectAclInput) SetRequestPayer(v string) *GetObjectAclInput
SetRequestPayer sets the RequestPayer field's value.
func (s *GetObjectAclInput) SetVersionId(v string) *GetObjectAclInput
SetVersionId sets the VersionId field's value.
func (s GetObjectAclInput) String() string
String returns the string representation
func (s *GetObjectAclInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetObjectAclOutput struct { // A list of grants. Grants []*Grant `locationName:"AccessControlList" locationNameList:"Grant" type:"list"` // Container for the bucket owner's display name and ID. Owner *Owner `type:"structure"` // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` // contains filtered or unexported fields }
func (s GetObjectAclOutput) GoString() string
GoString returns the string representation
func (s *GetObjectAclOutput) SetGrants(v []*Grant) *GetObjectAclOutput
SetGrants sets the Grants field's value.
func (s *GetObjectAclOutput) SetOwner(v *Owner) *GetObjectAclOutput
SetOwner sets the Owner field's value.
func (s *GetObjectAclOutput) SetRequestCharged(v string) *GetObjectAclOutput
SetRequestCharged sets the RequestCharged field's value.
func (s GetObjectAclOutput) String() string
String returns the string representation
type GetObjectInput struct { // The bucket name containing the object. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Return the object only if its entity tag (ETag) is the same as the one specified, // otherwise return a 412 (precondition failed). IfMatch *string `location:"header" locationName:"If-Match" type:"string"` // Return the object only if it has been modified since the specified time, // otherwise return a 304 (not modified). IfModifiedSince *time.Time `location:"header" locationName:"If-Modified-Since" type:"timestamp"` // Return the object only if its entity tag (ETag) is different from the one // specified, otherwise return a 304 (not modified). IfNoneMatch *string `location:"header" locationName:"If-None-Match" type:"string"` // Return the object only if it has not been modified since the specified time, // otherwise return a 412 (precondition failed). IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp"` // Key of the object to get. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // Part number of the object being read. This is a positive integer between // 1 and 10,000. Effectively performs a 'ranged' GET request for the part specified. // Useful for downloading just a part of an object. PartNumber *int64 `location:"querystring" locationName:"partNumber" type:"integer"` // Downloads the specified range bytes of an object. For more information about // the HTTP Range header, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35. Range *string `location:"header" locationName:"Range" type:"string"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // Sets the Cache-Control header of the response. ResponseCacheControl *string `location:"querystring" locationName:"response-cache-control" type:"string"` // Sets the Content-Disposition header of the response ResponseContentDisposition *string `location:"querystring" locationName:"response-content-disposition" type:"string"` // Sets the Content-Encoding header of the response. ResponseContentEncoding *string `location:"querystring" locationName:"response-content-encoding" type:"string"` // Sets the Content-Language header of the response. ResponseContentLanguage *string `location:"querystring" locationName:"response-content-language" type:"string"` // Sets the Content-Type header of the response. ResponseContentType *string `location:"querystring" locationName:"response-content-type" type:"string"` // Sets the Expires header of the response. ResponseExpires *time.Time `location:"querystring" locationName:"response-expires" type:"timestamp"` // Specifies the algorithm to use to when encrypting the object (e.g., AES256). SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"` // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting // data. This value is used to store the object and then it is discarded; Amazon // does not store the encryption key. The key must be appropriate for use with // the algorithm specified in the x-amz-server-side-encryption-customer-algorithm // header. SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption // key was transmitted without error. SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"` // VersionId used to reference a specific version of the object. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` // contains filtered or unexported fields }
func (s GetObjectInput) GoString() string
GoString returns the string representation
func (s *GetObjectInput) SetBucket(v string) *GetObjectInput
SetBucket sets the Bucket field's value.
func (s *GetObjectInput) SetIfMatch(v string) *GetObjectInput
SetIfMatch sets the IfMatch field's value.
func (s *GetObjectInput) SetIfModifiedSince(v time.Time) *GetObjectInput
SetIfModifiedSince sets the IfModifiedSince field's value.
func (s *GetObjectInput) SetIfNoneMatch(v string) *GetObjectInput
SetIfNoneMatch sets the IfNoneMatch field's value.
func (s *GetObjectInput) SetIfUnmodifiedSince(v time.Time) *GetObjectInput
SetIfUnmodifiedSince sets the IfUnmodifiedSince field's value.
func (s *GetObjectInput) SetKey(v string) *GetObjectInput
SetKey sets the Key field's value.
func (s *GetObjectInput) SetPartNumber(v int64) *GetObjectInput
SetPartNumber sets the PartNumber field's value.
func (s *GetObjectInput) SetRange(v string) *GetObjectInput
SetRange sets the Range field's value.
func (s *GetObjectInput) SetRequestPayer(v string) *GetObjectInput
SetRequestPayer sets the RequestPayer field's value.
func (s *GetObjectInput) SetResponseCacheControl(v string) *GetObjectInput
SetResponseCacheControl sets the ResponseCacheControl field's value.
func (s *GetObjectInput) SetResponseContentDisposition(v string) *GetObjectInput
SetResponseContentDisposition sets the ResponseContentDisposition field's value.
func (s *GetObjectInput) SetResponseContentEncoding(v string) *GetObjectInput
SetResponseContentEncoding sets the ResponseContentEncoding field's value.
func (s *GetObjectInput) SetResponseContentLanguage(v string) *GetObjectInput
SetResponseContentLanguage sets the ResponseContentLanguage field's value.
func (s *GetObjectInput) SetResponseContentType(v string) *GetObjectInput
SetResponseContentType sets the ResponseContentType field's value.
func (s *GetObjectInput) SetResponseExpires(v time.Time) *GetObjectInput
SetResponseExpires sets the ResponseExpires field's value.
func (s *GetObjectInput) SetSSECustomerAlgorithm(v string) *GetObjectInput
SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
func (s *GetObjectInput) SetSSECustomerKey(v string) *GetObjectInput
SetSSECustomerKey sets the SSECustomerKey field's value.
func (s *GetObjectInput) SetSSECustomerKeyMD5(v string) *GetObjectInput
SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
func (s *GetObjectInput) SetVersionId(v string) *GetObjectInput
SetVersionId sets the VersionId field's value.
func (s GetObjectInput) String() string
String returns the string representation
func (s *GetObjectInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetObjectLegalHoldInput struct { // The bucket containing the object whose Legal Hold status you want to retrieve. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The key name for the object whose Legal Hold status you want to retrieve. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // The version ID of the object whose Legal Hold status you want to retrieve. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` // contains filtered or unexported fields }
func (s GetObjectLegalHoldInput) GoString() string
GoString returns the string representation
func (s *GetObjectLegalHoldInput) SetBucket(v string) *GetObjectLegalHoldInput
SetBucket sets the Bucket field's value.
func (s *GetObjectLegalHoldInput) SetKey(v string) *GetObjectLegalHoldInput
SetKey sets the Key field's value.
func (s *GetObjectLegalHoldInput) SetRequestPayer(v string) *GetObjectLegalHoldInput
SetRequestPayer sets the RequestPayer field's value.
func (s *GetObjectLegalHoldInput) SetVersionId(v string) *GetObjectLegalHoldInput
SetVersionId sets the VersionId field's value.
func (s GetObjectLegalHoldInput) String() string
String returns the string representation
func (s *GetObjectLegalHoldInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetObjectLegalHoldOutput struct { // The current Legal Hold status for the specified object. LegalHold *ObjectLockLegalHold `type:"structure"` // contains filtered or unexported fields }
func (s GetObjectLegalHoldOutput) GoString() string
GoString returns the string representation
func (s *GetObjectLegalHoldOutput) SetLegalHold(v *ObjectLockLegalHold) *GetObjectLegalHoldOutput
SetLegalHold sets the LegalHold field's value.
func (s GetObjectLegalHoldOutput) String() string
String returns the string representation
type GetObjectLockConfigurationInput struct { // The bucket whose Object Lock configuration you want to retrieve. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetObjectLockConfigurationInput) GoString() string
GoString returns the string representation
func (s *GetObjectLockConfigurationInput) SetBucket(v string) *GetObjectLockConfigurationInput
SetBucket sets the Bucket field's value.
func (s GetObjectLockConfigurationInput) String() string
String returns the string representation
func (s *GetObjectLockConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetObjectLockConfigurationOutput struct { // The specified bucket's Object Lock configuration. ObjectLockConfiguration *ObjectLockConfiguration `type:"structure"` // contains filtered or unexported fields }
func (s GetObjectLockConfigurationOutput) GoString() string
GoString returns the string representation
func (s *GetObjectLockConfigurationOutput) SetObjectLockConfiguration(v *ObjectLockConfiguration) *GetObjectLockConfigurationOutput
SetObjectLockConfiguration sets the ObjectLockConfiguration field's value.
func (s GetObjectLockConfigurationOutput) String() string
String returns the string representation
type GetObjectOutput struct { // Indicates that a range of bytes was specifed. AcceptRanges *string `location:"header" locationName:"accept-ranges" type:"string"` // Object data. Body io.ReadCloser `type:"blob"` // Specifies caching behavior along the request/reply chain. CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"` // Specifies presentational information for the object. ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"` // Specifies what content encodings have been applied to the object and thus // what decoding mechanisms must be applied to obtain the media-type referenced // by the Content-Type header field. ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"` // The language the content is in. ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"` // Size of the body in bytes. ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"` // The portion of the object returned in the response. ContentRange *string `location:"header" locationName:"Content-Range" type:"string"` // A standard MIME type describing the format of the object data. ContentType *string `location:"header" locationName:"Content-Type" type:"string"` // Specifies whether the object retrieved was (true) or was not (false) a Delete // Marker. If false, this response header does not appear in the response. DeleteMarker *bool `location:"header" locationName:"x-amz-delete-marker" type:"boolean"` // An ETag is an opaque identifier assigned by a web server to a specific version // of a resource found at a URL ETag *string `location:"header" locationName:"ETag" type:"string"` // If the object expiration is configured (see PUT Bucket lifecycle), the response // includes this header. It includes the expiry-date and rule-id key value pairs // providing object expiration information. The value of the rule-id is URL // encoded. Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"` // The date and time at which the object is no longer cacheable. Expires *string `location:"header" locationName:"Expires" type:"string"` // Last modified date of the object LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp"` // A map of metadata to store with the object in S3. Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"` // This is set to the number of metadata entries not returned in x-amz-meta // headers. This can happen if you create metadata using an API like SOAP that // supports more flexible metadata than the REST API. For example, using SOAP, // you can create metadata whose values are not legal HTTP headers. MissingMeta *int64 `location:"header" locationName:"x-amz-missing-meta" type:"integer"` // Indicates whether this object has an active legal hold. This field is only // returned if you have permission to view an object's legal hold status. ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"` // The Object Lock mode currently in place for this object. ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"` // The date and time when this object's Object Lock will expire. ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"` // The count of parts this object has. PartsCount *int64 `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"` // Amazon S3 can return this if your request involves a bucket that is either // a source or destination in a replication rule. ReplicationStatus *string `location:"header" locationName:"x-amz-replication-status" type:"string" enum:"ReplicationStatus"` // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` // Provides information about object restoration operation and expiration time // of the restored object copy. Restore *string `location:"header" locationName:"x-amz-restore" type:"string"` // If server-side encryption with a customer-provided encryption key was requested, // the response will include this header confirming the encryption algorithm // used. SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"` // If server-side encryption with a customer-provided encryption key was requested, // the response will include this header to provide round trip message integrity // verification of the customer-provided encryption key. SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"` // If present, specifies the ID of the AWS Key Management Service (KMS) customer // master key (CMK) that was used for the object. SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // The Server-side encryption algorithm used when storing this object in S3 // (e.g., AES256, aws:kms). ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"` // Provides storage class information of the object. Amazon S3 returns this // header for all objects except for Standard storage class objects. StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"` // The number of tags, if any, on the object. TagCount *int64 `location:"header" locationName:"x-amz-tagging-count" type:"integer"` // Version of the object. VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` // If the bucket is configured as a website, redirects requests for this object // to another object in the same bucket or to an external URL. Amazon S3 stores // the value of this header in the object metadata. WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"` // contains filtered or unexported fields }
func (s GetObjectOutput) GoString() string
GoString returns the string representation
func (s *GetObjectOutput) SetAcceptRanges(v string) *GetObjectOutput
SetAcceptRanges sets the AcceptRanges field's value.
func (s *GetObjectOutput) SetBody(v io.ReadCloser) *GetObjectOutput
SetBody sets the Body field's value.
func (s *GetObjectOutput) SetCacheControl(v string) *GetObjectOutput
SetCacheControl sets the CacheControl field's value.
func (s *GetObjectOutput) SetContentDisposition(v string) *GetObjectOutput
SetContentDisposition sets the ContentDisposition field's value.
func (s *GetObjectOutput) SetContentEncoding(v string) *GetObjectOutput
SetContentEncoding sets the ContentEncoding field's value.
func (s *GetObjectOutput) SetContentLanguage(v string) *GetObjectOutput
SetContentLanguage sets the ContentLanguage field's value.
func (s *GetObjectOutput) SetContentLength(v int64) *GetObjectOutput
SetContentLength sets the ContentLength field's value.
func (s *GetObjectOutput) SetContentRange(v string) *GetObjectOutput
SetContentRange sets the ContentRange field's value.
func (s *GetObjectOutput) SetContentType(v string) *GetObjectOutput
SetContentType sets the ContentType field's value.
func (s *GetObjectOutput) SetDeleteMarker(v bool) *GetObjectOutput
SetDeleteMarker sets the DeleteMarker field's value.
func (s *GetObjectOutput) SetETag(v string) *GetObjectOutput
SetETag sets the ETag field's value.
func (s *GetObjectOutput) SetExpiration(v string) *GetObjectOutput
SetExpiration sets the Expiration field's value.
func (s *GetObjectOutput) SetExpires(v string) *GetObjectOutput
SetExpires sets the Expires field's value.
func (s *GetObjectOutput) SetLastModified(v time.Time) *GetObjectOutput
SetLastModified sets the LastModified field's value.
func (s *GetObjectOutput) SetMetadata(v map[string]*string) *GetObjectOutput
SetMetadata sets the Metadata field's value.
func (s *GetObjectOutput) SetMissingMeta(v int64) *GetObjectOutput
SetMissingMeta sets the MissingMeta field's value.
func (s *GetObjectOutput) SetObjectLockLegalHoldStatus(v string) *GetObjectOutput
SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value.
func (s *GetObjectOutput) SetObjectLockMode(v string) *GetObjectOutput
SetObjectLockMode sets the ObjectLockMode field's value.
func (s *GetObjectOutput) SetObjectLockRetainUntilDate(v time.Time) *GetObjectOutput
SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value.
func (s *GetObjectOutput) SetPartsCount(v int64) *GetObjectOutput
SetPartsCount sets the PartsCount field's value.
func (s *GetObjectOutput) SetReplicationStatus(v string) *GetObjectOutput
SetReplicationStatus sets the ReplicationStatus field's value.
func (s *GetObjectOutput) SetRequestCharged(v string) *GetObjectOutput
SetRequestCharged sets the RequestCharged field's value.
func (s *GetObjectOutput) SetRestore(v string) *GetObjectOutput
SetRestore sets the Restore field's value.
func (s *GetObjectOutput) SetSSECustomerAlgorithm(v string) *GetObjectOutput
SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
func (s *GetObjectOutput) SetSSECustomerKeyMD5(v string) *GetObjectOutput
SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
func (s *GetObjectOutput) SetSSEKMSKeyId(v string) *GetObjectOutput
SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
func (s *GetObjectOutput) SetServerSideEncryption(v string) *GetObjectOutput
SetServerSideEncryption sets the ServerSideEncryption field's value.
func (s *GetObjectOutput) SetStorageClass(v string) *GetObjectOutput
SetStorageClass sets the StorageClass field's value.
func (s *GetObjectOutput) SetTagCount(v int64) *GetObjectOutput
SetTagCount sets the TagCount field's value.
func (s *GetObjectOutput) SetVersionId(v string) *GetObjectOutput
SetVersionId sets the VersionId field's value.
func (s *GetObjectOutput) SetWebsiteRedirectLocation(v string) *GetObjectOutput
SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.
func (s GetObjectOutput) String() string
String returns the string representation
type GetObjectRetentionInput struct { // The bucket containing the object whose retention settings you want to retrieve. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The key name for the object whose retention settings you want to retrieve. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // The version ID for the object whose retention settings you want to retrieve. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` // contains filtered or unexported fields }
func (s GetObjectRetentionInput) GoString() string
GoString returns the string representation
func (s *GetObjectRetentionInput) SetBucket(v string) *GetObjectRetentionInput
SetBucket sets the Bucket field's value.
func (s *GetObjectRetentionInput) SetKey(v string) *GetObjectRetentionInput
SetKey sets the Key field's value.
func (s *GetObjectRetentionInput) SetRequestPayer(v string) *GetObjectRetentionInput
SetRequestPayer sets the RequestPayer field's value.
func (s *GetObjectRetentionInput) SetVersionId(v string) *GetObjectRetentionInput
SetVersionId sets the VersionId field's value.
func (s GetObjectRetentionInput) String() string
String returns the string representation
func (s *GetObjectRetentionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetObjectRetentionOutput struct { // The container element for an object's retention settings. Retention *ObjectLockRetention `type:"structure"` // contains filtered or unexported fields }
func (s GetObjectRetentionOutput) GoString() string
GoString returns the string representation
func (s *GetObjectRetentionOutput) SetRetention(v *ObjectLockRetention) *GetObjectRetentionOutput
SetRetention sets the Retention field's value.
func (s GetObjectRetentionOutput) String() string
String returns the string representation
type GetObjectTaggingInput struct { // The bucket name containing the object for which to get the tagging information. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Object key for which to get the tagging information. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // The versionId of the object for which to get the tagging information. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` // contains filtered or unexported fields }
func (s GetObjectTaggingInput) GoString() string
GoString returns the string representation
func (s *GetObjectTaggingInput) SetBucket(v string) *GetObjectTaggingInput
SetBucket sets the Bucket field's value.
func (s *GetObjectTaggingInput) SetKey(v string) *GetObjectTaggingInput
SetKey sets the Key field's value.
func (s *GetObjectTaggingInput) SetVersionId(v string) *GetObjectTaggingInput
SetVersionId sets the VersionId field's value.
func (s GetObjectTaggingInput) String() string
String returns the string representation
func (s *GetObjectTaggingInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetObjectTaggingOutput struct { // Contains the tag set. // // TagSet is a required field TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"` // The versionId of the object for which you got the tagging information. VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` // contains filtered or unexported fields }
func (s GetObjectTaggingOutput) GoString() string
GoString returns the string representation
func (s *GetObjectTaggingOutput) SetTagSet(v []*Tag) *GetObjectTaggingOutput
SetTagSet sets the TagSet field's value.
func (s *GetObjectTaggingOutput) SetVersionId(v string) *GetObjectTaggingOutput
SetVersionId sets the VersionId field's value.
func (s GetObjectTaggingOutput) String() string
String returns the string representation
type GetObjectTorrentInput struct { // The name of the bucket containing the object for which to get the torrent // files. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The object key for which to get the information. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // contains filtered or unexported fields }
func (s GetObjectTorrentInput) GoString() string
GoString returns the string representation
func (s *GetObjectTorrentInput) SetBucket(v string) *GetObjectTorrentInput
SetBucket sets the Bucket field's value.
func (s *GetObjectTorrentInput) SetKey(v string) *GetObjectTorrentInput
SetKey sets the Key field's value.
func (s *GetObjectTorrentInput) SetRequestPayer(v string) *GetObjectTorrentInput
SetRequestPayer sets the RequestPayer field's value.
func (s GetObjectTorrentInput) String() string
String returns the string representation
func (s *GetObjectTorrentInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetObjectTorrentOutput struct { // A Bencoded dictionary as defined by the BitTorrent specification Body io.ReadCloser `type:"blob"` // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` // contains filtered or unexported fields }
func (s GetObjectTorrentOutput) GoString() string
GoString returns the string representation
func (s *GetObjectTorrentOutput) SetBody(v io.ReadCloser) *GetObjectTorrentOutput
SetBody sets the Body field's value.
func (s *GetObjectTorrentOutput) SetRequestCharged(v string) *GetObjectTorrentOutput
SetRequestCharged sets the RequestCharged field's value.
func (s GetObjectTorrentOutput) String() string
String returns the string representation
type GetPublicAccessBlockInput struct { // The name of the Amazon S3 bucket whose PublicAccessBlock configuration you // want to retrieve. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s GetPublicAccessBlockInput) GoString() string
GoString returns the string representation
func (s *GetPublicAccessBlockInput) SetBucket(v string) *GetPublicAccessBlockInput
SetBucket sets the Bucket field's value.
func (s GetPublicAccessBlockInput) String() string
String returns the string representation
func (s *GetPublicAccessBlockInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetPublicAccessBlockOutput struct { // The PublicAccessBlock configuration currently in effect for this Amazon S3 // bucket. PublicAccessBlockConfiguration *PublicAccessBlockConfiguration `type:"structure"` // contains filtered or unexported fields }
func (s GetPublicAccessBlockOutput) GoString() string
GoString returns the string representation
func (s *GetPublicAccessBlockOutput) SetPublicAccessBlockConfiguration(v *PublicAccessBlockConfiguration) *GetPublicAccessBlockOutput
SetPublicAccessBlockConfiguration sets the PublicAccessBlockConfiguration field's value.
func (s GetPublicAccessBlockOutput) String() string
String returns the string representation
type GlacierJobParameters struct { // Glacier retrieval tier at which the restore will be processed. // // Tier is a required field Tier *string `type:"string" required:"true" enum:"Tier"` // contains filtered or unexported fields }
Container for Glacier job parameters.
func (s GlacierJobParameters) GoString() string
GoString returns the string representation
func (s *GlacierJobParameters) SetTier(v string) *GlacierJobParameters
SetTier sets the Tier field's value.
func (s GlacierJobParameters) String() string
String returns the string representation
func (s *GlacierJobParameters) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type Grant struct { // The person being granted permissions. Grantee *Grantee `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"` // Specifies the permission given to the grantee. Permission *string `type:"string" enum:"Permission"` // contains filtered or unexported fields }
Container for grant information.
func (s Grant) GoString() string
GoString returns the string representation
func (s *Grant) SetGrantee(v *Grantee) *Grant
SetGrantee sets the Grantee field's value.
func (s *Grant) SetPermission(v string) *Grant
SetPermission sets the Permission field's value.
func (s Grant) String() string
String returns the string representation
func (s *Grant) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type Grantee struct { // Screen name of the grantee. DisplayName *string `type:"string"` // Email address of the grantee. EmailAddress *string `type:"string"` // The canonical user ID of the grantee. ID *string `type:"string"` // Type of grantee // // Type is a required field Type *string `locationName:"xsi:type" type:"string" xmlAttribute:"true" required:"true" enum:"Type"` // URI of the grantee group. URI *string `type:"string"` // contains filtered or unexported fields }
Container for the person being granted permissions.
func (s Grantee) GoString() string
GoString returns the string representation
func (s *Grantee) SetDisplayName(v string) *Grantee
SetDisplayName sets the DisplayName field's value.
func (s *Grantee) SetEmailAddress(v string) *Grantee
SetEmailAddress sets the EmailAddress field's value.
func (s *Grantee) SetID(v string) *Grantee
SetID sets the ID field's value.
func (s *Grantee) SetType(v string) *Grantee
SetType sets the Type field's value.
func (s *Grantee) SetURI(v string) *Grantee
SetURI sets the URI field's value.
func (s Grantee) String() string
String returns the string representation
func (s *Grantee) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type HeadBucketInput struct { // The bucket name. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // contains filtered or unexported fields }
func (s HeadBucketInput) GoString() string
GoString returns the string representation
func (s *HeadBucketInput) SetBucket(v string) *HeadBucketInput
SetBucket sets the Bucket field's value.
func (s HeadBucketInput) String() string
String returns the string representation
func (s *HeadBucketInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type HeadBucketOutput struct {
// contains filtered or unexported fields
}
func (s HeadBucketOutput) GoString() string
GoString returns the string representation
func (s HeadBucketOutput) String() string
String returns the string representation
type HeadObjectInput struct { // The name of the bucket containing the object. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Return the object only if its entity tag (ETag) is the same as the one specified, // otherwise return a 412 (precondition failed). IfMatch *string `location:"header" locationName:"If-Match" type:"string"` // Return the object only if it has been modified since the specified time, // otherwise return a 304 (not modified). IfModifiedSince *time.Time `location:"header" locationName:"If-Modified-Since" type:"timestamp"` // Return the object only if its entity tag (ETag) is different from the one // specified, otherwise return a 304 (not modified). IfNoneMatch *string `location:"header" locationName:"If-None-Match" type:"string"` // Return the object only if it has not been modified since the specified time, // otherwise return a 412 (precondition failed). IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp"` // The object key. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // Part number of the object being read. This is a positive integer between // 1 and 10,000. Effectively performs a 'ranged' HEAD request for the part specified. // Useful querying about the size of the part and the number of parts in this // object. PartNumber *int64 `location:"querystring" locationName:"partNumber" type:"integer"` // Downloads the specified range bytes of an object. For more information about // the HTTP Range header, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35. Range *string `location:"header" locationName:"Range" type:"string"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // Specifies the algorithm to use to when encrypting the object (e.g., AES256). SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"` // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting // data. This value is used to store the object and then it is discarded; Amazon // does not store the encryption key. The key must be appropriate for use with // the algorithm specified in the x-amz-server-side-encryption-customer-algorithm // header. SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"` // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. // Amazon S3 uses this header for a message integrity check to ensure the encryption // key was transmitted without error. SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"` // VersionId used to reference a specific version of the object. VersionId *string `location:"querystring" locationName:"versionId" type:"string"` // contains filtered or unexported fields }
func (s HeadObjectInput) GoString() string
GoString returns the string representation
func (s *HeadObjectInput) SetBucket(v string) *HeadObjectInput
SetBucket sets the Bucket field's value.
func (s *HeadObjectInput) SetIfMatch(v string) *HeadObjectInput
SetIfMatch sets the IfMatch field's value.
func (s *HeadObjectInput) SetIfModifiedSince(v time.Time) *HeadObjectInput
SetIfModifiedSince sets the IfModifiedSince field's value.
func (s *HeadObjectInput) SetIfNoneMatch(v string) *HeadObjectInput
SetIfNoneMatch sets the IfNoneMatch field's value.
func (s *HeadObjectInput) SetIfUnmodifiedSince(v time.Time) *HeadObjectInput
SetIfUnmodifiedSince sets the IfUnmodifiedSince field's value.
func (s *HeadObjectInput) SetKey(v string) *HeadObjectInput
SetKey sets the Key field's value.
func (s *HeadObjectInput) SetPartNumber(v int64) *HeadObjectInput
SetPartNumber sets the PartNumber field's value.
func (s *HeadObjectInput) SetRange(v string) *HeadObjectInput
SetRange sets the Range field's value.
func (s *HeadObjectInput) SetRequestPayer(v string) *HeadObjectInput
SetRequestPayer sets the RequestPayer field's value.
func (s *HeadObjectInput) SetSSECustomerAlgorithm(v string) *HeadObjectInput
SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
func (s *HeadObjectInput) SetSSECustomerKey(v string) *HeadObjectInput
SetSSECustomerKey sets the SSECustomerKey field's value.
func (s *HeadObjectInput) SetSSECustomerKeyMD5(v string) *HeadObjectInput
SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
func (s *HeadObjectInput) SetVersionId(v string) *HeadObjectInput
SetVersionId sets the VersionId field's value.
func (s HeadObjectInput) String() string
String returns the string representation
func (s *HeadObjectInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type HeadObjectOutput struct { // Indicates that a range of bytes was specifed. AcceptRanges *string `location:"header" locationName:"accept-ranges" type:"string"` // Specifies caching behavior along the request/reply chain. CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"` // Specifies presentational information for the object. ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"` // Specifies what content encodings have been applied to the object and thus // what decoding mechanisms must be applied to obtain the media-type referenced // by the Content-Type header field. ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"` // The language the content is in. ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"` // Size of the body in bytes. ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"` // A standard MIME type describing the format of the object data. ContentType *string `location:"header" locationName:"Content-Type" type:"string"` // Specifies whether the object retrieved was (true) or was not (false) a Delete // Marker. If false, this response header does not appear in the response. DeleteMarker *bool `location:"header" locationName:"x-amz-delete-marker" type:"boolean"` // An ETag is an opaque identifier assigned by a web server to a specific version // of a resource found at a URL ETag *string `location:"header" locationName:"ETag" type:"string"` // If the object expiration is configured (see PUT Bucket lifecycle), the response // includes this header. It includes the expiry-date and rule-id key value pairs // providing object expiration information. The value of the rule-id is URL // encoded. Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"` // The date and time at which the object is no longer cacheable. Expires *string `location:"header" locationName:"Expires" type:"string"` // Last modified date of the object LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp"` // A map of metadata to store with the object in S3. Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"` // This is set to the number of metadata entries not returned in x-amz-meta // headers. This can happen if you create metadata using an API like SOAP that // supports more flexible metadata than the REST API. For example, using SOAP, // you can create metadata whose values are not legal HTTP headers. MissingMeta *int64 `location:"header" locationName:"x-amz-missing-meta" type:"integer"` // Specifies whether a legal hold is in effect for this object. This header // is only returned if the requester has the s3:GetObjectLegalHold permission. // This header is not returned if the specified version of this object has never // had a legal hold applied. For more information about S3 Object Lock, see // Object Lock (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"` // The Object Lock mode, if any, that's in effect for this object. This header // is only returned if the requester has the s3:GetObjectRetention permission. // For more information about S3 Object Lock, see Object Lock (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"` // The date and time when the Object Lock retention period expires. This header // is only returned if the requester has the s3:GetObjectRetention permission. ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"` // The count of parts this object has. PartsCount *int64 `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"` // Amazon S3 can return this header if your request involves a bucket that is // either a source or destination in a replication rule. // // In replication you have a source bucket on which you configure replication // and destination bucket where Amazon S3 stores object replicas. When you request // an object (GetObject) or object metadata (HeadObject) from these buckets, // Amazon S3 will return the x-amz-replication-status header in the response // as follows: // // * If requesting object from the source bucket — Amazon S3 will return // the x-amz-replication-status header if object in your request is eligible // for replication. For example, suppose in your replication configuration // you specify object prefix "TaxDocs" requesting Amazon S3 to replicate // objects with key prefix "TaxDocs". Then any objects you upload with this // key name prefix, for example "TaxDocs/document1.pdf", is eligible for // replication. For any object request with this key name prefix Amazon S3 // will return the x-amz-replication-status header with value PENDING, COMPLETED // or FAILED indicating object replication status. // // * If requesting object from the destination bucket — Amazon S3 will // return the x-amz-replication-status header with value REPLICA if object // in your request is a replica that Amazon S3 created. // // For more information, see Replication (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html). ReplicationStatus *string `location:"header" locationName:"x-amz-replication-status" type:"string" enum:"ReplicationStatus"` // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` // If the object is an archived object (an object whose storage class is GLACIER), // the response includes this header if either the archive restoration is in // progress (see RestoreObject or an archive copy is already restored. // // If an archive copy is already restored, the header value indicates when Amazon // S3 is scheduled to delete the object copy. For example: // // x-amz-restore: ongoing-request="false", expiry-date="Fri, 23 Dec 2012 00:00:00 // GMT" // // If the object restoration is in progress, the header returns the value ongoing-request="true". // // For more information about archiving objects, see Transitioning Objects: // General Considerations (https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html#lifecycle-transition-general-considerations). Restore *string `location:"header" locationName:"x-amz-restore" type:"string"` // If server-side encryption with a customer-provided encryption key was requested, // the response will include this header confirming the encryption algorithm // used. SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"` // If server-side encryption with a customer-provided encryption key was requested, // the response will include this header to provide round trip message integrity // verification of the customer-provided encryption key. SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"` // If present, specifies the ID of the AWS Key Management Service (KMS) customer // master key (CMK) that was used for the object. SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"` // If the object is stored using server-side encryption either with an AWS KMS // customer master key (CMK) or an Amazon S3-managed encryption key, the response // includes this header with the value of the Server-side encryption algorithm // used when storing this object in S3 (e.g., AES256, aws:kms). ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"` // Provides storage class information of the object. Amazon S3 returns this // header for all objects except for Standard storage class objects. // // For more information, see Storage Classes (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html). StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"` // Version of the object. VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"` // If the bucket is configured as a website, redirects requests for this object // to another object in the same bucket or to an external URL. Amazon S3 stores // the value of this header in the object metadata. WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"` // contains filtered or unexported fields }
func (s HeadObjectOutput) GoString() string
GoString returns the string representation
func (s *HeadObjectOutput) SetAcceptRanges(v string) *HeadObjectOutput
SetAcceptRanges sets the AcceptRanges field's value.
func (s *HeadObjectOutput) SetCacheControl(v string) *HeadObjectOutput
SetCacheControl sets the CacheControl field's value.
func (s *HeadObjectOutput) SetContentDisposition(v string) *HeadObjectOutput
SetContentDisposition sets the ContentDisposition field's value.
func (s *HeadObjectOutput) SetContentEncoding(v string) *HeadObjectOutput
SetContentEncoding sets the ContentEncoding field's value.
func (s *HeadObjectOutput) SetContentLanguage(v string) *HeadObjectOutput
SetContentLanguage sets the ContentLanguage field's value.
func (s *HeadObjectOutput) SetContentLength(v int64) *HeadObjectOutput
SetContentLength sets the ContentLength field's value.
func (s *HeadObjectOutput) SetContentType(v string) *HeadObjectOutput
SetContentType sets the ContentType field's value.
func (s *HeadObjectOutput) SetDeleteMarker(v bool) *HeadObjectOutput
SetDeleteMarker sets the DeleteMarker field's value.
func (s *HeadObjectOutput) SetETag(v string) *HeadObjectOutput
SetETag sets the ETag field's value.
func (s *HeadObjectOutput) SetExpiration(v string) *HeadObjectOutput
SetExpiration sets the Expiration field's value.
func (s *HeadObjectOutput) SetExpires(v string) *HeadObjectOutput
SetExpires sets the Expires field's value.
func (s *HeadObjectOutput) SetLastModified(v time.Time) *HeadObjectOutput
SetLastModified sets the LastModified field's value.
func (s *HeadObjectOutput) SetMetadata(v map[string]*string) *HeadObjectOutput
SetMetadata sets the Metadata field's value.
func (s *HeadObjectOutput) SetMissingMeta(v int64) *HeadObjectOutput
SetMissingMeta sets the MissingMeta field's value.
func (s *HeadObjectOutput) SetObjectLockLegalHoldStatus(v string) *HeadObjectOutput
SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value.
func (s *HeadObjectOutput) SetObjectLockMode(v string) *HeadObjectOutput
SetObjectLockMode sets the ObjectLockMode field's value.
func (s *HeadObjectOutput) SetObjectLockRetainUntilDate(v time.Time) *HeadObjectOutput
SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value.
func (s *HeadObjectOutput) SetPartsCount(v int64) *HeadObjectOutput
SetPartsCount sets the PartsCount field's value.
func (s *HeadObjectOutput) SetReplicationStatus(v string) *HeadObjectOutput
SetReplicationStatus sets the ReplicationStatus field's value.
func (s *HeadObjectOutput) SetRequestCharged(v string) *HeadObjectOutput
SetRequestCharged sets the RequestCharged field's value.
func (s *HeadObjectOutput) SetRestore(v string) *HeadObjectOutput
SetRestore sets the Restore field's value.
func (s *HeadObjectOutput) SetSSECustomerAlgorithm(v string) *HeadObjectOutput
SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
func (s *HeadObjectOutput) SetSSECustomerKeyMD5(v string) *HeadObjectOutput
SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
func (s *HeadObjectOutput) SetSSEKMSKeyId(v string) *HeadObjectOutput
SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
func (s *HeadObjectOutput) SetServerSideEncryption(v string) *HeadObjectOutput
SetServerSideEncryption sets the ServerSideEncryption field's value.
func (s *HeadObjectOutput) SetStorageClass(v string) *HeadObjectOutput
SetStorageClass sets the StorageClass field's value.
func (s *HeadObjectOutput) SetVersionId(v string) *HeadObjectOutput
SetVersionId sets the VersionId field's value.
func (s *HeadObjectOutput) SetWebsiteRedirectLocation(v string) *HeadObjectOutput
SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.
func (s HeadObjectOutput) String() string
String returns the string representation
type IndexDocument struct { // A suffix that is appended to a request that is for a directory on the website // endpoint (e.g. if the suffix is index.html and you make a request to samplebucket/images/ // the data that is returned will be for the object with the key name images/index.html) // The suffix must not be empty and must not include a slash character. // // Suffix is a required field Suffix *string `type:"string" required:"true"` // contains filtered or unexported fields }
Container for the Suffix element.
func (s IndexDocument) GoString() string
GoString returns the string representation
func (s *IndexDocument) SetSuffix(v string) *IndexDocument
SetSuffix sets the Suffix field's value.
func (s IndexDocument) String() string
String returns the string representation
func (s *IndexDocument) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type Initiator struct { // Name of the Principal. DisplayName *string `type:"string"` // If the principal is an AWS account, it provides the Canonical User ID. If // the principal is an IAM User, it provides a user ARN value. ID *string `type:"string"` // contains filtered or unexported fields }
Container element that identifies who initiated the ultipart upload.
func (s Initiator) GoString() string
GoString returns the string representation
func (s *Initiator) SetDisplayName(v string) *Initiator
SetDisplayName sets the DisplayName field's value.
func (s *Initiator) SetID(v string) *Initiator
SetID sets the ID field's value.
func (s Initiator) String() string
String returns the string representation
type InputSerialization struct { // Describes the serialization of a CSV-encoded object. CSV *CSVInput `type:"structure"` // Specifies object's compression format. Valid values: NONE, GZIP, BZIP2. Default // Value: NONE. CompressionType *string `type:"string" enum:"CompressionType"` // Specifies JSON as object's input serialization format. JSON *JSONInput `type:"structure"` // Specifies Parquet as object's input serialization format. Parquet *ParquetInput `type:"structure"` // contains filtered or unexported fields }
Describes the serialization format of the object.
func (s InputSerialization) GoString() string
GoString returns the string representation
func (s *InputSerialization) SetCSV(v *CSVInput) *InputSerialization
SetCSV sets the CSV field's value.
func (s *InputSerialization) SetCompressionType(v string) *InputSerialization
SetCompressionType sets the CompressionType field's value.
func (s *InputSerialization) SetJSON(v *JSONInput) *InputSerialization
SetJSON sets the JSON field's value.
func (s *InputSerialization) SetParquet(v *ParquetInput) *InputSerialization
SetParquet sets the Parquet field's value.
func (s InputSerialization) String() string
String returns the string representation
type InventoryConfiguration struct { // Contains information about where to publish the inventory results. // // Destination is a required field Destination *InventoryDestination `type:"structure" required:"true"` // Specifies an inventory filter. The inventory only includes objects that meet // the filter's criteria. Filter *InventoryFilter `type:"structure"` // The ID used to identify the inventory configuration. // // Id is a required field Id *string `type:"string" required:"true"` // Object versions to include in the inventory list. If set to All, the list // includes all the object versions, which adds the version-related fields VersionId, // IsLatest, and DeleteMarker to the list. If set to Current, the list does // not contain these version-related fields. // // IncludedObjectVersions is a required field IncludedObjectVersions *string `type:"string" required:"true" enum:"InventoryIncludedObjectVersions"` // Specifies whether the inventory is enabled or disabled. If set to True, an // inventory list is generated. If set to False, no inventory list is generated. // // IsEnabled is a required field IsEnabled *bool `type:"boolean" required:"true"` // Contains the optional fields that are included in the inventory results. OptionalFields []*string `locationNameList:"Field" type:"list"` // Specifies the schedule for generating inventory results. // // Schedule is a required field Schedule *InventorySchedule `type:"structure" required:"true"` // contains filtered or unexported fields }
Specifies the inventory configuration for an Amazon S3 bucket. For more information, see GET Bucket inventory (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETInventoryConfig.html) in the Amazon Simple Storage Service API Reference.
func (s InventoryConfiguration) GoString() string
GoString returns the string representation
func (s *InventoryConfiguration) SetDestination(v *InventoryDestination) *InventoryConfiguration
SetDestination sets the Destination field's value.
func (s *InventoryConfiguration) SetFilter(v *InventoryFilter) *InventoryConfiguration
SetFilter sets the Filter field's value.
func (s *InventoryConfiguration) SetId(v string) *InventoryConfiguration
SetId sets the Id field's value.
func (s *InventoryConfiguration) SetIncludedObjectVersions(v string) *InventoryConfiguration
SetIncludedObjectVersions sets the IncludedObjectVersions field's value.
func (s *InventoryConfiguration) SetIsEnabled(v bool) *InventoryConfiguration
SetIsEnabled sets the IsEnabled field's value.
func (s *InventoryConfiguration) SetOptionalFields(v []*string) *InventoryConfiguration
SetOptionalFields sets the OptionalFields field's value.
func (s *InventoryConfiguration) SetSchedule(v *InventorySchedule) *InventoryConfiguration
SetSchedule sets the Schedule field's value.
func (s InventoryConfiguration) String() string
String returns the string representation
func (s *InventoryConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InventoryDestination struct { // Contains the bucket name, file format, bucket owner (optional), and prefix // (optional) where inventory results are published. // // S3BucketDestination is a required field S3BucketDestination *InventoryS3BucketDestination `type:"structure" required:"true"` // contains filtered or unexported fields }
Specifies the inventory configuration for an Amazon S3 bucket.
func (s InventoryDestination) GoString() string
GoString returns the string representation
func (s *InventoryDestination) SetS3BucketDestination(v *InventoryS3BucketDestination) *InventoryDestination
SetS3BucketDestination sets the S3BucketDestination field's value.
func (s InventoryDestination) String() string
String returns the string representation
func (s *InventoryDestination) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InventoryEncryption struct { // Specifies the use of SSE-KMS to encrypt delivered Inventory reports. SSEKMS *SSEKMS `locationName:"SSE-KMS" type:"structure"` // Specifies the use of SSE-S3 to encrypt delivered Inventory reports. SSES3 *SSES3 `locationName:"SSE-S3" type:"structure"` // contains filtered or unexported fields }
Contains the type of server-side encryption used to encrypt the inventory results.
func (s InventoryEncryption) GoString() string
GoString returns the string representation
func (s *InventoryEncryption) SetSSEKMS(v *SSEKMS) *InventoryEncryption
SetSSEKMS sets the SSEKMS field's value.
func (s *InventoryEncryption) SetSSES3(v *SSES3) *InventoryEncryption
SetSSES3 sets the SSES3 field's value.
func (s InventoryEncryption) String() string
String returns the string representation
func (s *InventoryEncryption) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InventoryFilter struct { // The prefix that an object must have to be included in the inventory results. // // Prefix is a required field Prefix *string `type:"string" required:"true"` // contains filtered or unexported fields }
Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.
func (s InventoryFilter) GoString() string
GoString returns the string representation
func (s *InventoryFilter) SetPrefix(v string) *InventoryFilter
SetPrefix sets the Prefix field's value.
func (s InventoryFilter) String() string
String returns the string representation
func (s *InventoryFilter) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InventoryS3BucketDestination struct { // The ID of the account that owns the destination bucket. AccountId *string `type:"string"` // The Amazon resource name (ARN) of the bucket where inventory results will // be published. // // Bucket is a required field Bucket *string `type:"string" required:"true"` // Contains the type of server-side encryption used to encrypt the inventory // results. Encryption *InventoryEncryption `type:"structure"` // Specifies the output format of the inventory results. // // Format is a required field Format *string `type:"string" required:"true" enum:"InventoryFormat"` // The prefix that is prepended to all inventory results. Prefix *string `type:"string"` // contains filtered or unexported fields }
Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where inventory results are published.
func (s InventoryS3BucketDestination) GoString() string
GoString returns the string representation
func (s *InventoryS3BucketDestination) SetAccountId(v string) *InventoryS3BucketDestination
SetAccountId sets the AccountId field's value.
func (s *InventoryS3BucketDestination) SetBucket(v string) *InventoryS3BucketDestination
SetBucket sets the Bucket field's value.
func (s *InventoryS3BucketDestination) SetEncryption(v *InventoryEncryption) *InventoryS3BucketDestination
SetEncryption sets the Encryption field's value.
func (s *InventoryS3BucketDestination) SetFormat(v string) *InventoryS3BucketDestination
SetFormat sets the Format field's value.
func (s *InventoryS3BucketDestination) SetPrefix(v string) *InventoryS3BucketDestination
SetPrefix sets the Prefix field's value.
func (s InventoryS3BucketDestination) String() string
String returns the string representation
func (s *InventoryS3BucketDestination) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InventorySchedule struct { // Specifies how frequently inventory results are produced. // // Frequency is a required field Frequency *string `type:"string" required:"true" enum:"InventoryFrequency"` // contains filtered or unexported fields }
Specifies the schedule for generating inventory results.
func (s InventorySchedule) GoString() string
GoString returns the string representation
func (s *InventorySchedule) SetFrequency(v string) *InventorySchedule
SetFrequency sets the Frequency field's value.
func (s InventorySchedule) String() string
String returns the string representation
func (s *InventorySchedule) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type JSONInput struct { // The type of JSON. Valid values: Document, Lines. Type *string `type:"string" enum:"JSONType"` // contains filtered or unexported fields }
Specifies JSON as object's input serialization format.
func (s JSONInput) GoString() string
GoString returns the string representation
func (s *JSONInput) SetType(v string) *JSONInput
SetType sets the Type field's value.
func (s JSONInput) String() string
String returns the string representation
type JSONOutput struct { // The value used to separate individual records in the output. RecordDelimiter *string `type:"string"` // contains filtered or unexported fields }
Specifies JSON as request's output serialization format.
func (s JSONOutput) GoString() string
GoString returns the string representation
func (s *JSONOutput) SetRecordDelimiter(v string) *JSONOutput
SetRecordDelimiter sets the RecordDelimiter field's value.
func (s JSONOutput) String() string
String returns the string representation
type KeyFilter struct { // A list of containers for the key value pair that defines the criteria for // the filter rule. FilterRules []*FilterRule `locationName:"FilterRule" type:"list" flattened:"true"` // contains filtered or unexported fields }
A container for object key name prefix and suffix filtering rules.
func (s KeyFilter) GoString() string
GoString returns the string representation
func (s *KeyFilter) SetFilterRules(v []*FilterRule) *KeyFilter
SetFilterRules sets the FilterRules field's value.
func (s KeyFilter) String() string
String returns the string representation
type LambdaFunctionConfiguration struct { // The Amazon S3 bucket event for which to invoke the AWS Lambda function. For // more information, see Supported Event Types (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) // in the Amazon Simple Storage Service Developer Guide. // // Events is a required field Events []*string `locationName:"Event" type:"list" flattened:"true" required:"true"` // Specifies object key name filtering rules. For information about key name // filtering, see Configuring Event Notifications (https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) // in the Amazon Simple Storage Service Developer Guide. Filter *NotificationConfigurationFilter `type:"structure"` // An optional unique identifier for configurations in a notification configuration. // If you don't provide one, Amazon S3 will assign an ID. Id *string `type:"string"` // The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 // invokes when the specified event type occurs. // // LambdaFunctionArn is a required field LambdaFunctionArn *string `locationName:"CloudFunction" type:"string" required:"true"` // contains filtered or unexported fields }
A container for specifying the configuration for AWS Lambda notifications.
func (s LambdaFunctionConfiguration) GoString() string
GoString returns the string representation
func (s *LambdaFunctionConfiguration) SetEvents(v []*string) *LambdaFunctionConfiguration
SetEvents sets the Events field's value.
func (s *LambdaFunctionConfiguration) SetFilter(v *NotificationConfigurationFilter) *LambdaFunctionConfiguration
SetFilter sets the Filter field's value.
func (s *LambdaFunctionConfiguration) SetId(v string) *LambdaFunctionConfiguration
SetId sets the Id field's value.
func (s *LambdaFunctionConfiguration) SetLambdaFunctionArn(v string) *LambdaFunctionConfiguration
SetLambdaFunctionArn sets the LambdaFunctionArn field's value.
func (s LambdaFunctionConfiguration) String() string
String returns the string representation
func (s *LambdaFunctionConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LifecycleConfiguration struct { // Specifies lifecycle configuration rules for an Amazon S3 bucket. // // Rules is a required field Rules []*Rule `locationName:"Rule" type:"list" flattened:"true" required:"true"` // contains filtered or unexported fields }
Container for lifecycle rules. You can add as many as 1000 rules.
func (s LifecycleConfiguration) GoString() string
GoString returns the string representation
func (s *LifecycleConfiguration) SetRules(v []*Rule) *LifecycleConfiguration
SetRules sets the Rules field's value.
func (s LifecycleConfiguration) String() string
String returns the string representation
func (s *LifecycleConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LifecycleExpiration struct { // Indicates at what date the object is to be moved or deleted. Should be in // GMT ISO 8601 Format. Date *time.Time `type:"timestamp" timestampFormat:"iso8601"` // Indicates the lifetime, in days, of the objects that are subject to the rule. // The value must be a non-zero positive integer. Days *int64 `type:"integer"` // Indicates whether Amazon S3 will remove a delete marker with no noncurrent // versions. If set to true, the delete marker will be expired; if set to false // the policy takes no action. This cannot be specified with Days or Date in // a Lifecycle Expiration Policy. ExpiredObjectDeleteMarker *bool `type:"boolean"` // contains filtered or unexported fields }
Container for the expiration for the lifecycle of the object.
func (s LifecycleExpiration) GoString() string
GoString returns the string representation
func (s *LifecycleExpiration) SetDate(v time.Time) *LifecycleExpiration
SetDate sets the Date field's value.
func (s *LifecycleExpiration) SetDays(v int64) *LifecycleExpiration
SetDays sets the Days field's value.
func (s *LifecycleExpiration) SetExpiredObjectDeleteMarker(v bool) *LifecycleExpiration
SetExpiredObjectDeleteMarker sets the ExpiredObjectDeleteMarker field's value.
func (s LifecycleExpiration) String() string
String returns the string representation
type LifecycleRule struct { // Specifies the days since the initiation of an incomplete multipart upload // that Amazon S3 will wait before permanently removing all parts of the upload. // For more information, see Aborting Incomplete Multipart Uploads Using a Bucket // Lifecycle Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config) // in the Amazon Simple Storage Service Developer Guide. AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `type:"structure"` // Specifies the expiration for the lifecycle of the object in the form of date, // days and, whether the object has a delete marker. Expiration *LifecycleExpiration `type:"structure"` // The Filter is used to identify objects that a Lifecycle Rule applies to. // A Filter must have exactly one of Prefix, Tag, or And specified. Filter *LifecycleRuleFilter `type:"structure"` // Unique identifier for the rule. The value cannot be longer than 255 characters. ID *string `type:"string"` // Specifies when noncurrent object versions expire. Upon expiration, Amazon // S3 permanently deletes the noncurrent object versions. You set this lifecycle // configuration action on a bucket that has versioning enabled (or suspended) // to request that Amazon S3 delete noncurrent object versions at a specific // period in the object's lifetime. NoncurrentVersionExpiration *NoncurrentVersionExpiration `type:"structure"` // Specifies the transition rule for the lifecycle rule that describes when // noncurrent objects transition to the a specific storage class. If your bucket // is versioning-enabled (or versioning is suspended), you can set this action // to request that Amazon S3 transition noncurrent object versions to the a // specifc storage class at a set period in the object's lifetime. NoncurrentVersionTransitions []*NoncurrentVersionTransition `locationName:"NoncurrentVersionTransition" type:"list" flattened:"true"` // Prefix identifying one or more objects to which the rule applies. This is // No longer used; use Filter instead. // // Deprecated: Prefix has been deprecated Prefix *string `deprecated:"true" type:"string"` // If 'Enabled', the rule is currently being applied. If 'Disabled', the rule // is not currently being applied. // // Status is a required field Status *string `type:"string" required:"true" enum:"ExpirationStatus"` // Specifies when an Amazon S3 object transitions to a specified storage class. Transitions []*Transition `locationName:"Transition" type:"list" flattened:"true"` // contains filtered or unexported fields }
A lifecycle rule for individual objects in an Amazon S3 bucket.
func (s LifecycleRule) GoString() string
GoString returns the string representation
func (s *LifecycleRule) SetAbortIncompleteMultipartUpload(v *AbortIncompleteMultipartUpload) *LifecycleRule
SetAbortIncompleteMultipartUpload sets the AbortIncompleteMultipartUpload field's value.
func (s *LifecycleRule) SetExpiration(v *LifecycleExpiration) *LifecycleRule
SetExpiration sets the Expiration field's value.
func (s *LifecycleRule) SetFilter(v *LifecycleRuleFilter) *LifecycleRule
SetFilter sets the Filter field's value.
func (s *LifecycleRule) SetID(v string) *LifecycleRule
SetID sets the ID field's value.
func (s *LifecycleRule) SetNoncurrentVersionExpiration(v *NoncurrentVersionExpiration) *LifecycleRule
SetNoncurrentVersionExpiration sets the NoncurrentVersionExpiration field's value.
func (s *LifecycleRule) SetNoncurrentVersionTransitions(v []*NoncurrentVersionTransition) *LifecycleRule
SetNoncurrentVersionTransitions sets the NoncurrentVersionTransitions field's value.
func (s *LifecycleRule) SetPrefix(v string) *LifecycleRule
SetPrefix sets the Prefix field's value.
func (s *LifecycleRule) SetStatus(v string) *LifecycleRule
SetStatus sets the Status field's value.
func (s *LifecycleRule) SetTransitions(v []*Transition) *LifecycleRule
SetTransitions sets the Transitions field's value.
func (s LifecycleRule) String() string
String returns the string representation
func (s *LifecycleRule) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LifecycleRuleAndOperator struct { // Prefix identifying one or more objects to which the rule applies. Prefix *string `type:"string"` // All of these tags must exist in the object's tag set in order for the rule // to apply. Tags []*Tag `locationName:"Tag" locationNameList:"Tag" type:"list" flattened:"true"` // contains filtered or unexported fields }
This is used in a Lifecycle Rule Filter to apply a logical AND to two or more predicates. The Lifecycle Rule will apply to any object matching all of the predicates configured inside the And operator.
func (s LifecycleRuleAndOperator) GoString() string
GoString returns the string representation
func (s *LifecycleRuleAndOperator) SetPrefix(v string) *LifecycleRuleAndOperator
SetPrefix sets the Prefix field's value.
func (s *LifecycleRuleAndOperator) SetTags(v []*Tag) *LifecycleRuleAndOperator
SetTags sets the Tags field's value.
func (s LifecycleRuleAndOperator) String() string
String returns the string representation
func (s *LifecycleRuleAndOperator) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LifecycleRuleFilter struct { // This is used in a Lifecycle Rule Filter to apply a logical AND to two or // more predicates. The Lifecycle Rule will apply to any object matching all // of the predicates configured inside the And operator. And *LifecycleRuleAndOperator `type:"structure"` // Prefix identifying one or more objects to which the rule applies. Prefix *string `type:"string"` // This tag must exist in the object's tag set in order for the rule to apply. Tag *Tag `type:"structure"` // contains filtered or unexported fields }
The Filter is used to identify objects that a Lifecycle Rule applies to. A Filter must have exactly one of Prefix, Tag, or And specified.
func (s LifecycleRuleFilter) GoString() string
GoString returns the string representation
func (s *LifecycleRuleFilter) SetAnd(v *LifecycleRuleAndOperator) *LifecycleRuleFilter
SetAnd sets the And field's value.
func (s *LifecycleRuleFilter) SetPrefix(v string) *LifecycleRuleFilter
SetPrefix sets the Prefix field's value.
func (s *LifecycleRuleFilter) SetTag(v *Tag) *LifecycleRuleFilter
SetTag sets the Tag field's value.
func (s LifecycleRuleFilter) String() string
String returns the string representation
func (s *LifecycleRuleFilter) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListBucketAnalyticsConfigurationsInput struct { // The name of the bucket from which analytics configurations are retrieved. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The ContinuationToken that represents a placeholder from where this request // should begin. ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"` // contains filtered or unexported fields }
func (s ListBucketAnalyticsConfigurationsInput) GoString() string
GoString returns the string representation
func (s *ListBucketAnalyticsConfigurationsInput) SetBucket(v string) *ListBucketAnalyticsConfigurationsInput
SetBucket sets the Bucket field's value.
func (s *ListBucketAnalyticsConfigurationsInput) SetContinuationToken(v string) *ListBucketAnalyticsConfigurationsInput
SetContinuationToken sets the ContinuationToken field's value.
func (s ListBucketAnalyticsConfigurationsInput) String() string
String returns the string representation
func (s *ListBucketAnalyticsConfigurationsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListBucketAnalyticsConfigurationsOutput struct { // The list of analytics configurations for a bucket. AnalyticsConfigurationList []*AnalyticsConfiguration `locationName:"AnalyticsConfiguration" type:"list" flattened:"true"` // The marker that is used as a starting point for this analytics configuration // list response. This value is present if it was sent in the request. ContinuationToken *string `type:"string"` // Indicates whether the returned list of analytics configurations is complete. // A value of true indicates that the list is not complete and the NextContinuationToken // will be provided for a subsequent request. IsTruncated *bool `type:"boolean"` // NextContinuationToken is sent when isTruncated is true, which indicates that // there are more analytics configurations to list. The next request must include // this NextContinuationToken. The token is obfuscated and is not a usable value. NextContinuationToken *string `type:"string"` // contains filtered or unexported fields }
func (s ListBucketAnalyticsConfigurationsOutput) GoString() string
GoString returns the string representation
func (s *ListBucketAnalyticsConfigurationsOutput) SetAnalyticsConfigurationList(v []*AnalyticsConfiguration) *ListBucketAnalyticsConfigurationsOutput
SetAnalyticsConfigurationList sets the AnalyticsConfigurationList field's value.
func (s *ListBucketAnalyticsConfigurationsOutput) SetContinuationToken(v string) *ListBucketAnalyticsConfigurationsOutput
SetContinuationToken sets the ContinuationToken field's value.
func (s *ListBucketAnalyticsConfigurationsOutput) SetIsTruncated(v bool) *ListBucketAnalyticsConfigurationsOutput
SetIsTruncated sets the IsTruncated field's value.
func (s *ListBucketAnalyticsConfigurationsOutput) SetNextContinuationToken(v string) *ListBucketAnalyticsConfigurationsOutput
SetNextContinuationToken sets the NextContinuationToken field's value.
func (s ListBucketAnalyticsConfigurationsOutput) String() string
String returns the string representation
type ListBucketInventoryConfigurationsInput struct { // The name of the bucket containing the inventory configurations to retrieve. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The marker used to continue an inventory configuration listing that has been // truncated. Use the NextContinuationToken from a previously truncated list // response to continue the listing. The continuation token is an opaque value // that Amazon S3 understands. ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"` // contains filtered or unexported fields }
func (s ListBucketInventoryConfigurationsInput) GoString() string
GoString returns the string representation
func (s *ListBucketInventoryConfigurationsInput) SetBucket(v string) *ListBucketInventoryConfigurationsInput
SetBucket sets the Bucket field's value.
func (s *ListBucketInventoryConfigurationsInput) SetContinuationToken(v string) *ListBucketInventoryConfigurationsInput
SetContinuationToken sets the ContinuationToken field's value.
func (s ListBucketInventoryConfigurationsInput) String() string
String returns the string representation
func (s *ListBucketInventoryConfigurationsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListBucketInventoryConfigurationsOutput struct { // If sent in the request, the marker that is used as a starting point for this // inventory configuration list response. ContinuationToken *string `type:"string"` // The list of inventory configurations for a bucket. InventoryConfigurationList []*InventoryConfiguration `locationName:"InventoryConfiguration" type:"list" flattened:"true"` // Tells whether the returned list of inventory configurations is complete. // A value of true indicates that the list is not complete and the NextContinuationToken // is provided for a subsequent request. IsTruncated *bool `type:"boolean"` // The marker used to continue this inventory configuration listing. Use the // NextContinuationToken from this response to continue the listing in a subsequent // request. The continuation token is an opaque value that Amazon S3 understands. NextContinuationToken *string `type:"string"` // contains filtered or unexported fields }
func (s ListBucketInventoryConfigurationsOutput) GoString() string
GoString returns the string representation
func (s *ListBucketInventoryConfigurationsOutput) SetContinuationToken(v string) *ListBucketInventoryConfigurationsOutput
SetContinuationToken sets the ContinuationToken field's value.
func (s *ListBucketInventoryConfigurationsOutput) SetInventoryConfigurationList(v []*InventoryConfiguration) *ListBucketInventoryConfigurationsOutput
SetInventoryConfigurationList sets the InventoryConfigurationList field's value.
func (s *ListBucketInventoryConfigurationsOutput) SetIsTruncated(v bool) *ListBucketInventoryConfigurationsOutput
SetIsTruncated sets the IsTruncated field's value.
func (s *ListBucketInventoryConfigurationsOutput) SetNextContinuationToken(v string) *ListBucketInventoryConfigurationsOutput
SetNextContinuationToken sets the NextContinuationToken field's value.
func (s ListBucketInventoryConfigurationsOutput) String() string
String returns the string representation
type ListBucketMetricsConfigurationsInput struct { // The name of the bucket containing the metrics configurations to retrieve. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // The marker that is used to continue a metrics configuration listing that // has been truncated. Use the NextContinuationToken from a previously truncated // list response to continue the listing. The continuation token is an opaque // value that Amazon S3 understands. ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"` // contains filtered or unexported fields }
func (s ListBucketMetricsConfigurationsInput) GoString() string
GoString returns the string representation
func (s *ListBucketMetricsConfigurationsInput) SetBucket(v string) *ListBucketMetricsConfigurationsInput
SetBucket sets the Bucket field's value.
func (s *ListBucketMetricsConfigurationsInput) SetContinuationToken(v string) *ListBucketMetricsConfigurationsInput
SetContinuationToken sets the ContinuationToken field's value.
func (s ListBucketMetricsConfigurationsInput) String() string
String returns the string representation
func (s *ListBucketMetricsConfigurationsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListBucketMetricsConfigurationsOutput struct { // The marker that is used as a starting point for this metrics configuration // list response. This value is present if it was sent in the request. ContinuationToken *string `type:"string"` // Indicates whether the returned list of metrics configurations is complete. // A value of true indicates that the list is not complete and the NextContinuationToken // will be provided for a subsequent request. IsTruncated *bool `type:"boolean"` // The list of metrics configurations for a bucket. MetricsConfigurationList []*MetricsConfiguration `locationName:"MetricsConfiguration" type:"list" flattened:"true"` // The marker used to continue a metrics configuration listing that has been // truncated. Use the NextContinuationToken from a previously truncated list // response to continue the listing. The continuation token is an opaque value // that Amazon S3 understands. NextContinuationToken *string `type:"string"` // contains filtered or unexported fields }
func (s ListBucketMetricsConfigurationsOutput) GoString() string
GoString returns the string representation
func (s *ListBucketMetricsConfigurationsOutput) SetContinuationToken(v string) *ListBucketMetricsConfigurationsOutput
SetContinuationToken sets the ContinuationToken field's value.
func (s *ListBucketMetricsConfigurationsOutput) SetIsTruncated(v bool) *ListBucketMetricsConfigurationsOutput
SetIsTruncated sets the IsTruncated field's value.
func (s *ListBucketMetricsConfigurationsOutput) SetMetricsConfigurationList(v []*MetricsConfiguration) *ListBucketMetricsConfigurationsOutput
SetMetricsConfigurationList sets the MetricsConfigurationList field's value.
func (s *ListBucketMetricsConfigurationsOutput) SetNextContinuationToken(v string) *ListBucketMetricsConfigurationsOutput
SetNextContinuationToken sets the NextContinuationToken field's value.
func (s ListBucketMetricsConfigurationsOutput) String() string
String returns the string representation
type ListBucketsInput struct {
// contains filtered or unexported fields
}
func (s ListBucketsInput) GoString() string
GoString returns the string representation
func (s ListBucketsInput) String() string
String returns the string representation
type ListBucketsOutput struct { // The list of buckets owned by the requestor. Buckets []*Bucket `locationNameList:"Bucket" type:"list"` // The owner of the buckets listed. Owner *Owner `type:"structure"` // contains filtered or unexported fields }
func (s ListBucketsOutput) GoString() string
GoString returns the string representation
func (s *ListBucketsOutput) SetBuckets(v []*Bucket) *ListBucketsOutput
SetBuckets sets the Buckets field's value.
func (s *ListBucketsOutput) SetOwner(v *Owner) *ListBucketsOutput
SetOwner sets the Owner field's value.
func (s ListBucketsOutput) String() string
String returns the string representation
type ListMultipartUploadsInput struct { // Name of the bucket to which the multipart upload was initiated. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Character you use to group keys. // // All keys that contain the same string between the prefix, if specified, and // the first occurrence of the delimiter after the prefix are grouped under // a single result element, CommonPrefixes. If you don't specify the prefix // parameter, then the substring starts at the beginning of the key. The keys // that are grouped under CommonPrefixes result element are not returned elsewhere // in the response. Delimiter *string `location:"querystring" locationName:"delimiter" type:"string"` // Requests Amazon S3 to encode the object keys in the response and specifies // the encoding method to use. An object key may contain any Unicode character; // however, XML 1.0 parser cannot parse some characters, such as characters // with an ASCII value from 0 to 10. For characters that are not supported in // XML 1.0, you can add this parameter to request that Amazon S3 encode the // keys in the response. EncodingType *string `location:"querystring" locationName:"encoding-type" type:"string" enum:"EncodingType"` // Together with upload-id-marker, this parameter specifies the multipart upload // after which listing should begin. // // If upload-id-marker is not specified, only the keys lexicographically greater // than the specified key-marker will be included in the list. // // If upload-id-marker is specified, any multipart uploads for a key equal to // the key-marker might also be included, provided those multipart uploads have // upload IDs lexicographically greater than the specified upload-id-marker. KeyMarker *string `location:"querystring" locationName:"key-marker" type:"string"` // Sets the maximum number of multipart uploads, from 1 to 1,000, to return // in the response body. 1,000 is the maximum number of uploads that can be // returned in a response. MaxUploads *int64 `location:"querystring" locationName:"max-uploads" type:"integer"` // Lists in-progress uploads only for those keys that begin with the specified // prefix. You can use prefixes to separate a bucket into different grouping // of keys. (You can think of using prefix to make groups in the same way you'd // use a folder in a file system.) Prefix *string `location:"querystring" locationName:"prefix" type:"string"` // Together with key-marker, specifies the multipart upload after which listing // should begin. If key-marker is not specified, the upload-id-marker parameter // is ignored. Otherwise, any multipart uploads for a key equal to the key-marker // might be included in the list only if they have an upload ID lexicographically // greater than the specified upload-id-marker. UploadIdMarker *string `location:"querystring" locationName:"upload-id-marker" type:"string"` // contains filtered or unexported fields }
func (s ListMultipartUploadsInput) GoString() string
GoString returns the string representation
func (s *ListMultipartUploadsInput) SetBucket(v string) *ListMultipartUploadsInput
SetBucket sets the Bucket field's value.
func (s *ListMultipartUploadsInput) SetDelimiter(v string) *ListMultipartUploadsInput
SetDelimiter sets the Delimiter field's value.
func (s *ListMultipartUploadsInput) SetEncodingType(v string) *ListMultipartUploadsInput
SetEncodingType sets the EncodingType field's value.
func (s *ListMultipartUploadsInput) SetKeyMarker(v string) *ListMultipartUploadsInput
SetKeyMarker sets the KeyMarker field's value.
func (s *ListMultipartUploadsInput) SetMaxUploads(v int64) *ListMultipartUploadsInput
SetMaxUploads sets the MaxUploads field's value.
func (s *ListMultipartUploadsInput) SetPrefix(v string) *ListMultipartUploadsInput
SetPrefix sets the Prefix field's value.
func (s *ListMultipartUploadsInput) SetUploadIdMarker(v string) *ListMultipartUploadsInput
SetUploadIdMarker sets the UploadIdMarker field's value.
func (s ListMultipartUploadsInput) String() string
String returns the string representation
func (s *ListMultipartUploadsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListMultipartUploadsOutput struct { // Name of the bucket to which the multipart upload was initiated. Bucket *string `type:"string"` // If you specify a delimiter in the request, then the result returns each distinct // key prefix containing the delimiter in a CommonPrefixes element. The distinct // key prefixes are returned in the Prefix child element. CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"` // Contains the delimiter you specified in the request. If you don't specify // a delimiter in your request, this element is absent from the response. Delimiter *string `type:"string"` // Encoding type used by Amazon S3 to encode object keys in the response. // // If you specify encoding-type request parameter, Amazon S3 includes this element // in the response, and returns encoded key name values in the following response // elements: // // Delimiter, KeyMarker, Prefix, NextKeyMarker, Key. EncodingType *string `type:"string" enum:"EncodingType"` // Indicates whether the returned list of multipart uploads is truncated. A // value of true indicates that the list was truncated. The list can be truncated // if the number of multipart uploads exceeds the limit allowed or specified // by max uploads. IsTruncated *bool `type:"boolean"` // The key at or after which the listing began. KeyMarker *string `type:"string"` // Maximum number of multipart uploads that could have been included in the // response. MaxUploads *int64 `type:"integer"` // When a list is truncated, this element specifies the value that should be // used for the key-marker request parameter in a subsequent request. NextKeyMarker *string `type:"string"` // When a list is truncated, this element specifies the value that should be // used for the upload-id-marker request parameter in a subsequent request. NextUploadIdMarker *string `type:"string"` // When a prefix is provided in the request, this field contains the specified // prefix. The result contains only keys starting with the specified prefix. Prefix *string `type:"string"` // Upload ID after which listing began. UploadIdMarker *string `type:"string"` // Container for elements related to a particular multipart upload. A response // can contain zero or more Upload elements. Uploads []*MultipartUpload `locationName:"Upload" type:"list" flattened:"true"` // contains filtered or unexported fields }
func (s ListMultipartUploadsOutput) GoString() string
GoString returns the string representation
func (s *ListMultipartUploadsOutput) SetBucket(v string) *ListMultipartUploadsOutput
SetBucket sets the Bucket field's value.
func (s *ListMultipartUploadsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListMultipartUploadsOutput
SetCommonPrefixes sets the CommonPrefixes field's value.
func (s *ListMultipartUploadsOutput) SetDelimiter(v string) *ListMultipartUploadsOutput
SetDelimiter sets the Delimiter field's value.
func (s *ListMultipartUploadsOutput) SetEncodingType(v string) *ListMultipartUploadsOutput
SetEncodingType sets the EncodingType field's value.
func (s *ListMultipartUploadsOutput) SetIsTruncated(v bool) *ListMultipartUploadsOutput
SetIsTruncated sets the IsTruncated field's value.
func (s *ListMultipartUploadsOutput) SetKeyMarker(v string) *ListMultipartUploadsOutput
SetKeyMarker sets the KeyMarker field's value.
func (s *ListMultipartUploadsOutput) SetMaxUploads(v int64) *ListMultipartUploadsOutput
SetMaxUploads sets the MaxUploads field's value.
func (s *ListMultipartUploadsOutput) SetNextKeyMarker(v string) *ListMultipartUploadsOutput
SetNextKeyMarker sets the NextKeyMarker field's value.
func (s *ListMultipartUploadsOutput) SetNextUploadIdMarker(v string) *ListMultipartUploadsOutput
SetNextUploadIdMarker sets the NextUploadIdMarker field's value.
func (s *ListMultipartUploadsOutput) SetPrefix(v string) *ListMultipartUploadsOutput
SetPrefix sets the Prefix field's value.
func (s *ListMultipartUploadsOutput) SetUploadIdMarker(v string) *ListMultipartUploadsOutput
SetUploadIdMarker sets the UploadIdMarker field's value.
func (s *ListMultipartUploadsOutput) SetUploads(v []*MultipartUpload) *ListMultipartUploadsOutput
SetUploads sets the Uploads field's value.
func (s ListMultipartUploadsOutput) String() string
String returns the string representation
type ListObjectVersionsInput struct { // The name of the bucket that contains the objects. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // A delimiter is a character that you specify to group keys. All keys that // contain the same string between the prefix and the first occurrence of the // delimiter are grouped under a single result element in CommonPrefixes. These // groups are counted as one result against the max-keys limitation. These keys // are not returned elsewhere in the response. Delimiter *string `location:"querystring" locationName:"delimiter" type:"string"` // Requests Amazon S3 to encode the object keys in the response and specifies // the encoding method to use. An object key may contain any Unicode character; // however, XML 1.0 parser cannot parse some characters, such as characters // with an ASCII value from 0 to 10. For characters that are not supported in // XML 1.0, you can add this parameter to request that Amazon S3 encode the // keys in the response. EncodingType *string `location:"querystring" locationName:"encoding-type" type:"string" enum:"EncodingType"` // Specifies the key to start with when listing objects in a bucket. KeyMarker *string `location:"querystring" locationName:"key-marker" type:"string"` // Sets the maximum number of keys returned in the response. The response might // contain fewer keys but will never contain more. If additional keys satisfy // the search criteria, but were not returned because max-keys was exceeded, // the response contains <isTruncated>true</isTruncated>. To return the additional // keys, see key-marker and version-id-marker. MaxKeys *int64 `location:"querystring" locationName:"max-keys" type:"integer"` // Use this parameter to select only those keys that begin with the specified // prefix. You can use prefixes to separate a bucket into different groupings // of keys. (You can think of using prefix to make groups in the same way you'd // use a folder in a file system.) You can use prefix with delimiter to roll // up numerous objects into a single result under CommonPrefixes. Prefix *string `location:"querystring" locationName:"prefix" type:"string"` // Specifies the object version you want to start listing from. VersionIdMarker *string `location:"querystring" locationName:"version-id-marker" type:"string"` // contains filtered or unexported fields }
func (s ListObjectVersionsInput) GoString() string
GoString returns the string representation
func (s *ListObjectVersionsInput) SetBucket(v string) *ListObjectVersionsInput
SetBucket sets the Bucket field's value.
func (s *ListObjectVersionsInput) SetDelimiter(v string) *ListObjectVersionsInput
SetDelimiter sets the Delimiter field's value.
func (s *ListObjectVersionsInput) SetEncodingType(v string) *ListObjectVersionsInput
SetEncodingType sets the EncodingType field's value.
func (s *ListObjectVersionsInput) SetKeyMarker(v string) *ListObjectVersionsInput
SetKeyMarker sets the KeyMarker field's value.
func (s *ListObjectVersionsInput) SetMaxKeys(v int64) *ListObjectVersionsInput
SetMaxKeys sets the MaxKeys field's value.
func (s *ListObjectVersionsInput) SetPrefix(v string) *ListObjectVersionsInput
SetPrefix sets the Prefix field's value.
func (s *ListObjectVersionsInput) SetVersionIdMarker(v string) *ListObjectVersionsInput
SetVersionIdMarker sets the VersionIdMarker field's value.
func (s ListObjectVersionsInput) String() string
String returns the string representation
func (s *ListObjectVersionsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListObjectVersionsOutput struct { // All of the keys rolled up into a common prefix count as a single return when // calculating the number of returns. CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"` // Container for an object that is a delete marker. DeleteMarkers []*DeleteMarkerEntry `locationName:"DeleteMarker" type:"list" flattened:"true"` // The delimeter grouping the included keys. A delimiter is a character that // you specify to group keys. All keys that contain the same string between // the prefix and the first occurrence of the delimiter are grouped under a // single result element in CommonPrefixes. These groups are counted as one // result against the max-keys limitation. These keys are not returned elsewhere // in the response. Delimiter *string `type:"string"` // Encoding type used by Amazon S3 to encode object key names in the XML response. // // If you specify encoding-type request parameter, Amazon S3 includes this element // in the response, and returns encoded key name values in the following response // elements: // // KeyMarker, NextKeyMarker, Prefix, Key, and Delimiter. EncodingType *string `type:"string" enum:"EncodingType"` // A flag that indicates whether or not Amazon S3 returned all of the results // that satisfied the search criteria. If your results were truncated, you can // make a follow-up paginated request using the NextKeyMarker and NextVersionIdMarker // response parameters as a starting place in another request to return the // rest of the results. IsTruncated *bool `type:"boolean"` // Marks the last Key returned in a truncated response. KeyMarker *string `type:"string"` // Specifies the maximum number of objects to return. MaxKeys *int64 `type:"integer"` // Bucket owner's name. Name *string `type:"string"` // When the number of responses exceeds the value of MaxKeys, NextKeyMarker // specifies the first key not returned that satisfies the search criteria. // Use this value for the key-marker request parameter in a subsequent request. NextKeyMarker *string `type:"string"` // When the number of responses exceeds the value of MaxKeys, NextVersionIdMarker // specifies the first object version not returned that satisfies the search // criteria. Use this value for the version-id-marker request parameter in a // subsequent request. NextVersionIdMarker *string `type:"string"` // Selects objects that start with the value supplied by this parameter. Prefix *string `type:"string"` // Marks the last version of the Key returned in a truncated response. VersionIdMarker *string `type:"string"` // Container for version information. Versions []*ObjectVersion `locationName:"Version" type:"list" flattened:"true"` // contains filtered or unexported fields }
func (s ListObjectVersionsOutput) GoString() string
GoString returns the string representation
func (s *ListObjectVersionsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListObjectVersionsOutput
SetCommonPrefixes sets the CommonPrefixes field's value.
func (s *ListObjectVersionsOutput) SetDeleteMarkers(v []*DeleteMarkerEntry) *ListObjectVersionsOutput
SetDeleteMarkers sets the DeleteMarkers field's value.
func (s *ListObjectVersionsOutput) SetDelimiter(v string) *ListObjectVersionsOutput
SetDelimiter sets the Delimiter field's value.
func (s *ListObjectVersionsOutput) SetEncodingType(v string) *ListObjectVersionsOutput
SetEncodingType sets the EncodingType field's value.
func (s *ListObjectVersionsOutput) SetIsTruncated(v bool) *ListObjectVersionsOutput
SetIsTruncated sets the IsTruncated field's value.
func (s *ListObjectVersionsOutput) SetKeyMarker(v string) *ListObjectVersionsOutput
SetKeyMarker sets the KeyMarker field's value.
func (s *ListObjectVersionsOutput) SetMaxKeys(v int64) *ListObjectVersionsOutput
SetMaxKeys sets the MaxKeys field's value.
func (s *ListObjectVersionsOutput) SetName(v string) *ListObjectVersionsOutput
SetName sets the Name field's value.
func (s *ListObjectVersionsOutput) SetNextKeyMarker(v string) *ListObjectVersionsOutput
SetNextKeyMarker sets the NextKeyMarker field's value.
func (s *ListObjectVersionsOutput) SetNextVersionIdMarker(v string) *ListObjectVersionsOutput
SetNextVersionIdMarker sets the NextVersionIdMarker field's value.
func (s *ListObjectVersionsOutput) SetPrefix(v string) *ListObjectVersionsOutput
SetPrefix sets the Prefix field's value.
func (s *ListObjectVersionsOutput) SetVersionIdMarker(v string) *ListObjectVersionsOutput
SetVersionIdMarker sets the VersionIdMarker field's value.
func (s *ListObjectVersionsOutput) SetVersions(v []*ObjectVersion) *ListObjectVersionsOutput
SetVersions sets the Versions field's value.
func (s ListObjectVersionsOutput) String() string
String returns the string representation
type ListObjectsInput struct { // The name of the bucket containing the objects. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // A delimiter is a character you use to group keys. Delimiter *string `location:"querystring" locationName:"delimiter" type:"string"` // Requests Amazon S3 to encode the object keys in the response and specifies // the encoding method to use. An object key may contain any Unicode character; // however, XML 1.0 parser cannot parse some characters, such as characters // with an ASCII value from 0 to 10. For characters that are not supported in // XML 1.0, you can add this parameter to request that Amazon S3 encode the // keys in the response. EncodingType *string `location:"querystring" locationName:"encoding-type" type:"string" enum:"EncodingType"` // Specifies the key to start with when listing objects in a bucket. Marker *string `location:"querystring" locationName:"marker" type:"string"` // Sets the maximum number of keys returned in the response. The response might // contain fewer keys but will never contain more. MaxKeys *int64 `location:"querystring" locationName:"max-keys" type:"integer"` // Limits the response to keys that begin with the specified prefix. Prefix *string `location:"querystring" locationName:"prefix" type:"string"` // Confirms that the requester knows that she or he will be charged for the // list objects request. Bucket owners need not specify this parameter in their // requests. RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // contains filtered or unexported fields }
func (s ListObjectsInput) GoString() string
GoString returns the string representation
func (s *ListObjectsInput) SetBucket(v string) *ListObjectsInput
SetBucket sets the Bucket field's value.
func (s *ListObjectsInput) SetDelimiter(v string) *ListObjectsInput
SetDelimiter sets the Delimiter field's value.
func (s *ListObjectsInput) SetEncodingType(v string) *ListObjectsInput
SetEncodingType sets the EncodingType field's value.
func (s *ListObjectsInput) SetMarker(v string) *ListObjectsInput
SetMarker sets the Marker field's value.
func (s *ListObjectsInput) SetMaxKeys(v int64) *ListObjectsInput
SetMaxKeys sets the MaxKeys field's value.
func (s *ListObjectsInput) SetPrefix(v string) *ListObjectsInput
SetPrefix sets the Prefix field's value.
func (s *ListObjectsInput) SetRequestPayer(v string) *ListObjectsInput
SetRequestPayer sets the RequestPayer field's value.
func (s ListObjectsInput) String() string
String returns the string representation
func (s *ListObjectsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListObjectsOutput struct { // All of the keys rolled up in a common prefix count as a single return when // calculating the number of returns. // // A response can contain CommonPrefixes only if you specify a delimiter. // // CommonPrefixes contains all (if there are any) keys between Prefix and the // next occurrence of the string specified by the delimiter. // // CommonPrefixes lists keys that act like subdirectories in the directory specified // by Prefix. // // For example, if the prefix is notes/ and the delimiter is a slash (/) as // in notes/summer/july, the common prefix is notes/summer/. All of the keys // that roll up into a common prefix count as a single return when calculating // the number of returns. CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"` // Metadata about each object returned. Contents []*Object `type:"list" flattened:"true"` // Causes keys that contain the same string between the prefix and the first // occurrence of the delimiter to be rolled up into a single result element // in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere // in the response. Each rolled-up result counts as only one return against // the MaxKeys value. Delimiter *string `type:"string"` // Encoding type used by Amazon S3 to encode object keys in the response. EncodingType *string `type:"string" enum:"EncodingType"` // A flag that indicates whether or not Amazon S3 returned all of the results // that satisfied the search criteria. IsTruncated *bool `type:"boolean"` // Indicates where in the bucket listing begins. Marker is included in the response // if it was sent with the request. Marker *string `type:"string"` // The maximum number of keys returned in the response body. MaxKeys *int64 `type:"integer"` // Name of the bucket. Name *string `type:"string"` // When response is truncated (the IsTruncated element value in the response // is true), you can use the key name in this field as marker in the subsequent // request to get next set of objects. Amazon S3 lists objects in alphabetical // order Note: This element is returned only if you have delimiter request parameter // specified. If response does not include the NextMaker and it is truncated, // you can use the value of the last Key in the response as the marker in the // subsequent request to get the next set of object keys. NextMarker *string `type:"string"` // Keys that begin with the indicated prefix. Prefix *string `type:"string"` // contains filtered or unexported fields }
func (s ListObjectsOutput) GoString() string
GoString returns the string representation
func (s *ListObjectsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListObjectsOutput
SetCommonPrefixes sets the CommonPrefixes field's value.
func (s *ListObjectsOutput) SetContents(v []*Object) *ListObjectsOutput
SetContents sets the Contents field's value.
func (s *ListObjectsOutput) SetDelimiter(v string) *ListObjectsOutput
SetDelimiter sets the Delimiter field's value.
func (s *ListObjectsOutput) SetEncodingType(v string) *ListObjectsOutput
SetEncodingType sets the EncodingType field's value.
func (s *ListObjectsOutput) SetIsTruncated(v bool) *ListObjectsOutput
SetIsTruncated sets the IsTruncated field's value.
func (s *ListObjectsOutput) SetMarker(v string) *ListObjectsOutput
SetMarker sets the Marker field's value.
func (s *ListObjectsOutput) SetMaxKeys(v int64) *ListObjectsOutput
SetMaxKeys sets the MaxKeys field's value.
func (s *ListObjectsOutput) SetName(v string) *ListObjectsOutput
SetName sets the Name field's value.
func (s *ListObjectsOutput) SetNextMarker(v string) *ListObjectsOutput
SetNextMarker sets the NextMarker field's value.
func (s *ListObjectsOutput) SetPrefix(v string) *ListObjectsOutput
SetPrefix sets the Prefix field's value.
func (s ListObjectsOutput) String() string
String returns the string representation
type ListObjectsV2Input struct { // Name of the bucket to list. // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // ContinuationToken indicates Amazon S3 that the list is being continued on // this bucket with a token. ContinuationToken is obfuscated and is not a real // key. ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"` // A delimiter is a character you use to group keys. Delimiter *string `location:"querystring" locationName:"delimiter" type:"string"` // Encoding type used by Amazon S3 to encode object keys in the response. EncodingType *string `location:"querystring" locationName:"encoding-type" type:"string" enum:"EncodingType"` // The owner field is not present in listV2 by default, if you want to return // owner field with each key in the result then set the fetch owner field to // true FetchOwner *bool `location:"querystring" locationName:"fetch-owner" type:"boolean"` // Sets the maximum number of keys returned in the response. The response might // contain fewer keys but will never contain more. MaxKeys *int64 `location:"querystring" locationName:"max-keys" type:"integer"` // Limits the response to keys that begin with the specified prefix. Prefix *string `location:"querystring" locationName:"prefix" type:"string"` // Confirms that the requester knows that she or he will be charged for the // list objects request in V2 style. Bucket owners need not specify this parameter // in their requests. RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts // listing after this specified key. StartAfter can be any key in the bucket. StartAfter *string `location:"querystring" locationName:"start-after" type:"string"` // contains filtered or unexported fields }
func (s ListObjectsV2Input) GoString() string
GoString returns the string representation
func (s *ListObjectsV2Input) SetBucket(v string) *ListObjectsV2Input
SetBucket sets the Bucket field's value.
func (s *ListObjectsV2Input) SetContinuationToken(v string) *ListObjectsV2Input
SetContinuationToken sets the ContinuationToken field's value.
func (s *ListObjectsV2Input) SetDelimiter(v string) *ListObjectsV2Input
SetDelimiter sets the Delimiter field's value.
func (s *ListObjectsV2Input) SetEncodingType(v string) *ListObjectsV2Input
SetEncodingType sets the EncodingType field's value.
func (s *ListObjectsV2Input) SetFetchOwner(v bool) *ListObjectsV2Input
SetFetchOwner sets the FetchOwner field's value.
func (s *ListObjectsV2Input) SetMaxKeys(v int64) *ListObjectsV2Input
SetMaxKeys sets the MaxKeys field's value.
func (s *ListObjectsV2Input) SetPrefix(v string) *ListObjectsV2Input
SetPrefix sets the Prefix field's value.
func (s *ListObjectsV2Input) SetRequestPayer(v string) *ListObjectsV2Input
SetRequestPayer sets the RequestPayer field's value.
func (s *ListObjectsV2Input) SetStartAfter(v string) *ListObjectsV2Input
SetStartAfter sets the StartAfter field's value.
func (s ListObjectsV2Input) String() string
String returns the string representation
func (s *ListObjectsV2Input) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListObjectsV2Output struct { // All of the keys rolled up into a common prefix count as a single return when // calculating the number of returns. // // A response can contain CommonPrefixes only if you specify a delimiter. // // CommonPrefixes contains all (if there are any) keys between Prefix and the // next occurrence of the string specified by a delimiter. // // CommonPrefixes lists keys that act like subdirectories in the directory specified // by Prefix. // // For example, if the prefix is notes/ and the delimiter is a slash (/) as // in notes/summer/july, the common prefix is notes/summer/. All of the keys // that roll up into a common prefix count as a single return when calculating // the number of returns. CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"` // Metadata about each object returned. Contents []*Object `type:"list" flattened:"true"` // If ContinuationToken was sent with the request, it is included in the response. ContinuationToken *string `type:"string"` // Causes keys that contain the same string between the prefix and the first // occurrence of the delimiter to be rolled up into a single result element // in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere // in the response. Each rolled-up result counts as only one return against // the MaxKeys value. Delimiter *string `type:"string"` // Encoding type used by Amazon S3 to encode object key names in the XML response. // // If you specify the encoding-type request parameter, Amazon S3 includes this // element in the response, and returns encoded key name values in the following // response elements: // // Delimiter, Prefix, Key, and StartAfter. EncodingType *string `type:"string" enum:"EncodingType"` // Set to false if all of the results were returned. Set to true if more keys // are available to return. If the number of results exceeds that specified // by MaxKeys, all of the results might not be returned. IsTruncated *bool `type:"boolean"` // KeyCount is the number of keys returned with this request. KeyCount will // always be less than equals to MaxKeys field. Say you ask for 50 keys, your // result will include less than equals 50 keys KeyCount *int64 `type:"integer"` // Sets the maximum number of keys returned in the response. The response might // contain fewer keys but will never contain more. MaxKeys *int64 `type:"integer"` // Name of the bucket. Name *string `type:"string"` // NextContinuationToken is sent when isTruncated is true which means there // are more keys in the bucket that can be listed. The next list requests to // Amazon S3 can be continued with this NextContinuationToken. NextContinuationToken // is obfuscated and is not a real key NextContinuationToken *string `type:"string"` // Keys that begin with the indicated prefix. Prefix *string `type:"string"` // If StartAfter was sent with the request, it is included in the response. StartAfter *string `type:"string"` // contains filtered or unexported fields }
func (s ListObjectsV2Output) GoString() string
GoString returns the string representation
func (s *ListObjectsV2Output) SetCommonPrefixes(v []*CommonPrefix) *ListObjectsV2Output
SetCommonPrefixes sets the CommonPrefixes field's value.
func (s *ListObjectsV2Output) SetContents(v []*Object) *ListObjectsV2Output
SetContents sets the Contents field's value.
func (s *ListObjectsV2Output) SetContinuationToken(v string) *ListObjectsV2Output
SetContinuationToken sets the ContinuationToken field's value.
func (s *ListObjectsV2Output) SetDelimiter(v string) *ListObjectsV2Output
SetDelimiter sets the Delimiter field's value.
func (s *ListObjectsV2Output) SetEncodingType(v string) *ListObjectsV2Output
SetEncodingType sets the EncodingType field's value.
func (s *ListObjectsV2Output) SetIsTruncated(v bool) *ListObjectsV2Output
SetIsTruncated sets the IsTruncated field's value.
func (s *ListObjectsV2Output) SetKeyCount(v int64) *ListObjectsV2Output
SetKeyCount sets the KeyCount field's value.
func (s *ListObjectsV2Output) SetMaxKeys(v int64) *ListObjectsV2Output
SetMaxKeys sets the MaxKeys field's value.
func (s *ListObjectsV2Output) SetName(v string) *ListObjectsV2Output
SetName sets the Name field's value.
func (s *ListObjectsV2Output) SetNextContinuationToken(v string) *ListObjectsV2Output
SetNextContinuationToken sets the NextContinuationToken field's value.
func (s *ListObjectsV2Output) SetPrefix(v string) *ListObjectsV2Output
SetPrefix sets the Prefix field's value.
func (s *ListObjectsV2Output) SetStartAfter(v string) *ListObjectsV2Output
SetStartAfter sets the StartAfter field's value.
func (s ListObjectsV2Output) String() string
String returns the string representation
type ListPartsInput struct { // Name of the bucket to which the parts are being uploaded.-> // // Bucket is a required field Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"` // Object key for which the multipart upload was initiated. // // Key is a required field Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` // Sets the maximum number of parts to return. MaxParts *int64 `location:"querystring" locationName:"max-parts" type:"integer"` // Specifies the part after which listing should begin. Only parts with higher // part numbers will be listed. PartNumberMarker *int64 `location:"querystring" locationName:"part-number-marker" type:"integer"` // Confirms that the requester knows that she or he will be charged for the // request. Bucket owners need not specify this parameter in their requests. // Documentation on downloading objects from requester pays buckets can be found // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"` // Upload ID identifying the multipart upload whose parts are being listed. // // UploadId is a required field UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"` // contains filtered or unexported fields }
func (s ListPartsInput) GoString() string
GoString returns the string representation
func (s *ListPartsInput) SetBucket(v string) *ListPartsInput
SetBucket sets the Bucket field's value.
func (s *ListPartsInput) SetKey(v string) *ListPartsInput
SetKey sets the Key field's value.
func (s *ListPartsInput) SetMaxParts(v int64) *ListPartsInput
SetMaxParts sets the MaxParts field's value.
func (s *ListPartsInput) SetPartNumberMarker(v int64) *ListPartsInput
SetPartNumberMarker sets the PartNumberMarker field's value.
func (s *ListPartsInput) SetRequestPayer(v string) *ListPartsInput
SetRequestPayer sets the RequestPayer field's value.
func (s *ListPartsInput) SetUploadId(v string) *ListPartsInput
SetUploadId sets the UploadId field's value.
func (s ListPartsInput) String() string
String returns the string representation
func (s *ListPartsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListPartsOutput struct { // If the bucket has a lifecycle rule configured with an action to abort incomplete // multipart uploads and the prefix in the lifecycle rule matches the object // name in the request, then the response includes this header indicating when // the initiated multipart upload will become eligible for abort operation. // For more information, see Aborting Incomplete Multipart Uploads Using a Bucket // Lifecycle Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config). // // The response will also include the x-amz-abort-rule-id header that will provide // the ID of the lifecycle configuration rule that defines this action. AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp"` // This header is returned along with the x-amz-abort-date header. It identifies // applicable lifecycle configuration rule that defines the action to abort // incomplete multipart uploads. AbortRuleId *string `location:"header" locationName:"x-amz-abort-rule-id" type:"string"` // Name of the bucket to which the multipart upload was initiated. Bucket *string `type:"string"` // Container element that identifies who initiated the multipart upload. If // the initiator is an AWS account, this element provides the same information // as the Owner element. If the initiator is an IAM User, then this element // provides the user ARN and display name. Initiator *Initiator `type:"structure"` // Indicates whether the returned list of parts is truncated. A true value indicates // that the list was truncated. A list can be truncated if the number of parts // exceeds the limit returned in the MaxParts element. IsTruncated *bool `type:"boolean"` // Object key for which the multipart upload was initiated. Key *string `min:"1" type:"string"` // Maximum number of parts that were allowed in the response. MaxParts *int64 `type:"integer"` // When a list is truncated, this element specifies the last part in the list, // as well as the value to use for the part-number-marker request parameter // in a subsequent request. NextPartNumberMarker *int64 `type:"integer"` // Container element that identifies the object owner, after the object is created. // If multipart upload is initiated by an IAM user, this element provides the // parent account ID and display name. Owner *Owner `type:"structure"` // When a list is truncated, this element specifies the last part in the list, // as well as the value to use for the part-number-marker request parameter // in a subsequent request. PartNumberMarker *int64 `type:"integer"` // Container for elements related to a particular part. A response can contain // zero or more Part elements. Parts []*Part `locationName:"Part" type:"list" flattened:"true"` // If present, indicates that the requester was successfully charged for the // request. RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"` // Class of storage (STANDARD or REDUCED_REDUNDANCY) used to store the uploaded // object. StorageClass *string `type:"string" enum:"StorageClass"` // Upload ID identifying the multipart upload whose parts are being listed. UploadId *string `type:"string"` // contains filtered or unexported fields }
func (s ListPartsOutput) GoString() string
GoString returns the string representation
func (s *ListPartsOutput) SetAbortDate(v time.Time) *ListPartsOutput
SetAbortDate sets the AbortDate field's value.
func (s *ListPartsOutput) SetAbortRuleId(v string) *ListPartsOutput
SetAbortRuleId sets the AbortRuleId field's value.
func (s *ListPartsOutput) SetBucket(v string) *ListPartsOutput
SetBucket sets the Bucket field's value.
func (s *ListPartsOutput) SetInitiator(v *Initiator) *ListPartsOutput
SetInitiator sets the Initiator field's value.
func (s *ListPartsOutput) SetIsTruncated(v bool) *ListPartsOutput
SetIsTruncated sets the IsTruncated field's value.
func (s *ListPartsOutput) SetKey(v string) *ListPartsOutput
SetKey sets the Key field's value.
func (s *ListPartsOutput) SetMaxParts(v int64) *ListPartsOutput
SetMaxParts sets the MaxParts field's value.
func (s *ListPartsOutput) SetNextPartNumberMarker(v int64) *ListPartsOutput
SetNextPartNumberMarker sets the NextPartNumberMarker field's value.
func (s *ListPartsOutput) SetOwner(v *Owner) *ListPartsOutput
SetOwner sets the Owner field's value.
func (s *ListPartsOutput) SetPartNumberMarker(v int64) *ListPartsOutput
SetPartNumberMarker sets the PartNumberMarker field's value.
func (s *ListPartsOutput) SetParts(v []*Part) *ListPartsOutput
SetParts sets the Parts field's value.
func (s *ListPartsOutput) SetRequestCharged(v string) *ListPartsOutput
SetRequestCharged sets the RequestCharged field's value.
func (s *ListPartsOutput) SetStorageClass(v string) *ListPartsOutput
SetStorageClass sets the StorageClass field's value.
func (s *ListPartsOutput) SetUploadId(v string) *ListPartsOutput
SetUploadId sets the UploadId field's value.
func (s ListPartsOutput) String() string
String returns the string representation
type Location struct { // A list of grants that control access to the staged results. AccessControlList []*Grant `locationNameList:"Grant" type:"list"` // The name of the bucket where the restore results will be placed. // // BucketName is a required field BucketName *string `type:"string" required:"true"` // The canned ACL to apply to the restore results. CannedACL *string `type:"string" enum:"ObjectCannedACL"` // Contains the type of server-side encryption used. Encryption *Encryption `type:"structure"` // The prefix that is prepended to the restore results for this request. // // Prefix is a required field Prefix *string `type:"string" required:"true"` // The class of storage used to store the restore results. StorageClass *string `type:"string" enum:"StorageClass"` // The tag-set that is applied to the restore results. Tagging *Tagging `type:"structure"` // A list of metadata to store with the restore results in S3. UserMetadata []*MetadataEntry `locationNameList:"MetadataEntry" type:"list"` // contains filtered or unexported fields }
Describes an S3 location that will receive the results of the restore request.
func (s Location) GoString() string
GoString returns the string representation
func (s *Location) SetAccessControlList(v []*Grant) *Location
SetAccessControlList sets the AccessControlList field's value.
func (s *Location) SetBucketName(v string) *Location
SetBucketName sets the BucketName field's value.
func (s *Location) SetCannedACL(v string) *Location
SetCannedACL sets the CannedACL field's value.
func (s *Location) SetEncryption(v *Encryption) *Location
SetEncryption sets the Encryption field's value.
func (s *Location) SetPrefix(v string) *Location
SetPrefix sets the Prefix field's value.
func (s *Location) SetStorageClass(v string) *Location
SetStorageClass sets the StorageClass field's value.
func (s *Location) SetTagging(v *Tagging) *Location
SetTagging sets the Tagging field's value.
func (s *Location) SetUserMetadata(v []*MetadataEntry) *Location
SetUserMetadata sets the UserMetadata field's value.
func (s Location) String() string
String returns the string representation
func (s *Location) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type LoggingEnabled struct { // Specifies the bucket where you want Amazon S3 to store server access logs. // You can have your logs delivered to any bucket that you own, including the // same bucket that is being logged. You can also configure multiple buckets // to deliver their logs to the same target bucket. In this case you should // choose a different TargetPrefix for each source bucket so that the delivered // log files can be distinguished by key. // // TargetBucket is a required field TargetBucket *string `type:"string" required:"true"` // Container for granting information. TargetGrants []*TargetGrant `locationNameList:"Grant" type:"list"` // A prefix for all log object keys. If you store log files from multiple Amazon // S3 buckets in a single bucket, you can use a prefix to distinguish which // log files came from which bucket. // // TargetPrefix is a required field TargetPrefix *string `type:"string" required:"true"` // contains filtered or unexported fields }
Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a bucket. For more information, see PUT Bucket logging (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTlogging.html) in the Amazon Simple Storage Service API Reference.
func (s LoggingEnabled) GoString() string
GoString returns the string representation
func (s *LoggingEnabled) SetTargetBucket(v string) *LoggingEnabled
SetTargetBucket sets the TargetBucket field's value.
func (s *LoggingEnabled) SetTargetGrants(v []*TargetGrant) *LoggingEnabled
SetTargetGrants sets the TargetGrants field's value.
func (s *LoggingEnabled) SetTargetPrefix(v string) *LoggingEnabled
SetTargetPrefix sets the TargetPrefix field's value.
func (s LoggingEnabled) String() string
String returns the string representation
func (s *LoggingEnabled) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type MetadataEntry struct { // Name of the Object. Name *string `type:"string"` // Value of the Object. Value *string `type:"string"` // contains filtered or unexported fields }
A metadata key-value pair to store with an object.
func (s MetadataEntry) GoString() string
GoString returns the string representation
func (s *MetadataEntry) SetName(v string) *MetadataEntry
SetName sets the Name field's value.
func (s *MetadataEntry) SetValue(v string) *MetadataEntry
SetValue sets the Value field's value.
func (s MetadataEntry) String() string
String returns the string representation
type Metrics struct { // A container specifying the time threshold for emitting the s3:Replication:OperationMissedThreshold // event. // // EventThreshold is a required field EventThreshold *ReplicationTimeValue `type:"structure" required:"true"` // Specifies whether the replication metrics are enabled. // // Status is a required field Status *string `type:"string" required:"true" enum:"MetricsStatus"` // contains filtered or unexported fields }
A container specifying replication metrics-related information, including whether emitting metrics and Amazon S3 events for replication are enabled. In addition, contains configurations related to specific metrics or events. Must be specified together with a ReplicationTime block.
func (s Metrics) GoString() string
GoString returns the string representation
func (s *Metrics) SetEventThreshold(v *ReplicationTimeValue) *Metrics
SetEventThreshold sets the EventThreshold field's value.
func (s *Metrics) SetStatus(v string) *Metrics
SetStatus sets the Status field's value.
func (s Metrics) String() string
String returns the string representation
func (s *Metrics) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type MetricsAndOperator struct { // The prefix used when evaluating an AND predicate. Prefix *string `type:"string"` // The list of tags used when evaluating an AND predicate. Tags []*Tag `locationName:"Tag" locationNameList:"Tag" type:"list" flattened:"true"` // contains filtered or unexported fields }
A conjunction (logical AND) of predicates, which is used in evaluating a metrics filter. The operator must have at least two predicates, and an object must match all of the predicates in order for the filter to apply.
func (s MetricsAndOperator) GoString() string
GoString returns the string representation
func (s *MetricsAndOperator) SetPrefix(v string) *MetricsAndOperator
SetPrefix sets the Prefix field's value.
func (s *MetricsAndOperator) SetTags(v []*Tag) *MetricsAndOperator
SetTags sets the Tags field's value.
func (s MetricsAndOperator) String() string
String returns the string representation
func (s *MetricsAndOperator) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type MetricsConfiguration struct { // Specifies a metrics configuration filter. The metrics configuration will // only include objects that meet the filter's criteria. A filter must be a // prefix, a tag, or a conjunction (MetricsAndOperator). Filter *MetricsFilter `type:"structure"` // The ID used to identify the metrics configuration. // // Id is a required field Id *string `type:"string" required:"true"` // contains filtered or unexported fields }
Specifies a metrics configuration for the CloudWatch request metrics (specified by the metrics configuration ID) from an Amazon S3 bucket. If you're updating an existing metrics configuration, note that this is a full replacement of the existing metrics configuration. If you don't include the elements you want to keep, they are erased. For more information, see PUT Bucket metrics (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTMetricConfiguration.html) in the Amazon Simple Storage Service API Reference.
func (s MetricsConfiguration) GoString() string
GoString returns the string representation
func (s *MetricsConfiguration) SetFilter(v *MetricsFilter) *MetricsConfiguration
SetFilter sets the Filter field's value.
func (s *MetricsConfiguration) SetId(v string) *MetricsConfiguration
SetId sets the Id field's value.
func (s MetricsConfiguration) String() string
String returns the string representation
func (s *MetricsConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type MetricsFilter struct { // A conjunction (logical AND) of predicates, which is used in evaluating a // metrics filter. The operator must have at least two predicates, and an object // must match all of the predicates in order for the filter to apply. And *MetricsAndOperator `type:"structure"` // The prefix used when evaluating a metrics filter. Prefix *string `type:"string"` // The tag used when evaluating a metrics filter. Tag *Tag `type:"structure"` // contains filtered or unexported fields }
Specifies a metrics configuration filter. The metrics configuration only includes objects that meet the filter's criteria. A filter must be a prefix, a tag, or a conjunction (MetricsAndOperator).
func (s MetricsFilter) GoString() string
GoString returns the string representation
func (s *MetricsFilter) SetAnd(v *MetricsAndOperator) *MetricsFilter
SetAnd sets the And field's value.
func (s *MetricsFilter) SetPrefix(v string) *MetricsFilter
SetPrefix sets the Prefix field's value.
func (s *MetricsFilter) SetTag(v *Tag) *MetricsFilter
SetTag sets the Tag field's value.
func (s MetricsFilter) String() string
String returns the string representation
func (s *MetricsFilter) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type MultipartUpload struct { // Date and time at which the multipart upload was initiated. Initiated *time.Time `type:"timestamp"` // Identifies who initiated the multipart upload. Initiator *Initiator `type:"structure"` // Key of the object for which the multipart upload was initiated. Key *string `min:"1" type:"string"` // Specifies the owner of the object that is part of the multipart upload. Owner *Owner `type:"structure"` // The class of storage used to store the object. StorageClass *string `type:"string" enum:"StorageClass"` // Upload ID that identifies the multipart upload. UploadId *string `type:"string"` // contains filtered or unexported fields }
Container for the MultipartUpload for the Amazon S3 object.
func (s MultipartUpload) GoString() string
GoString returns the string representation
func (s *MultipartUpload) SetInitiated(v time.Time) *MultipartUpload
SetInitiated sets the Initiated field's value.
func (s *MultipartUpload) SetInitiator(v *Initiator) *MultipartUpload
SetInitiator sets the Initiator field's value.
func (s *MultipartUpload) SetKey(v string) *MultipartUpload
SetKey sets the Key field's value.
func (s *MultipartUpload) SetOwner(v *Owner) *MultipartUpload
SetOwner sets the Owner field's value.
func (s *MultipartUpload) SetStorageClass(v string) *MultipartUpload
SetStorageClass sets the StorageClass field's value.
func (s *MultipartUpload) SetUploadId(v string) *MultipartUpload
SetUploadId sets the UploadId field's value.
func (s MultipartUpload) String() string
String returns the string representation
type NoncurrentVersionExpiration struct { // Specifies the number of days an object is noncurrent before Amazon S3 can // perform the associated action. For information about the noncurrent days // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent // (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations) // in the Amazon Simple Storage Service Developer Guide. NoncurrentDays *int64 `type:"integer"` // contains filtered or unexported fields }
Specifies when noncurrent object versions expire. Upon expiration, Amazon S3 permanently deletes the noncurrent object versions. You set this lifecycle configuration action on a bucket that has versioning enabled (or suspended) to request that Amazon S3 delete noncurrent object versions at a specific period in the object's lifetime.
func (s NoncurrentVersionExpiration) GoString() string
GoString returns the string representation
func (s *NoncurrentVersionExpiration) SetNoncurrentDays(v int64) *NoncurrentVersionExpiration
SetNoncurrentDays sets the NoncurrentDays field's value.
func (s NoncurrentVersionExpiration) String() string
String returns the string representation
type NoncurrentVersionTransition struct { // Specifies the number of days an object is noncurrent before Amazon S3 can // perform the associated action. For information about the noncurrent days // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent // (https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html) // in the Amazon Simple Storage Service Developer Guide. NoncurrentDays *int64 `type:"integer"` // The class of storage used to store the object. StorageClass *string `type:"string" enum:"TransitionStorageClass"` // contains filtered or unexported fields }
Container for the transition rule that describes when noncurrent objects transition to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, or DEEP_ARCHIVE storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, or DEEP_ARCHIVE storage class at a specific period in the object's lifetime.