1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
10 "github.com/aws/aws-sdk-go/aws"
11 "github.com/aws/aws-sdk-go/aws/awsutil"
12 "github.com/aws/aws-sdk-go/aws/request"
13 "github.com/aws/aws-sdk-go/private/protocol"
14 "github.com/aws/aws-sdk-go/private/protocol/restxml"
17 const opAbortMultipartUpload = "AbortMultipartUpload"
19 // AbortMultipartUploadRequest generates a "aws/request.Request" representing the
20 // client's request for the AbortMultipartUpload operation. The "output" return
21 // value can be used to capture response data after the request's "Send" method
24 // See AbortMultipartUpload for usage and error information.
26 // Creating a request object using this method should be used when you want to inject
27 // custom logic into the request's lifecycle using a custom handler, or if you want to
28 // access properties on the request object before or after sending the request. If
29 // you just want the service response, call the AbortMultipartUpload method directly
32 // Note: You must call the "Send" method on the returned request object in order
33 // to execute the request.
35 // // Example sending a request using the AbortMultipartUploadRequest method.
36 // req, resp := client.AbortMultipartUploadRequest(params)
39 // if err == nil { // resp is now filled
43 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortMultipartUpload
44 func (c *S3) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) (req *request.Request, output *AbortMultipartUploadOutput) {
45 op := &request.Operation{
46 Name: opAbortMultipartUpload,
48 HTTPPath: "/{Bucket}/{Key+}",
52 input = &AbortMultipartUploadInput{}
55 output = &AbortMultipartUploadOutput{}
56 req = c.newRequest(op, input, output)
60 // AbortMultipartUpload API operation for Amazon Simple Storage Service.
62 // Aborts a multipart upload.
64 // To verify that all parts have been removed, so you don't get charged for
65 // the part storage, you should call the List Parts operation and ensure the
66 // parts list is empty.
68 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
69 // with awserr.Error's Code and Message methods to get detailed information about
72 // See the AWS API reference guide for Amazon Simple Storage Service's
73 // API operation AbortMultipartUpload for usage and error information.
75 // Returned Error Codes:
76 // * ErrCodeNoSuchUpload "NoSuchUpload"
77 // The specified multipart upload does not exist.
79 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortMultipartUpload
80 func (c *S3) AbortMultipartUpload(input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error) {
81 req, out := c.AbortMultipartUploadRequest(input)
82 return out, req.Send()
85 // AbortMultipartUploadWithContext is the same as AbortMultipartUpload with the addition of
86 // the ability to pass a context and additional request options.
88 // See AbortMultipartUpload for details on how to use this API operation.
90 // The context must be non-nil and will be used for request cancellation. If
91 // the context is nil a panic will occur. In the future the SDK may create
92 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
93 // for more information on using Contexts.
94 func (c *S3) AbortMultipartUploadWithContext(ctx aws.Context, input *AbortMultipartUploadInput, opts ...request.Option) (*AbortMultipartUploadOutput, error) {
95 req, out := c.AbortMultipartUploadRequest(input)
97 req.ApplyOptions(opts...)
98 return out, req.Send()
101 const opCompleteMultipartUpload = "CompleteMultipartUpload"
103 // CompleteMultipartUploadRequest generates a "aws/request.Request" representing the
104 // client's request for the CompleteMultipartUpload operation. The "output" return
105 // value can be used to capture response data after the request's "Send" method
108 // See CompleteMultipartUpload for usage and error information.
110 // Creating a request object using this method should be used when you want to inject
111 // custom logic into the request's lifecycle using a custom handler, or if you want to
112 // access properties on the request object before or after sending the request. If
113 // you just want the service response, call the CompleteMultipartUpload method directly
116 // Note: You must call the "Send" method on the returned request object in order
117 // to execute the request.
119 // // Example sending a request using the CompleteMultipartUploadRequest method.
120 // req, resp := client.CompleteMultipartUploadRequest(params)
123 // if err == nil { // resp is now filled
127 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompleteMultipartUpload
128 func (c *S3) CompleteMultipartUploadRequest(input *CompleteMultipartUploadInput) (req *request.Request, output *CompleteMultipartUploadOutput) {
129 op := &request.Operation{
130 Name: opCompleteMultipartUpload,
132 HTTPPath: "/{Bucket}/{Key+}",
136 input = &CompleteMultipartUploadInput{}
139 output = &CompleteMultipartUploadOutput{}
140 req = c.newRequest(op, input, output)
144 // CompleteMultipartUpload API operation for Amazon Simple Storage Service.
146 // Completes a multipart upload by assembling previously uploaded parts.
148 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
149 // with awserr.Error's Code and Message methods to get detailed information about
152 // See the AWS API reference guide for Amazon Simple Storage Service's
153 // API operation CompleteMultipartUpload for usage and error information.
154 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompleteMultipartUpload
155 func (c *S3) CompleteMultipartUpload(input *CompleteMultipartUploadInput) (*CompleteMultipartUploadOutput, error) {
156 req, out := c.CompleteMultipartUploadRequest(input)
157 return out, req.Send()
160 // CompleteMultipartUploadWithContext is the same as CompleteMultipartUpload with the addition of
161 // the ability to pass a context and additional request options.
163 // See CompleteMultipartUpload for details on how to use this API operation.
165 // The context must be non-nil and will be used for request cancellation. If
166 // the context is nil a panic will occur. In the future the SDK may create
167 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
168 // for more information on using Contexts.
169 func (c *S3) CompleteMultipartUploadWithContext(ctx aws.Context, input *CompleteMultipartUploadInput, opts ...request.Option) (*CompleteMultipartUploadOutput, error) {
170 req, out := c.CompleteMultipartUploadRequest(input)
172 req.ApplyOptions(opts...)
173 return out, req.Send()
176 const opCopyObject = "CopyObject"
178 // CopyObjectRequest generates a "aws/request.Request" representing the
179 // client's request for the CopyObject operation. The "output" return
180 // value can be used to capture response data after the request's "Send" method
183 // See CopyObject for usage and error information.
185 // Creating a request object using this method should be used when you want to inject
186 // custom logic into the request's lifecycle using a custom handler, or if you want to
187 // access properties on the request object before or after sending the request. If
188 // you just want the service response, call the CopyObject method directly
191 // Note: You must call the "Send" method on the returned request object in order
192 // to execute the request.
194 // // Example sending a request using the CopyObjectRequest method.
195 // req, resp := client.CopyObjectRequest(params)
198 // if err == nil { // resp is now filled
202 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObject
203 func (c *S3) CopyObjectRequest(input *CopyObjectInput) (req *request.Request, output *CopyObjectOutput) {
204 op := &request.Operation{
207 HTTPPath: "/{Bucket}/{Key+}",
211 input = &CopyObjectInput{}
214 output = &CopyObjectOutput{}
215 req = c.newRequest(op, input, output)
219 // CopyObject API operation for Amazon Simple Storage Service.
221 // Creates a copy of an object that is already stored in Amazon S3.
223 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
224 // with awserr.Error's Code and Message methods to get detailed information about
227 // See the AWS API reference guide for Amazon Simple Storage Service's
228 // API operation CopyObject for usage and error information.
230 // Returned Error Codes:
231 // * ErrCodeObjectNotInActiveTierError "ObjectNotInActiveTierError"
232 // The source object of the COPY operation is not in the active tier and is
233 // only stored in Amazon Glacier.
235 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObject
236 func (c *S3) CopyObject(input *CopyObjectInput) (*CopyObjectOutput, error) {
237 req, out := c.CopyObjectRequest(input)
238 return out, req.Send()
241 // CopyObjectWithContext is the same as CopyObject with the addition of
242 // the ability to pass a context and additional request options.
244 // See CopyObject for details on how to use this API operation.
246 // The context must be non-nil and will be used for request cancellation. If
247 // the context is nil a panic will occur. In the future the SDK may create
248 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
249 // for more information on using Contexts.
250 func (c *S3) CopyObjectWithContext(ctx aws.Context, input *CopyObjectInput, opts ...request.Option) (*CopyObjectOutput, error) {
251 req, out := c.CopyObjectRequest(input)
253 req.ApplyOptions(opts...)
254 return out, req.Send()
257 const opCreateBucket = "CreateBucket"
259 // CreateBucketRequest generates a "aws/request.Request" representing the
260 // client's request for the CreateBucket operation. The "output" return
261 // value can be used to capture response data after the request's "Send" method
264 // See CreateBucket for usage and error information.
266 // Creating a request object using this method should be used when you want to inject
267 // custom logic into the request's lifecycle using a custom handler, or if you want to
268 // access properties on the request object before or after sending the request. If
269 // you just want the service response, call the CreateBucket method directly
272 // Note: You must call the "Send" method on the returned request object in order
273 // to execute the request.
275 // // Example sending a request using the CreateBucketRequest method.
276 // req, resp := client.CreateBucketRequest(params)
279 // if err == nil { // resp is now filled
283 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucket
284 func (c *S3) CreateBucketRequest(input *CreateBucketInput) (req *request.Request, output *CreateBucketOutput) {
285 op := &request.Operation{
286 Name: opCreateBucket,
288 HTTPPath: "/{Bucket}",
292 input = &CreateBucketInput{}
295 output = &CreateBucketOutput{}
296 req = c.newRequest(op, input, output)
300 // CreateBucket API operation for Amazon Simple Storage Service.
302 // Creates a new bucket.
304 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
305 // with awserr.Error's Code and Message methods to get detailed information about
308 // See the AWS API reference guide for Amazon Simple Storage Service's
309 // API operation CreateBucket for usage and error information.
311 // Returned Error Codes:
312 // * ErrCodeBucketAlreadyExists "BucketAlreadyExists"
313 // The requested bucket name is not available. The bucket namespace is shared
314 // by all users of the system. Please select a different name and try again.
316 // * ErrCodeBucketAlreadyOwnedByYou "BucketAlreadyOwnedByYou"
318 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucket
319 func (c *S3) CreateBucket(input *CreateBucketInput) (*CreateBucketOutput, error) {
320 req, out := c.CreateBucketRequest(input)
321 return out, req.Send()
324 // CreateBucketWithContext is the same as CreateBucket with the addition of
325 // the ability to pass a context and additional request options.
327 // See CreateBucket for details on how to use this API operation.
329 // The context must be non-nil and will be used for request cancellation. If
330 // the context is nil a panic will occur. In the future the SDK may create
331 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
332 // for more information on using Contexts.
333 func (c *S3) CreateBucketWithContext(ctx aws.Context, input *CreateBucketInput, opts ...request.Option) (*CreateBucketOutput, error) {
334 req, out := c.CreateBucketRequest(input)
336 req.ApplyOptions(opts...)
337 return out, req.Send()
340 const opCreateMultipartUpload = "CreateMultipartUpload"
342 // CreateMultipartUploadRequest generates a "aws/request.Request" representing the
343 // client's request for the CreateMultipartUpload operation. The "output" return
344 // value can be used to capture response data after the request's "Send" method
347 // See CreateMultipartUpload for usage and error information.
349 // Creating a request object using this method should be used when you want to inject
350 // custom logic into the request's lifecycle using a custom handler, or if you want to
351 // access properties on the request object before or after sending the request. If
352 // you just want the service response, call the CreateMultipartUpload method directly
355 // Note: You must call the "Send" method on the returned request object in order
356 // to execute the request.
358 // // Example sending a request using the CreateMultipartUploadRequest method.
359 // req, resp := client.CreateMultipartUploadRequest(params)
362 // if err == nil { // resp is now filled
366 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateMultipartUpload
367 func (c *S3) CreateMultipartUploadRequest(input *CreateMultipartUploadInput) (req *request.Request, output *CreateMultipartUploadOutput) {
368 op := &request.Operation{
369 Name: opCreateMultipartUpload,
371 HTTPPath: "/{Bucket}/{Key+}?uploads",
375 input = &CreateMultipartUploadInput{}
378 output = &CreateMultipartUploadOutput{}
379 req = c.newRequest(op, input, output)
383 // CreateMultipartUpload API operation for Amazon Simple Storage Service.
385 // Initiates a multipart upload and returns an upload ID.
387 // Note: After you initiate multipart upload and upload one or more parts, you
388 // must either complete or abort multipart upload in order to stop getting charged
389 // for storage of the uploaded parts. Only after you either complete or abort
390 // multipart upload, Amazon S3 frees up the parts storage and stops charging
391 // you for the parts storage.
393 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
394 // with awserr.Error's Code and Message methods to get detailed information about
397 // See the AWS API reference guide for Amazon Simple Storage Service's
398 // API operation CreateMultipartUpload for usage and error information.
399 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateMultipartUpload
400 func (c *S3) CreateMultipartUpload(input *CreateMultipartUploadInput) (*CreateMultipartUploadOutput, error) {
401 req, out := c.CreateMultipartUploadRequest(input)
402 return out, req.Send()
405 // CreateMultipartUploadWithContext is the same as CreateMultipartUpload with the addition of
406 // the ability to pass a context and additional request options.
408 // See CreateMultipartUpload for details on how to use this API operation.
410 // The context must be non-nil and will be used for request cancellation. If
411 // the context is nil a panic will occur. In the future the SDK may create
412 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
413 // for more information on using Contexts.
414 func (c *S3) CreateMultipartUploadWithContext(ctx aws.Context, input *CreateMultipartUploadInput, opts ...request.Option) (*CreateMultipartUploadOutput, error) {
415 req, out := c.CreateMultipartUploadRequest(input)
417 req.ApplyOptions(opts...)
418 return out, req.Send()
421 const opDeleteBucket = "DeleteBucket"
423 // DeleteBucketRequest generates a "aws/request.Request" representing the
424 // client's request for the DeleteBucket operation. The "output" return
425 // value can be used to capture response data after the request's "Send" method
428 // See DeleteBucket for usage and error information.
430 // Creating a request object using this method should be used when you want to inject
431 // custom logic into the request's lifecycle using a custom handler, or if you want to
432 // access properties on the request object before or after sending the request. If
433 // you just want the service response, call the DeleteBucket method directly
436 // Note: You must call the "Send" method on the returned request object in order
437 // to execute the request.
439 // // Example sending a request using the DeleteBucketRequest method.
440 // req, resp := client.DeleteBucketRequest(params)
443 // if err == nil { // resp is now filled
447 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucket
448 func (c *S3) DeleteBucketRequest(input *DeleteBucketInput) (req *request.Request, output *DeleteBucketOutput) {
449 op := &request.Operation{
450 Name: opDeleteBucket,
451 HTTPMethod: "DELETE",
452 HTTPPath: "/{Bucket}",
456 input = &DeleteBucketInput{}
459 output = &DeleteBucketOutput{}
460 req = c.newRequest(op, input, output)
461 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
462 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
466 // DeleteBucket API operation for Amazon Simple Storage Service.
468 // Deletes the bucket. All objects (including all object versions and Delete
469 // Markers) in the bucket must be deleted before the bucket itself can be deleted.
471 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
472 // with awserr.Error's Code and Message methods to get detailed information about
475 // See the AWS API reference guide for Amazon Simple Storage Service's
476 // API operation DeleteBucket for usage and error information.
477 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucket
478 func (c *S3) DeleteBucket(input *DeleteBucketInput) (*DeleteBucketOutput, error) {
479 req, out := c.DeleteBucketRequest(input)
480 return out, req.Send()
483 // DeleteBucketWithContext is the same as DeleteBucket with the addition of
484 // the ability to pass a context and additional request options.
486 // See DeleteBucket for details on how to use this API operation.
488 // The context must be non-nil and will be used for request cancellation. If
489 // the context is nil a panic will occur. In the future the SDK may create
490 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
491 // for more information on using Contexts.
492 func (c *S3) DeleteBucketWithContext(ctx aws.Context, input *DeleteBucketInput, opts ...request.Option) (*DeleteBucketOutput, error) {
493 req, out := c.DeleteBucketRequest(input)
495 req.ApplyOptions(opts...)
496 return out, req.Send()
499 const opDeleteBucketAnalyticsConfiguration = "DeleteBucketAnalyticsConfiguration"
501 // DeleteBucketAnalyticsConfigurationRequest generates a "aws/request.Request" representing the
502 // client's request for the DeleteBucketAnalyticsConfiguration operation. The "output" return
503 // value can be used to capture response data after the request's "Send" method
506 // See DeleteBucketAnalyticsConfiguration for usage and error information.
508 // Creating a request object using this method should be used when you want to inject
509 // custom logic into the request's lifecycle using a custom handler, or if you want to
510 // access properties on the request object before or after sending the request. If
511 // you just want the service response, call the DeleteBucketAnalyticsConfiguration method directly
514 // Note: You must call the "Send" method on the returned request object in order
515 // to execute the request.
517 // // Example sending a request using the DeleteBucketAnalyticsConfigurationRequest method.
518 // req, resp := client.DeleteBucketAnalyticsConfigurationRequest(params)
521 // if err == nil { // resp is now filled
525 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketAnalyticsConfiguration
526 func (c *S3) DeleteBucketAnalyticsConfigurationRequest(input *DeleteBucketAnalyticsConfigurationInput) (req *request.Request, output *DeleteBucketAnalyticsConfigurationOutput) {
527 op := &request.Operation{
528 Name: opDeleteBucketAnalyticsConfiguration,
529 HTTPMethod: "DELETE",
530 HTTPPath: "/{Bucket}?analytics",
534 input = &DeleteBucketAnalyticsConfigurationInput{}
537 output = &DeleteBucketAnalyticsConfigurationOutput{}
538 req = c.newRequest(op, input, output)
539 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
540 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
544 // DeleteBucketAnalyticsConfiguration API operation for Amazon Simple Storage Service.
546 // Deletes an analytics configuration for the bucket (specified by the analytics
547 // configuration ID).
549 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
550 // with awserr.Error's Code and Message methods to get detailed information about
553 // See the AWS API reference guide for Amazon Simple Storage Service's
554 // API operation DeleteBucketAnalyticsConfiguration for usage and error information.
555 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketAnalyticsConfiguration
556 func (c *S3) DeleteBucketAnalyticsConfiguration(input *DeleteBucketAnalyticsConfigurationInput) (*DeleteBucketAnalyticsConfigurationOutput, error) {
557 req, out := c.DeleteBucketAnalyticsConfigurationRequest(input)
558 return out, req.Send()
561 // DeleteBucketAnalyticsConfigurationWithContext is the same as DeleteBucketAnalyticsConfiguration with the addition of
562 // the ability to pass a context and additional request options.
564 // See DeleteBucketAnalyticsConfiguration for details on how to use this API operation.
566 // The context must be non-nil and will be used for request cancellation. If
567 // the context is nil a panic will occur. In the future the SDK may create
568 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
569 // for more information on using Contexts.
570 func (c *S3) DeleteBucketAnalyticsConfigurationWithContext(ctx aws.Context, input *DeleteBucketAnalyticsConfigurationInput, opts ...request.Option) (*DeleteBucketAnalyticsConfigurationOutput, error) {
571 req, out := c.DeleteBucketAnalyticsConfigurationRequest(input)
573 req.ApplyOptions(opts...)
574 return out, req.Send()
577 const opDeleteBucketCors = "DeleteBucketCors"
579 // DeleteBucketCorsRequest generates a "aws/request.Request" representing the
580 // client's request for the DeleteBucketCors operation. The "output" return
581 // value can be used to capture response data after the request's "Send" method
584 // See DeleteBucketCors for usage and error information.
586 // Creating a request object using this method should be used when you want to inject
587 // custom logic into the request's lifecycle using a custom handler, or if you want to
588 // access properties on the request object before or after sending the request. If
589 // you just want the service response, call the DeleteBucketCors method directly
592 // Note: You must call the "Send" method on the returned request object in order
593 // to execute the request.
595 // // Example sending a request using the DeleteBucketCorsRequest method.
596 // req, resp := client.DeleteBucketCorsRequest(params)
599 // if err == nil { // resp is now filled
603 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketCors
604 func (c *S3) DeleteBucketCorsRequest(input *DeleteBucketCorsInput) (req *request.Request, output *DeleteBucketCorsOutput) {
605 op := &request.Operation{
606 Name: opDeleteBucketCors,
607 HTTPMethod: "DELETE",
608 HTTPPath: "/{Bucket}?cors",
612 input = &DeleteBucketCorsInput{}
615 output = &DeleteBucketCorsOutput{}
616 req = c.newRequest(op, input, output)
617 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
618 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
622 // DeleteBucketCors API operation for Amazon Simple Storage Service.
624 // Deletes the cors configuration information set for the bucket.
626 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
627 // with awserr.Error's Code and Message methods to get detailed information about
630 // See the AWS API reference guide for Amazon Simple Storage Service's
631 // API operation DeleteBucketCors for usage and error information.
632 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketCors
633 func (c *S3) DeleteBucketCors(input *DeleteBucketCorsInput) (*DeleteBucketCorsOutput, error) {
634 req, out := c.DeleteBucketCorsRequest(input)
635 return out, req.Send()
638 // DeleteBucketCorsWithContext is the same as DeleteBucketCors with the addition of
639 // the ability to pass a context and additional request options.
641 // See DeleteBucketCors for details on how to use this API operation.
643 // The context must be non-nil and will be used for request cancellation. If
644 // the context is nil a panic will occur. In the future the SDK may create
645 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
646 // for more information on using Contexts.
647 func (c *S3) DeleteBucketCorsWithContext(ctx aws.Context, input *DeleteBucketCorsInput, opts ...request.Option) (*DeleteBucketCorsOutput, error) {
648 req, out := c.DeleteBucketCorsRequest(input)
650 req.ApplyOptions(opts...)
651 return out, req.Send()
654 const opDeleteBucketInventoryConfiguration = "DeleteBucketInventoryConfiguration"
656 // DeleteBucketInventoryConfigurationRequest generates a "aws/request.Request" representing the
657 // client's request for the DeleteBucketInventoryConfiguration operation. The "output" return
658 // value can be used to capture response data after the request's "Send" method
661 // See DeleteBucketInventoryConfiguration for usage and error information.
663 // Creating a request object using this method should be used when you want to inject
664 // custom logic into the request's lifecycle using a custom handler, or if you want to
665 // access properties on the request object before or after sending the request. If
666 // you just want the service response, call the DeleteBucketInventoryConfiguration method directly
669 // Note: You must call the "Send" method on the returned request object in order
670 // to execute the request.
672 // // Example sending a request using the DeleteBucketInventoryConfigurationRequest method.
673 // req, resp := client.DeleteBucketInventoryConfigurationRequest(params)
676 // if err == nil { // resp is now filled
680 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketInventoryConfiguration
681 func (c *S3) DeleteBucketInventoryConfigurationRequest(input *DeleteBucketInventoryConfigurationInput) (req *request.Request, output *DeleteBucketInventoryConfigurationOutput) {
682 op := &request.Operation{
683 Name: opDeleteBucketInventoryConfiguration,
684 HTTPMethod: "DELETE",
685 HTTPPath: "/{Bucket}?inventory",
689 input = &DeleteBucketInventoryConfigurationInput{}
692 output = &DeleteBucketInventoryConfigurationOutput{}
693 req = c.newRequest(op, input, output)
694 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
695 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
699 // DeleteBucketInventoryConfiguration API operation for Amazon Simple Storage Service.
701 // Deletes an inventory configuration (identified by the inventory ID) from
704 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
705 // with awserr.Error's Code and Message methods to get detailed information about
708 // See the AWS API reference guide for Amazon Simple Storage Service's
709 // API operation DeleteBucketInventoryConfiguration for usage and error information.
710 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketInventoryConfiguration
711 func (c *S3) DeleteBucketInventoryConfiguration(input *DeleteBucketInventoryConfigurationInput) (*DeleteBucketInventoryConfigurationOutput, error) {
712 req, out := c.DeleteBucketInventoryConfigurationRequest(input)
713 return out, req.Send()
716 // DeleteBucketInventoryConfigurationWithContext is the same as DeleteBucketInventoryConfiguration with the addition of
717 // the ability to pass a context and additional request options.
719 // See DeleteBucketInventoryConfiguration for details on how to use this API operation.
721 // The context must be non-nil and will be used for request cancellation. If
722 // the context is nil a panic will occur. In the future the SDK may create
723 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
724 // for more information on using Contexts.
725 func (c *S3) DeleteBucketInventoryConfigurationWithContext(ctx aws.Context, input *DeleteBucketInventoryConfigurationInput, opts ...request.Option) (*DeleteBucketInventoryConfigurationOutput, error) {
726 req, out := c.DeleteBucketInventoryConfigurationRequest(input)
728 req.ApplyOptions(opts...)
729 return out, req.Send()
732 const opDeleteBucketLifecycle = "DeleteBucketLifecycle"
734 // DeleteBucketLifecycleRequest generates a "aws/request.Request" representing the
735 // client's request for the DeleteBucketLifecycle operation. The "output" return
736 // value can be used to capture response data after the request's "Send" method
739 // See DeleteBucketLifecycle for usage and error information.
741 // Creating a request object using this method should be used when you want to inject
742 // custom logic into the request's lifecycle using a custom handler, or if you want to
743 // access properties on the request object before or after sending the request. If
744 // you just want the service response, call the DeleteBucketLifecycle method directly
747 // Note: You must call the "Send" method on the returned request object in order
748 // to execute the request.
750 // // Example sending a request using the DeleteBucketLifecycleRequest method.
751 // req, resp := client.DeleteBucketLifecycleRequest(params)
754 // if err == nil { // resp is now filled
758 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketLifecycle
759 func (c *S3) DeleteBucketLifecycleRequest(input *DeleteBucketLifecycleInput) (req *request.Request, output *DeleteBucketLifecycleOutput) {
760 op := &request.Operation{
761 Name: opDeleteBucketLifecycle,
762 HTTPMethod: "DELETE",
763 HTTPPath: "/{Bucket}?lifecycle",
767 input = &DeleteBucketLifecycleInput{}
770 output = &DeleteBucketLifecycleOutput{}
771 req = c.newRequest(op, input, output)
772 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
773 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
777 // DeleteBucketLifecycle API operation for Amazon Simple Storage Service.
779 // Deletes the lifecycle configuration from the bucket.
781 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
782 // with awserr.Error's Code and Message methods to get detailed information about
785 // See the AWS API reference guide for Amazon Simple Storage Service's
786 // API operation DeleteBucketLifecycle for usage and error information.
787 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketLifecycle
788 func (c *S3) DeleteBucketLifecycle(input *DeleteBucketLifecycleInput) (*DeleteBucketLifecycleOutput, error) {
789 req, out := c.DeleteBucketLifecycleRequest(input)
790 return out, req.Send()
793 // DeleteBucketLifecycleWithContext is the same as DeleteBucketLifecycle with the addition of
794 // the ability to pass a context and additional request options.
796 // See DeleteBucketLifecycle for details on how to use this API operation.
798 // The context must be non-nil and will be used for request cancellation. If
799 // the context is nil a panic will occur. In the future the SDK may create
800 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
801 // for more information on using Contexts.
802 func (c *S3) DeleteBucketLifecycleWithContext(ctx aws.Context, input *DeleteBucketLifecycleInput, opts ...request.Option) (*DeleteBucketLifecycleOutput, error) {
803 req, out := c.DeleteBucketLifecycleRequest(input)
805 req.ApplyOptions(opts...)
806 return out, req.Send()
809 const opDeleteBucketMetricsConfiguration = "DeleteBucketMetricsConfiguration"
811 // DeleteBucketMetricsConfigurationRequest generates a "aws/request.Request" representing the
812 // client's request for the DeleteBucketMetricsConfiguration operation. The "output" return
813 // value can be used to capture response data after the request's "Send" method
816 // See DeleteBucketMetricsConfiguration for usage and error information.
818 // Creating a request object using this method should be used when you want to inject
819 // custom logic into the request's lifecycle using a custom handler, or if you want to
820 // access properties on the request object before or after sending the request. If
821 // you just want the service response, call the DeleteBucketMetricsConfiguration method directly
824 // Note: You must call the "Send" method on the returned request object in order
825 // to execute the request.
827 // // Example sending a request using the DeleteBucketMetricsConfigurationRequest method.
828 // req, resp := client.DeleteBucketMetricsConfigurationRequest(params)
831 // if err == nil { // resp is now filled
835 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketMetricsConfiguration
836 func (c *S3) DeleteBucketMetricsConfigurationRequest(input *DeleteBucketMetricsConfigurationInput) (req *request.Request, output *DeleteBucketMetricsConfigurationOutput) {
837 op := &request.Operation{
838 Name: opDeleteBucketMetricsConfiguration,
839 HTTPMethod: "DELETE",
840 HTTPPath: "/{Bucket}?metrics",
844 input = &DeleteBucketMetricsConfigurationInput{}
847 output = &DeleteBucketMetricsConfigurationOutput{}
848 req = c.newRequest(op, input, output)
849 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
850 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
854 // DeleteBucketMetricsConfiguration API operation for Amazon Simple Storage Service.
856 // Deletes a metrics configuration (specified by the metrics configuration ID)
859 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
860 // with awserr.Error's Code and Message methods to get detailed information about
863 // See the AWS API reference guide for Amazon Simple Storage Service's
864 // API operation DeleteBucketMetricsConfiguration for usage and error information.
865 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketMetricsConfiguration
866 func (c *S3) DeleteBucketMetricsConfiguration(input *DeleteBucketMetricsConfigurationInput) (*DeleteBucketMetricsConfigurationOutput, error) {
867 req, out := c.DeleteBucketMetricsConfigurationRequest(input)
868 return out, req.Send()
871 // DeleteBucketMetricsConfigurationWithContext is the same as DeleteBucketMetricsConfiguration with the addition of
872 // the ability to pass a context and additional request options.
874 // See DeleteBucketMetricsConfiguration for details on how to use this API operation.
876 // The context must be non-nil and will be used for request cancellation. If
877 // the context is nil a panic will occur. In the future the SDK may create
878 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
879 // for more information on using Contexts.
880 func (c *S3) DeleteBucketMetricsConfigurationWithContext(ctx aws.Context, input *DeleteBucketMetricsConfigurationInput, opts ...request.Option) (*DeleteBucketMetricsConfigurationOutput, error) {
881 req, out := c.DeleteBucketMetricsConfigurationRequest(input)
883 req.ApplyOptions(opts...)
884 return out, req.Send()
887 const opDeleteBucketPolicy = "DeleteBucketPolicy"
889 // DeleteBucketPolicyRequest generates a "aws/request.Request" representing the
890 // client's request for the DeleteBucketPolicy operation. The "output" return
891 // value can be used to capture response data after the request's "Send" method
894 // See DeleteBucketPolicy for usage and error information.
896 // Creating a request object using this method should be used when you want to inject
897 // custom logic into the request's lifecycle using a custom handler, or if you want to
898 // access properties on the request object before or after sending the request. If
899 // you just want the service response, call the DeleteBucketPolicy method directly
902 // Note: You must call the "Send" method on the returned request object in order
903 // to execute the request.
905 // // Example sending a request using the DeleteBucketPolicyRequest method.
906 // req, resp := client.DeleteBucketPolicyRequest(params)
909 // if err == nil { // resp is now filled
913 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketPolicy
914 func (c *S3) DeleteBucketPolicyRequest(input *DeleteBucketPolicyInput) (req *request.Request, output *DeleteBucketPolicyOutput) {
915 op := &request.Operation{
916 Name: opDeleteBucketPolicy,
917 HTTPMethod: "DELETE",
918 HTTPPath: "/{Bucket}?policy",
922 input = &DeleteBucketPolicyInput{}
925 output = &DeleteBucketPolicyOutput{}
926 req = c.newRequest(op, input, output)
927 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
928 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
932 // DeleteBucketPolicy API operation for Amazon Simple Storage Service.
934 // Deletes the policy from the bucket.
936 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
937 // with awserr.Error's Code and Message methods to get detailed information about
940 // See the AWS API reference guide for Amazon Simple Storage Service's
941 // API operation DeleteBucketPolicy for usage and error information.
942 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketPolicy
943 func (c *S3) DeleteBucketPolicy(input *DeleteBucketPolicyInput) (*DeleteBucketPolicyOutput, error) {
944 req, out := c.DeleteBucketPolicyRequest(input)
945 return out, req.Send()
948 // DeleteBucketPolicyWithContext is the same as DeleteBucketPolicy with the addition of
949 // the ability to pass a context and additional request options.
951 // See DeleteBucketPolicy for details on how to use this API operation.
953 // The context must be non-nil and will be used for request cancellation. If
954 // the context is nil a panic will occur. In the future the SDK may create
955 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
956 // for more information on using Contexts.
957 func (c *S3) DeleteBucketPolicyWithContext(ctx aws.Context, input *DeleteBucketPolicyInput, opts ...request.Option) (*DeleteBucketPolicyOutput, error) {
958 req, out := c.DeleteBucketPolicyRequest(input)
960 req.ApplyOptions(opts...)
961 return out, req.Send()
964 const opDeleteBucketReplication = "DeleteBucketReplication"
966 // DeleteBucketReplicationRequest generates a "aws/request.Request" representing the
967 // client's request for the DeleteBucketReplication operation. The "output" return
968 // value can be used to capture response data after the request's "Send" method
971 // See DeleteBucketReplication for usage and error information.
973 // Creating a request object using this method should be used when you want to inject
974 // custom logic into the request's lifecycle using a custom handler, or if you want to
975 // access properties on the request object before or after sending the request. If
976 // you just want the service response, call the DeleteBucketReplication method directly
979 // Note: You must call the "Send" method on the returned request object in order
980 // to execute the request.
982 // // Example sending a request using the DeleteBucketReplicationRequest method.
983 // req, resp := client.DeleteBucketReplicationRequest(params)
986 // if err == nil { // resp is now filled
990 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketReplication
991 func (c *S3) DeleteBucketReplicationRequest(input *DeleteBucketReplicationInput) (req *request.Request, output *DeleteBucketReplicationOutput) {
992 op := &request.Operation{
993 Name: opDeleteBucketReplication,
994 HTTPMethod: "DELETE",
995 HTTPPath: "/{Bucket}?replication",
999 input = &DeleteBucketReplicationInput{}
1002 output = &DeleteBucketReplicationOutput{}
1003 req = c.newRequest(op, input, output)
1004 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
1005 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
1009 // DeleteBucketReplication API operation for Amazon Simple Storage Service.
1011 // Deletes the replication configuration from the bucket.
1013 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1014 // with awserr.Error's Code and Message methods to get detailed information about
1017 // See the AWS API reference guide for Amazon Simple Storage Service's
1018 // API operation DeleteBucketReplication for usage and error information.
1019 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketReplication
1020 func (c *S3) DeleteBucketReplication(input *DeleteBucketReplicationInput) (*DeleteBucketReplicationOutput, error) {
1021 req, out := c.DeleteBucketReplicationRequest(input)
1022 return out, req.Send()
1025 // DeleteBucketReplicationWithContext is the same as DeleteBucketReplication with the addition of
1026 // the ability to pass a context and additional request options.
1028 // See DeleteBucketReplication for details on how to use this API operation.
1030 // The context must be non-nil and will be used for request cancellation. If
1031 // the context is nil a panic will occur. In the future the SDK may create
1032 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
1033 // for more information on using Contexts.
1034 func (c *S3) DeleteBucketReplicationWithContext(ctx aws.Context, input *DeleteBucketReplicationInput, opts ...request.Option) (*DeleteBucketReplicationOutput, error) {
1035 req, out := c.DeleteBucketReplicationRequest(input)
1037 req.ApplyOptions(opts...)
1038 return out, req.Send()
1041 const opDeleteBucketTagging = "DeleteBucketTagging"
1043 // DeleteBucketTaggingRequest generates a "aws/request.Request" representing the
1044 // client's request for the DeleteBucketTagging operation. The "output" return
1045 // value can be used to capture response data after the request's "Send" method
1048 // See DeleteBucketTagging for usage and error information.
1050 // Creating a request object using this method should be used when you want to inject
1051 // custom logic into the request's lifecycle using a custom handler, or if you want to
1052 // access properties on the request object before or after sending the request. If
1053 // you just want the service response, call the DeleteBucketTagging method directly
1056 // Note: You must call the "Send" method on the returned request object in order
1057 // to execute the request.
1059 // // Example sending a request using the DeleteBucketTaggingRequest method.
1060 // req, resp := client.DeleteBucketTaggingRequest(params)
1062 // err := req.Send()
1063 // if err == nil { // resp is now filled
1064 // fmt.Println(resp)
1067 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketTagging
1068 func (c *S3) DeleteBucketTaggingRequest(input *DeleteBucketTaggingInput) (req *request.Request, output *DeleteBucketTaggingOutput) {
1069 op := &request.Operation{
1070 Name: opDeleteBucketTagging,
1071 HTTPMethod: "DELETE",
1072 HTTPPath: "/{Bucket}?tagging",
1076 input = &DeleteBucketTaggingInput{}
1079 output = &DeleteBucketTaggingOutput{}
1080 req = c.newRequest(op, input, output)
1081 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
1082 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
1086 // DeleteBucketTagging API operation for Amazon Simple Storage Service.
1088 // Deletes the tags from the bucket.
1090 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1091 // with awserr.Error's Code and Message methods to get detailed information about
1094 // See the AWS API reference guide for Amazon Simple Storage Service's
1095 // API operation DeleteBucketTagging for usage and error information.
1096 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketTagging
1097 func (c *S3) DeleteBucketTagging(input *DeleteBucketTaggingInput) (*DeleteBucketTaggingOutput, error) {
1098 req, out := c.DeleteBucketTaggingRequest(input)
1099 return out, req.Send()
1102 // DeleteBucketTaggingWithContext is the same as DeleteBucketTagging with the addition of
1103 // the ability to pass a context and additional request options.
1105 // See DeleteBucketTagging for details on how to use this API operation.
1107 // The context must be non-nil and will be used for request cancellation. If
1108 // the context is nil a panic will occur. In the future the SDK may create
1109 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
1110 // for more information on using Contexts.
1111 func (c *S3) DeleteBucketTaggingWithContext(ctx aws.Context, input *DeleteBucketTaggingInput, opts ...request.Option) (*DeleteBucketTaggingOutput, error) {
1112 req, out := c.DeleteBucketTaggingRequest(input)
1114 req.ApplyOptions(opts...)
1115 return out, req.Send()
1118 const opDeleteBucketWebsite = "DeleteBucketWebsite"
1120 // DeleteBucketWebsiteRequest generates a "aws/request.Request" representing the
1121 // client's request for the DeleteBucketWebsite operation. The "output" return
1122 // value can be used to capture response data after the request's "Send" method
1125 // See DeleteBucketWebsite for usage and error information.
1127 // Creating a request object using this method should be used when you want to inject
1128 // custom logic into the request's lifecycle using a custom handler, or if you want to
1129 // access properties on the request object before or after sending the request. If
1130 // you just want the service response, call the DeleteBucketWebsite method directly
1133 // Note: You must call the "Send" method on the returned request object in order
1134 // to execute the request.
1136 // // Example sending a request using the DeleteBucketWebsiteRequest method.
1137 // req, resp := client.DeleteBucketWebsiteRequest(params)
1139 // err := req.Send()
1140 // if err == nil { // resp is now filled
1141 // fmt.Println(resp)
1144 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketWebsite
1145 func (c *S3) DeleteBucketWebsiteRequest(input *DeleteBucketWebsiteInput) (req *request.Request, output *DeleteBucketWebsiteOutput) {
1146 op := &request.Operation{
1147 Name: opDeleteBucketWebsite,
1148 HTTPMethod: "DELETE",
1149 HTTPPath: "/{Bucket}?website",
1153 input = &DeleteBucketWebsiteInput{}
1156 output = &DeleteBucketWebsiteOutput{}
1157 req = c.newRequest(op, input, output)
1158 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
1159 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
1163 // DeleteBucketWebsite API operation for Amazon Simple Storage Service.
1165 // This operation removes the website configuration from the bucket.
1167 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1168 // with awserr.Error's Code and Message methods to get detailed information about
1171 // See the AWS API reference guide for Amazon Simple Storage Service's
1172 // API operation DeleteBucketWebsite for usage and error information.
1173 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketWebsite
1174 func (c *S3) DeleteBucketWebsite(input *DeleteBucketWebsiteInput) (*DeleteBucketWebsiteOutput, error) {
1175 req, out := c.DeleteBucketWebsiteRequest(input)
1176 return out, req.Send()
1179 // DeleteBucketWebsiteWithContext is the same as DeleteBucketWebsite with the addition of
1180 // the ability to pass a context and additional request options.
1182 // See DeleteBucketWebsite for details on how to use this API operation.
1184 // The context must be non-nil and will be used for request cancellation. If
1185 // the context is nil a panic will occur. In the future the SDK may create
1186 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
1187 // for more information on using Contexts.
1188 func (c *S3) DeleteBucketWebsiteWithContext(ctx aws.Context, input *DeleteBucketWebsiteInput, opts ...request.Option) (*DeleteBucketWebsiteOutput, error) {
1189 req, out := c.DeleteBucketWebsiteRequest(input)
1191 req.ApplyOptions(opts...)
1192 return out, req.Send()
1195 const opDeleteObject = "DeleteObject"
1197 // DeleteObjectRequest generates a "aws/request.Request" representing the
1198 // client's request for the DeleteObject operation. The "output" return
1199 // value can be used to capture response data after the request's "Send" method
1202 // See DeleteObject for usage and error information.
1204 // Creating a request object using this method should be used when you want to inject
1205 // custom logic into the request's lifecycle using a custom handler, or if you want to
1206 // access properties on the request object before or after sending the request. If
1207 // you just want the service response, call the DeleteObject method directly
1210 // Note: You must call the "Send" method on the returned request object in order
1211 // to execute the request.
1213 // // Example sending a request using the DeleteObjectRequest method.
1214 // req, resp := client.DeleteObjectRequest(params)
1216 // err := req.Send()
1217 // if err == nil { // resp is now filled
1218 // fmt.Println(resp)
1221 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObject
1222 func (c *S3) DeleteObjectRequest(input *DeleteObjectInput) (req *request.Request, output *DeleteObjectOutput) {
1223 op := &request.Operation{
1224 Name: opDeleteObject,
1225 HTTPMethod: "DELETE",
1226 HTTPPath: "/{Bucket}/{Key+}",
1230 input = &DeleteObjectInput{}
1233 output = &DeleteObjectOutput{}
1234 req = c.newRequest(op, input, output)
1238 // DeleteObject API operation for Amazon Simple Storage Service.
1240 // Removes the null version (if there is one) of an object and inserts a delete
1241 // marker, which becomes the latest version of the object. If there isn't a
1242 // null version, Amazon S3 does not remove any objects.
1244 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1245 // with awserr.Error's Code and Message methods to get detailed information about
1248 // See the AWS API reference guide for Amazon Simple Storage Service's
1249 // API operation DeleteObject for usage and error information.
1250 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObject
1251 func (c *S3) DeleteObject(input *DeleteObjectInput) (*DeleteObjectOutput, error) {
1252 req, out := c.DeleteObjectRequest(input)
1253 return out, req.Send()
1256 // DeleteObjectWithContext is the same as DeleteObject with the addition of
1257 // the ability to pass a context and additional request options.
1259 // See DeleteObject for details on how to use this API operation.
1261 // The context must be non-nil and will be used for request cancellation. If
1262 // the context is nil a panic will occur. In the future the SDK may create
1263 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
1264 // for more information on using Contexts.
1265 func (c *S3) DeleteObjectWithContext(ctx aws.Context, input *DeleteObjectInput, opts ...request.Option) (*DeleteObjectOutput, error) {
1266 req, out := c.DeleteObjectRequest(input)
1268 req.ApplyOptions(opts...)
1269 return out, req.Send()
1272 const opDeleteObjectTagging = "DeleteObjectTagging"
1274 // DeleteObjectTaggingRequest generates a "aws/request.Request" representing the
1275 // client's request for the DeleteObjectTagging operation. The "output" return
1276 // value can be used to capture response data after the request's "Send" method
1279 // See DeleteObjectTagging for usage and error information.
1281 // Creating a request object using this method should be used when you want to inject
1282 // custom logic into the request's lifecycle using a custom handler, or if you want to
1283 // access properties on the request object before or after sending the request. If
1284 // you just want the service response, call the DeleteObjectTagging method directly
1287 // Note: You must call the "Send" method on the returned request object in order
1288 // to execute the request.
1290 // // Example sending a request using the DeleteObjectTaggingRequest method.
1291 // req, resp := client.DeleteObjectTaggingRequest(params)
1293 // err := req.Send()
1294 // if err == nil { // resp is now filled
1295 // fmt.Println(resp)
1298 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectTagging
1299 func (c *S3) DeleteObjectTaggingRequest(input *DeleteObjectTaggingInput) (req *request.Request, output *DeleteObjectTaggingOutput) {
1300 op := &request.Operation{
1301 Name: opDeleteObjectTagging,
1302 HTTPMethod: "DELETE",
1303 HTTPPath: "/{Bucket}/{Key+}?tagging",
1307 input = &DeleteObjectTaggingInput{}
1310 output = &DeleteObjectTaggingOutput{}
1311 req = c.newRequest(op, input, output)
1315 // DeleteObjectTagging API operation for Amazon Simple Storage Service.
1317 // Removes the tag-set from an existing object.
1319 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1320 // with awserr.Error's Code and Message methods to get detailed information about
1323 // See the AWS API reference guide for Amazon Simple Storage Service's
1324 // API operation DeleteObjectTagging for usage and error information.
1325 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectTagging
1326 func (c *S3) DeleteObjectTagging(input *DeleteObjectTaggingInput) (*DeleteObjectTaggingOutput, error) {
1327 req, out := c.DeleteObjectTaggingRequest(input)
1328 return out, req.Send()
1331 // DeleteObjectTaggingWithContext is the same as DeleteObjectTagging with the addition of
1332 // the ability to pass a context and additional request options.
1334 // See DeleteObjectTagging for details on how to use this API operation.
1336 // The context must be non-nil and will be used for request cancellation. If
1337 // the context is nil a panic will occur. In the future the SDK may create
1338 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
1339 // for more information on using Contexts.
1340 func (c *S3) DeleteObjectTaggingWithContext(ctx aws.Context, input *DeleteObjectTaggingInput, opts ...request.Option) (*DeleteObjectTaggingOutput, error) {
1341 req, out := c.DeleteObjectTaggingRequest(input)
1343 req.ApplyOptions(opts...)
1344 return out, req.Send()
1347 const opDeleteObjects = "DeleteObjects"
1349 // DeleteObjectsRequest generates a "aws/request.Request" representing the
1350 // client's request for the DeleteObjects operation. The "output" return
1351 // value can be used to capture response data after the request's "Send" method
1354 // See DeleteObjects for usage and error information.
1356 // Creating a request object using this method should be used when you want to inject
1357 // custom logic into the request's lifecycle using a custom handler, or if you want to
1358 // access properties on the request object before or after sending the request. If
1359 // you just want the service response, call the DeleteObjects method directly
1362 // Note: You must call the "Send" method on the returned request object in order
1363 // to execute the request.
1365 // // Example sending a request using the DeleteObjectsRequest method.
1366 // req, resp := client.DeleteObjectsRequest(params)
1368 // err := req.Send()
1369 // if err == nil { // resp is now filled
1370 // fmt.Println(resp)
1373 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjects
1374 func (c *S3) DeleteObjectsRequest(input *DeleteObjectsInput) (req *request.Request, output *DeleteObjectsOutput) {
1375 op := &request.Operation{
1376 Name: opDeleteObjects,
1378 HTTPPath: "/{Bucket}?delete",
1382 input = &DeleteObjectsInput{}
1385 output = &DeleteObjectsOutput{}
1386 req = c.newRequest(op, input, output)
1390 // DeleteObjects API operation for Amazon Simple Storage Service.
1392 // This operation enables you to delete multiple objects from a bucket using
1393 // a single HTTP request. You may specify up to 1000 keys.
1395 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1396 // with awserr.Error's Code and Message methods to get detailed information about
1399 // See the AWS API reference guide for Amazon Simple Storage Service's
1400 // API operation DeleteObjects for usage and error information.
1401 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjects
1402 func (c *S3) DeleteObjects(input *DeleteObjectsInput) (*DeleteObjectsOutput, error) {
1403 req, out := c.DeleteObjectsRequest(input)
1404 return out, req.Send()
1407 // DeleteObjectsWithContext is the same as DeleteObjects with the addition of
1408 // the ability to pass a context and additional request options.
1410 // See DeleteObjects for details on how to use this API operation.
1412 // The context must be non-nil and will be used for request cancellation. If
1413 // the context is nil a panic will occur. In the future the SDK may create
1414 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
1415 // for more information on using Contexts.
1416 func (c *S3) DeleteObjectsWithContext(ctx aws.Context, input *DeleteObjectsInput, opts ...request.Option) (*DeleteObjectsOutput, error) {
1417 req, out := c.DeleteObjectsRequest(input)
1419 req.ApplyOptions(opts...)
1420 return out, req.Send()
1423 const opGetBucketAccelerateConfiguration = "GetBucketAccelerateConfiguration"
1425 // GetBucketAccelerateConfigurationRequest generates a "aws/request.Request" representing the
1426 // client's request for the GetBucketAccelerateConfiguration operation. The "output" return
1427 // value can be used to capture response data after the request's "Send" method
1430 // See GetBucketAccelerateConfiguration for usage and error information.
1432 // Creating a request object using this method should be used when you want to inject
1433 // custom logic into the request's lifecycle using a custom handler, or if you want to
1434 // access properties on the request object before or after sending the request. If
1435 // you just want the service response, call the GetBucketAccelerateConfiguration method directly
1438 // Note: You must call the "Send" method on the returned request object in order
1439 // to execute the request.
1441 // // Example sending a request using the GetBucketAccelerateConfigurationRequest method.
1442 // req, resp := client.GetBucketAccelerateConfigurationRequest(params)
1444 // err := req.Send()
1445 // if err == nil { // resp is now filled
1446 // fmt.Println(resp)
1449 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAccelerateConfiguration
1450 func (c *S3) GetBucketAccelerateConfigurationRequest(input *GetBucketAccelerateConfigurationInput) (req *request.Request, output *GetBucketAccelerateConfigurationOutput) {
1451 op := &request.Operation{
1452 Name: opGetBucketAccelerateConfiguration,
1454 HTTPPath: "/{Bucket}?accelerate",
1458 input = &GetBucketAccelerateConfigurationInput{}
1461 output = &GetBucketAccelerateConfigurationOutput{}
1462 req = c.newRequest(op, input, output)
1466 // GetBucketAccelerateConfiguration API operation for Amazon Simple Storage Service.
1468 // Returns the accelerate configuration of a bucket.
1470 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1471 // with awserr.Error's Code and Message methods to get detailed information about
1474 // See the AWS API reference guide for Amazon Simple Storage Service's
1475 // API operation GetBucketAccelerateConfiguration for usage and error information.
1476 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAccelerateConfiguration
1477 func (c *S3) GetBucketAccelerateConfiguration(input *GetBucketAccelerateConfigurationInput) (*GetBucketAccelerateConfigurationOutput, error) {
1478 req, out := c.GetBucketAccelerateConfigurationRequest(input)
1479 return out, req.Send()
1482 // GetBucketAccelerateConfigurationWithContext is the same as GetBucketAccelerateConfiguration with the addition of
1483 // the ability to pass a context and additional request options.
1485 // See GetBucketAccelerateConfiguration for details on how to use this API operation.
1487 // The context must be non-nil and will be used for request cancellation. If
1488 // the context is nil a panic will occur. In the future the SDK may create
1489 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
1490 // for more information on using Contexts.
1491 func (c *S3) GetBucketAccelerateConfigurationWithContext(ctx aws.Context, input *GetBucketAccelerateConfigurationInput, opts ...request.Option) (*GetBucketAccelerateConfigurationOutput, error) {
1492 req, out := c.GetBucketAccelerateConfigurationRequest(input)
1494 req.ApplyOptions(opts...)
1495 return out, req.Send()
1498 const opGetBucketAcl = "GetBucketAcl"
1500 // GetBucketAclRequest generates a "aws/request.Request" representing the
1501 // client's request for the GetBucketAcl operation. The "output" return
1502 // value can be used to capture response data after the request's "Send" method
1505 // See GetBucketAcl for usage and error information.
1507 // Creating a request object using this method should be used when you want to inject
1508 // custom logic into the request's lifecycle using a custom handler, or if you want to
1509 // access properties on the request object before or after sending the request. If
1510 // you just want the service response, call the GetBucketAcl method directly
1513 // Note: You must call the "Send" method on the returned request object in order
1514 // to execute the request.
1516 // // Example sending a request using the GetBucketAclRequest method.
1517 // req, resp := client.GetBucketAclRequest(params)
1519 // err := req.Send()
1520 // if err == nil { // resp is now filled
1521 // fmt.Println(resp)
1524 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAcl
1525 func (c *S3) GetBucketAclRequest(input *GetBucketAclInput) (req *request.Request, output *GetBucketAclOutput) {
1526 op := &request.Operation{
1527 Name: opGetBucketAcl,
1529 HTTPPath: "/{Bucket}?acl",
1533 input = &GetBucketAclInput{}
1536 output = &GetBucketAclOutput{}
1537 req = c.newRequest(op, input, output)
1541 // GetBucketAcl API operation for Amazon Simple Storage Service.
1543 // Gets the access control policy for the bucket.
1545 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1546 // with awserr.Error's Code and Message methods to get detailed information about
1549 // See the AWS API reference guide for Amazon Simple Storage Service's
1550 // API operation GetBucketAcl for usage and error information.
1551 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAcl
1552 func (c *S3) GetBucketAcl(input *GetBucketAclInput) (*GetBucketAclOutput, error) {
1553 req, out := c.GetBucketAclRequest(input)
1554 return out, req.Send()
1557 // GetBucketAclWithContext is the same as GetBucketAcl with the addition of
1558 // the ability to pass a context and additional request options.
1560 // See GetBucketAcl for details on how to use this API operation.
1562 // The context must be non-nil and will be used for request cancellation. If
1563 // the context is nil a panic will occur. In the future the SDK may create
1564 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
1565 // for more information on using Contexts.
1566 func (c *S3) GetBucketAclWithContext(ctx aws.Context, input *GetBucketAclInput, opts ...request.Option) (*GetBucketAclOutput, error) {
1567 req, out := c.GetBucketAclRequest(input)
1569 req.ApplyOptions(opts...)
1570 return out, req.Send()
1573 const opGetBucketAnalyticsConfiguration = "GetBucketAnalyticsConfiguration"
1575 // GetBucketAnalyticsConfigurationRequest generates a "aws/request.Request" representing the
1576 // client's request for the GetBucketAnalyticsConfiguration operation. The "output" return
1577 // value can be used to capture response data after the request's "Send" method
1580 // See GetBucketAnalyticsConfiguration for usage and error information.
1582 // Creating a request object using this method should be used when you want to inject
1583 // custom logic into the request's lifecycle using a custom handler, or if you want to
1584 // access properties on the request object before or after sending the request. If
1585 // you just want the service response, call the GetBucketAnalyticsConfiguration method directly
1588 // Note: You must call the "Send" method on the returned request object in order
1589 // to execute the request.
1591 // // Example sending a request using the GetBucketAnalyticsConfigurationRequest method.
1592 // req, resp := client.GetBucketAnalyticsConfigurationRequest(params)
1594 // err := req.Send()
1595 // if err == nil { // resp is now filled
1596 // fmt.Println(resp)
1599 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAnalyticsConfiguration
1600 func (c *S3) GetBucketAnalyticsConfigurationRequest(input *GetBucketAnalyticsConfigurationInput) (req *request.Request, output *GetBucketAnalyticsConfigurationOutput) {
1601 op := &request.Operation{
1602 Name: opGetBucketAnalyticsConfiguration,
1604 HTTPPath: "/{Bucket}?analytics",
1608 input = &GetBucketAnalyticsConfigurationInput{}
1611 output = &GetBucketAnalyticsConfigurationOutput{}
1612 req = c.newRequest(op, input, output)
1616 // GetBucketAnalyticsConfiguration API operation for Amazon Simple Storage Service.
1618 // Gets an analytics configuration for the bucket (specified by the analytics
1619 // configuration ID).
1621 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1622 // with awserr.Error's Code and Message methods to get detailed information about
1625 // See the AWS API reference guide for Amazon Simple Storage Service's
1626 // API operation GetBucketAnalyticsConfiguration for usage and error information.
1627 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAnalyticsConfiguration
1628 func (c *S3) GetBucketAnalyticsConfiguration(input *GetBucketAnalyticsConfigurationInput) (*GetBucketAnalyticsConfigurationOutput, error) {
1629 req, out := c.GetBucketAnalyticsConfigurationRequest(input)
1630 return out, req.Send()
1633 // GetBucketAnalyticsConfigurationWithContext is the same as GetBucketAnalyticsConfiguration with the addition of
1634 // the ability to pass a context and additional request options.
1636 // See GetBucketAnalyticsConfiguration for details on how to use this API operation.
1638 // The context must be non-nil and will be used for request cancellation. If
1639 // the context is nil a panic will occur. In the future the SDK may create
1640 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
1641 // for more information on using Contexts.
1642 func (c *S3) GetBucketAnalyticsConfigurationWithContext(ctx aws.Context, input *GetBucketAnalyticsConfigurationInput, opts ...request.Option) (*GetBucketAnalyticsConfigurationOutput, error) {
1643 req, out := c.GetBucketAnalyticsConfigurationRequest(input)
1645 req.ApplyOptions(opts...)
1646 return out, req.Send()
1649 const opGetBucketCors = "GetBucketCors"
1651 // GetBucketCorsRequest generates a "aws/request.Request" representing the
1652 // client's request for the GetBucketCors operation. The "output" return
1653 // value can be used to capture response data after the request's "Send" method
1656 // See GetBucketCors for usage and error information.
1658 // Creating a request object using this method should be used when you want to inject
1659 // custom logic into the request's lifecycle using a custom handler, or if you want to
1660 // access properties on the request object before or after sending the request. If
1661 // you just want the service response, call the GetBucketCors method directly
1664 // Note: You must call the "Send" method on the returned request object in order
1665 // to execute the request.
1667 // // Example sending a request using the GetBucketCorsRequest method.
1668 // req, resp := client.GetBucketCorsRequest(params)
1670 // err := req.Send()
1671 // if err == nil { // resp is now filled
1672 // fmt.Println(resp)
1675 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketCors
1676 func (c *S3) GetBucketCorsRequest(input *GetBucketCorsInput) (req *request.Request, output *GetBucketCorsOutput) {
1677 op := &request.Operation{
1678 Name: opGetBucketCors,
1680 HTTPPath: "/{Bucket}?cors",
1684 input = &GetBucketCorsInput{}
1687 output = &GetBucketCorsOutput{}
1688 req = c.newRequest(op, input, output)
1692 // GetBucketCors API operation for Amazon Simple Storage Service.
1694 // Returns the cors configuration for the bucket.
1696 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1697 // with awserr.Error's Code and Message methods to get detailed information about
1700 // See the AWS API reference guide for Amazon Simple Storage Service's
1701 // API operation GetBucketCors for usage and error information.
1702 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketCors
1703 func (c *S3) GetBucketCors(input *GetBucketCorsInput) (*GetBucketCorsOutput, error) {
1704 req, out := c.GetBucketCorsRequest(input)
1705 return out, req.Send()
1708 // GetBucketCorsWithContext is the same as GetBucketCors with the addition of
1709 // the ability to pass a context and additional request options.
1711 // See GetBucketCors for details on how to use this API operation.
1713 // The context must be non-nil and will be used for request cancellation. If
1714 // the context is nil a panic will occur. In the future the SDK may create
1715 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
1716 // for more information on using Contexts.
1717 func (c *S3) GetBucketCorsWithContext(ctx aws.Context, input *GetBucketCorsInput, opts ...request.Option) (*GetBucketCorsOutput, error) {
1718 req, out := c.GetBucketCorsRequest(input)
1720 req.ApplyOptions(opts...)
1721 return out, req.Send()
1724 const opGetBucketInventoryConfiguration = "GetBucketInventoryConfiguration"
1726 // GetBucketInventoryConfigurationRequest generates a "aws/request.Request" representing the
1727 // client's request for the GetBucketInventoryConfiguration operation. The "output" return
1728 // value can be used to capture response data after the request's "Send" method
1731 // See GetBucketInventoryConfiguration for usage and error information.
1733 // Creating a request object using this method should be used when you want to inject
1734 // custom logic into the request's lifecycle using a custom handler, or if you want to
1735 // access properties on the request object before or after sending the request. If
1736 // you just want the service response, call the GetBucketInventoryConfiguration method directly
1739 // Note: You must call the "Send" method on the returned request object in order
1740 // to execute the request.
1742 // // Example sending a request using the GetBucketInventoryConfigurationRequest method.
1743 // req, resp := client.GetBucketInventoryConfigurationRequest(params)
1745 // err := req.Send()
1746 // if err == nil { // resp is now filled
1747 // fmt.Println(resp)
1750 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketInventoryConfiguration
1751 func (c *S3) GetBucketInventoryConfigurationRequest(input *GetBucketInventoryConfigurationInput) (req *request.Request, output *GetBucketInventoryConfigurationOutput) {
1752 op := &request.Operation{
1753 Name: opGetBucketInventoryConfiguration,
1755 HTTPPath: "/{Bucket}?inventory",
1759 input = &GetBucketInventoryConfigurationInput{}
1762 output = &GetBucketInventoryConfigurationOutput{}
1763 req = c.newRequest(op, input, output)
1767 // GetBucketInventoryConfiguration API operation for Amazon Simple Storage Service.
1769 // Returns an inventory configuration (identified by the inventory ID) from
1772 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1773 // with awserr.Error's Code and Message methods to get detailed information about
1776 // See the AWS API reference guide for Amazon Simple Storage Service's
1777 // API operation GetBucketInventoryConfiguration for usage and error information.
1778 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketInventoryConfiguration
1779 func (c *S3) GetBucketInventoryConfiguration(input *GetBucketInventoryConfigurationInput) (*GetBucketInventoryConfigurationOutput, error) {
1780 req, out := c.GetBucketInventoryConfigurationRequest(input)
1781 return out, req.Send()
1784 // GetBucketInventoryConfigurationWithContext is the same as GetBucketInventoryConfiguration with the addition of
1785 // the ability to pass a context and additional request options.
1787 // See GetBucketInventoryConfiguration for details on how to use this API operation.
1789 // The context must be non-nil and will be used for request cancellation. If
1790 // the context is nil a panic will occur. In the future the SDK may create
1791 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
1792 // for more information on using Contexts.
1793 func (c *S3) GetBucketInventoryConfigurationWithContext(ctx aws.Context, input *GetBucketInventoryConfigurationInput, opts ...request.Option) (*GetBucketInventoryConfigurationOutput, error) {
1794 req, out := c.GetBucketInventoryConfigurationRequest(input)
1796 req.ApplyOptions(opts...)
1797 return out, req.Send()
1800 const opGetBucketLifecycle = "GetBucketLifecycle"
1802 // GetBucketLifecycleRequest generates a "aws/request.Request" representing the
1803 // client's request for the GetBucketLifecycle operation. The "output" return
1804 // value can be used to capture response data after the request's "Send" method
1807 // See GetBucketLifecycle for usage and error information.
1809 // Creating a request object using this method should be used when you want to inject
1810 // custom logic into the request's lifecycle using a custom handler, or if you want to
1811 // access properties on the request object before or after sending the request. If
1812 // you just want the service response, call the GetBucketLifecycle method directly
1815 // Note: You must call the "Send" method on the returned request object in order
1816 // to execute the request.
1818 // // Example sending a request using the GetBucketLifecycleRequest method.
1819 // req, resp := client.GetBucketLifecycleRequest(params)
1821 // err := req.Send()
1822 // if err == nil { // resp is now filled
1823 // fmt.Println(resp)
1826 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycle
1827 func (c *S3) GetBucketLifecycleRequest(input *GetBucketLifecycleInput) (req *request.Request, output *GetBucketLifecycleOutput) {
1828 if c.Client.Config.Logger != nil {
1829 c.Client.Config.Logger.Log("This operation, GetBucketLifecycle, has been deprecated")
1831 op := &request.Operation{
1832 Name: opGetBucketLifecycle,
1834 HTTPPath: "/{Bucket}?lifecycle",
1838 input = &GetBucketLifecycleInput{}
1841 output = &GetBucketLifecycleOutput{}
1842 req = c.newRequest(op, input, output)
1846 // GetBucketLifecycle API operation for Amazon Simple Storage Service.
1848 // Deprecated, see the GetBucketLifecycleConfiguration operation.
1850 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1851 // with awserr.Error's Code and Message methods to get detailed information about
1854 // See the AWS API reference guide for Amazon Simple Storage Service's
1855 // API operation GetBucketLifecycle for usage and error information.
1856 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycle
1857 func (c *S3) GetBucketLifecycle(input *GetBucketLifecycleInput) (*GetBucketLifecycleOutput, error) {
1858 req, out := c.GetBucketLifecycleRequest(input)
1859 return out, req.Send()
1862 // GetBucketLifecycleWithContext is the same as GetBucketLifecycle with the addition of
1863 // the ability to pass a context and additional request options.
1865 // See GetBucketLifecycle for details on how to use this API operation.
1867 // The context must be non-nil and will be used for request cancellation. If
1868 // the context is nil a panic will occur. In the future the SDK may create
1869 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
1870 // for more information on using Contexts.
1871 func (c *S3) GetBucketLifecycleWithContext(ctx aws.Context, input *GetBucketLifecycleInput, opts ...request.Option) (*GetBucketLifecycleOutput, error) {
1872 req, out := c.GetBucketLifecycleRequest(input)
1874 req.ApplyOptions(opts...)
1875 return out, req.Send()
1878 const opGetBucketLifecycleConfiguration = "GetBucketLifecycleConfiguration"
1880 // GetBucketLifecycleConfigurationRequest generates a "aws/request.Request" representing the
1881 // client's request for the GetBucketLifecycleConfiguration operation. The "output" return
1882 // value can be used to capture response data after the request's "Send" method
1885 // See GetBucketLifecycleConfiguration for usage and error information.
1887 // Creating a request object using this method should be used when you want to inject
1888 // custom logic into the request's lifecycle using a custom handler, or if you want to
1889 // access properties on the request object before or after sending the request. If
1890 // you just want the service response, call the GetBucketLifecycleConfiguration method directly
1893 // Note: You must call the "Send" method on the returned request object in order
1894 // to execute the request.
1896 // // Example sending a request using the GetBucketLifecycleConfigurationRequest method.
1897 // req, resp := client.GetBucketLifecycleConfigurationRequest(params)
1899 // err := req.Send()
1900 // if err == nil { // resp is now filled
1901 // fmt.Println(resp)
1904 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleConfiguration
1905 func (c *S3) GetBucketLifecycleConfigurationRequest(input *GetBucketLifecycleConfigurationInput) (req *request.Request, output *GetBucketLifecycleConfigurationOutput) {
1906 op := &request.Operation{
1907 Name: opGetBucketLifecycleConfiguration,
1909 HTTPPath: "/{Bucket}?lifecycle",
1913 input = &GetBucketLifecycleConfigurationInput{}
1916 output = &GetBucketLifecycleConfigurationOutput{}
1917 req = c.newRequest(op, input, output)
1921 // GetBucketLifecycleConfiguration API operation for Amazon Simple Storage Service.
1923 // Returns the lifecycle configuration information set on the bucket.
1925 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1926 // with awserr.Error's Code and Message methods to get detailed information about
1929 // See the AWS API reference guide for Amazon Simple Storage Service's
1930 // API operation GetBucketLifecycleConfiguration for usage and error information.
1931 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleConfiguration
1932 func (c *S3) GetBucketLifecycleConfiguration(input *GetBucketLifecycleConfigurationInput) (*GetBucketLifecycleConfigurationOutput, error) {
1933 req, out := c.GetBucketLifecycleConfigurationRequest(input)
1934 return out, req.Send()
1937 // GetBucketLifecycleConfigurationWithContext is the same as GetBucketLifecycleConfiguration with the addition of
1938 // the ability to pass a context and additional request options.
1940 // See GetBucketLifecycleConfiguration for details on how to use this API operation.
1942 // The context must be non-nil and will be used for request cancellation. If
1943 // the context is nil a panic will occur. In the future the SDK may create
1944 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
1945 // for more information on using Contexts.
1946 func (c *S3) GetBucketLifecycleConfigurationWithContext(ctx aws.Context, input *GetBucketLifecycleConfigurationInput, opts ...request.Option) (*GetBucketLifecycleConfigurationOutput, error) {
1947 req, out := c.GetBucketLifecycleConfigurationRequest(input)
1949 req.ApplyOptions(opts...)
1950 return out, req.Send()
1953 const opGetBucketLocation = "GetBucketLocation"
1955 // GetBucketLocationRequest generates a "aws/request.Request" representing the
1956 // client's request for the GetBucketLocation operation. The "output" return
1957 // value can be used to capture response data after the request's "Send" method
1960 // See GetBucketLocation for usage and error information.
1962 // Creating a request object using this method should be used when you want to inject
1963 // custom logic into the request's lifecycle using a custom handler, or if you want to
1964 // access properties on the request object before or after sending the request. If
1965 // you just want the service response, call the GetBucketLocation method directly
1968 // Note: You must call the "Send" method on the returned request object in order
1969 // to execute the request.
1971 // // Example sending a request using the GetBucketLocationRequest method.
1972 // req, resp := client.GetBucketLocationRequest(params)
1974 // err := req.Send()
1975 // if err == nil { // resp is now filled
1976 // fmt.Println(resp)
1979 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLocation
1980 func (c *S3) GetBucketLocationRequest(input *GetBucketLocationInput) (req *request.Request, output *GetBucketLocationOutput) {
1981 op := &request.Operation{
1982 Name: opGetBucketLocation,
1984 HTTPPath: "/{Bucket}?location",
1988 input = &GetBucketLocationInput{}
1991 output = &GetBucketLocationOutput{}
1992 req = c.newRequest(op, input, output)
1996 // GetBucketLocation API operation for Amazon Simple Storage Service.
1998 // Returns the region the bucket resides in.
2000 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2001 // with awserr.Error's Code and Message methods to get detailed information about
2004 // See the AWS API reference guide for Amazon Simple Storage Service's
2005 // API operation GetBucketLocation for usage and error information.
2006 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLocation
2007 func (c *S3) GetBucketLocation(input *GetBucketLocationInput) (*GetBucketLocationOutput, error) {
2008 req, out := c.GetBucketLocationRequest(input)
2009 return out, req.Send()
2012 // GetBucketLocationWithContext is the same as GetBucketLocation with the addition of
2013 // the ability to pass a context and additional request options.
2015 // See GetBucketLocation for details on how to use this API operation.
2017 // The context must be non-nil and will be used for request cancellation. If
2018 // the context is nil a panic will occur. In the future the SDK may create
2019 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
2020 // for more information on using Contexts.
2021 func (c *S3) GetBucketLocationWithContext(ctx aws.Context, input *GetBucketLocationInput, opts ...request.Option) (*GetBucketLocationOutput, error) {
2022 req, out := c.GetBucketLocationRequest(input)
2024 req.ApplyOptions(opts...)
2025 return out, req.Send()
2028 const opGetBucketLogging = "GetBucketLogging"
2030 // GetBucketLoggingRequest generates a "aws/request.Request" representing the
2031 // client's request for the GetBucketLogging operation. The "output" return
2032 // value can be used to capture response data after the request's "Send" method
2035 // See GetBucketLogging for usage and error information.
2037 // Creating a request object using this method should be used when you want to inject
2038 // custom logic into the request's lifecycle using a custom handler, or if you want to
2039 // access properties on the request object before or after sending the request. If
2040 // you just want the service response, call the GetBucketLogging method directly
2043 // Note: You must call the "Send" method on the returned request object in order
2044 // to execute the request.
2046 // // Example sending a request using the GetBucketLoggingRequest method.
2047 // req, resp := client.GetBucketLoggingRequest(params)
2049 // err := req.Send()
2050 // if err == nil { // resp is now filled
2051 // fmt.Println(resp)
2054 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLogging
2055 func (c *S3) GetBucketLoggingRequest(input *GetBucketLoggingInput) (req *request.Request, output *GetBucketLoggingOutput) {
2056 op := &request.Operation{
2057 Name: opGetBucketLogging,
2059 HTTPPath: "/{Bucket}?logging",
2063 input = &GetBucketLoggingInput{}
2066 output = &GetBucketLoggingOutput{}
2067 req = c.newRequest(op, input, output)
2071 // GetBucketLogging API operation for Amazon Simple Storage Service.
2073 // Returns the logging status of a bucket and the permissions users have to
2074 // view and modify that status. To use GET, you must be the bucket owner.
2076 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2077 // with awserr.Error's Code and Message methods to get detailed information about
2080 // See the AWS API reference guide for Amazon Simple Storage Service's
2081 // API operation GetBucketLogging for usage and error information.
2082 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLogging
2083 func (c *S3) GetBucketLogging(input *GetBucketLoggingInput) (*GetBucketLoggingOutput, error) {
2084 req, out := c.GetBucketLoggingRequest(input)
2085 return out, req.Send()
2088 // GetBucketLoggingWithContext is the same as GetBucketLogging with the addition of
2089 // the ability to pass a context and additional request options.
2091 // See GetBucketLogging for details on how to use this API operation.
2093 // The context must be non-nil and will be used for request cancellation. If
2094 // the context is nil a panic will occur. In the future the SDK may create
2095 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
2096 // for more information on using Contexts.
2097 func (c *S3) GetBucketLoggingWithContext(ctx aws.Context, input *GetBucketLoggingInput, opts ...request.Option) (*GetBucketLoggingOutput, error) {
2098 req, out := c.GetBucketLoggingRequest(input)
2100 req.ApplyOptions(opts...)
2101 return out, req.Send()
2104 const opGetBucketMetricsConfiguration = "GetBucketMetricsConfiguration"
2106 // GetBucketMetricsConfigurationRequest generates a "aws/request.Request" representing the
2107 // client's request for the GetBucketMetricsConfiguration operation. The "output" return
2108 // value can be used to capture response data after the request's "Send" method
2111 // See GetBucketMetricsConfiguration for usage and error information.
2113 // Creating a request object using this method should be used when you want to inject
2114 // custom logic into the request's lifecycle using a custom handler, or if you want to
2115 // access properties on the request object before or after sending the request. If
2116 // you just want the service response, call the GetBucketMetricsConfiguration method directly
2119 // Note: You must call the "Send" method on the returned request object in order
2120 // to execute the request.
2122 // // Example sending a request using the GetBucketMetricsConfigurationRequest method.
2123 // req, resp := client.GetBucketMetricsConfigurationRequest(params)
2125 // err := req.Send()
2126 // if err == nil { // resp is now filled
2127 // fmt.Println(resp)
2130 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketMetricsConfiguration
2131 func (c *S3) GetBucketMetricsConfigurationRequest(input *GetBucketMetricsConfigurationInput) (req *request.Request, output *GetBucketMetricsConfigurationOutput) {
2132 op := &request.Operation{
2133 Name: opGetBucketMetricsConfiguration,
2135 HTTPPath: "/{Bucket}?metrics",
2139 input = &GetBucketMetricsConfigurationInput{}
2142 output = &GetBucketMetricsConfigurationOutput{}
2143 req = c.newRequest(op, input, output)
2147 // GetBucketMetricsConfiguration API operation for Amazon Simple Storage Service.
2149 // Gets a metrics configuration (specified by the metrics configuration ID)
2152 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2153 // with awserr.Error's Code and Message methods to get detailed information about
2156 // See the AWS API reference guide for Amazon Simple Storage Service's
2157 // API operation GetBucketMetricsConfiguration for usage and error information.
2158 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketMetricsConfiguration
2159 func (c *S3) GetBucketMetricsConfiguration(input *GetBucketMetricsConfigurationInput) (*GetBucketMetricsConfigurationOutput, error) {
2160 req, out := c.GetBucketMetricsConfigurationRequest(input)
2161 return out, req.Send()
2164 // GetBucketMetricsConfigurationWithContext is the same as GetBucketMetricsConfiguration with the addition of
2165 // the ability to pass a context and additional request options.
2167 // See GetBucketMetricsConfiguration for details on how to use this API operation.
2169 // The context must be non-nil and will be used for request cancellation. If
2170 // the context is nil a panic will occur. In the future the SDK may create
2171 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
2172 // for more information on using Contexts.
2173 func (c *S3) GetBucketMetricsConfigurationWithContext(ctx aws.Context, input *GetBucketMetricsConfigurationInput, opts ...request.Option) (*GetBucketMetricsConfigurationOutput, error) {
2174 req, out := c.GetBucketMetricsConfigurationRequest(input)
2176 req.ApplyOptions(opts...)
2177 return out, req.Send()
2180 const opGetBucketNotification = "GetBucketNotification"
2182 // GetBucketNotificationRequest generates a "aws/request.Request" representing the
2183 // client's request for the GetBucketNotification operation. The "output" return
2184 // value can be used to capture response data after the request's "Send" method
2187 // See GetBucketNotification for usage and error information.
2189 // Creating a request object using this method should be used when you want to inject
2190 // custom logic into the request's lifecycle using a custom handler, or if you want to
2191 // access properties on the request object before or after sending the request. If
2192 // you just want the service response, call the GetBucketNotification method directly
2195 // Note: You must call the "Send" method on the returned request object in order
2196 // to execute the request.
2198 // // Example sending a request using the GetBucketNotificationRequest method.
2199 // req, resp := client.GetBucketNotificationRequest(params)
2201 // err := req.Send()
2202 // if err == nil { // resp is now filled
2203 // fmt.Println(resp)
2206 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketNotification
2207 func (c *S3) GetBucketNotificationRequest(input *GetBucketNotificationConfigurationRequest) (req *request.Request, output *NotificationConfigurationDeprecated) {
2208 if c.Client.Config.Logger != nil {
2209 c.Client.Config.Logger.Log("This operation, GetBucketNotification, has been deprecated")
2211 op := &request.Operation{
2212 Name: opGetBucketNotification,
2214 HTTPPath: "/{Bucket}?notification",
2218 input = &GetBucketNotificationConfigurationRequest{}
2221 output = &NotificationConfigurationDeprecated{}
2222 req = c.newRequest(op, input, output)
2226 // GetBucketNotification API operation for Amazon Simple Storage Service.
2228 // Deprecated, see the GetBucketNotificationConfiguration operation.
2230 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2231 // with awserr.Error's Code and Message methods to get detailed information about
2234 // See the AWS API reference guide for Amazon Simple Storage Service's
2235 // API operation GetBucketNotification for usage and error information.
2236 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketNotification
2237 func (c *S3) GetBucketNotification(input *GetBucketNotificationConfigurationRequest) (*NotificationConfigurationDeprecated, error) {
2238 req, out := c.GetBucketNotificationRequest(input)
2239 return out, req.Send()
2242 // GetBucketNotificationWithContext is the same as GetBucketNotification with the addition of
2243 // the ability to pass a context and additional request options.
2245 // See GetBucketNotification for details on how to use this API operation.
2247 // The context must be non-nil and will be used for request cancellation. If
2248 // the context is nil a panic will occur. In the future the SDK may create
2249 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
2250 // for more information on using Contexts.
2251 func (c *S3) GetBucketNotificationWithContext(ctx aws.Context, input *GetBucketNotificationConfigurationRequest, opts ...request.Option) (*NotificationConfigurationDeprecated, error) {
2252 req, out := c.GetBucketNotificationRequest(input)
2254 req.ApplyOptions(opts...)
2255 return out, req.Send()
2258 const opGetBucketNotificationConfiguration = "GetBucketNotificationConfiguration"
2260 // GetBucketNotificationConfigurationRequest generates a "aws/request.Request" representing the
2261 // client's request for the GetBucketNotificationConfiguration operation. The "output" return
2262 // value can be used to capture response data after the request's "Send" method
2265 // See GetBucketNotificationConfiguration for usage and error information.
2267 // Creating a request object using this method should be used when you want to inject
2268 // custom logic into the request's lifecycle using a custom handler, or if you want to
2269 // access properties on the request object before or after sending the request. If
2270 // you just want the service response, call the GetBucketNotificationConfiguration method directly
2273 // Note: You must call the "Send" method on the returned request object in order
2274 // to execute the request.
2276 // // Example sending a request using the GetBucketNotificationConfigurationRequest method.
2277 // req, resp := client.GetBucketNotificationConfigurationRequest(params)
2279 // err := req.Send()
2280 // if err == nil { // resp is now filled
2281 // fmt.Println(resp)
2284 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketNotificationConfiguration
2285 func (c *S3) GetBucketNotificationConfigurationRequest(input *GetBucketNotificationConfigurationRequest) (req *request.Request, output *NotificationConfiguration) {
2286 op := &request.Operation{
2287 Name: opGetBucketNotificationConfiguration,
2289 HTTPPath: "/{Bucket}?notification",
2293 input = &GetBucketNotificationConfigurationRequest{}
2296 output = &NotificationConfiguration{}
2297 req = c.newRequest(op, input, output)
2301 // GetBucketNotificationConfiguration API operation for Amazon Simple Storage Service.
2303 // Returns the notification configuration of a bucket.
2305 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2306 // with awserr.Error's Code and Message methods to get detailed information about
2309 // See the AWS API reference guide for Amazon Simple Storage Service's
2310 // API operation GetBucketNotificationConfiguration for usage and error information.
2311 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketNotificationConfiguration
2312 func (c *S3) GetBucketNotificationConfiguration(input *GetBucketNotificationConfigurationRequest) (*NotificationConfiguration, error) {
2313 req, out := c.GetBucketNotificationConfigurationRequest(input)
2314 return out, req.Send()
2317 // GetBucketNotificationConfigurationWithContext is the same as GetBucketNotificationConfiguration with the addition of
2318 // the ability to pass a context and additional request options.
2320 // See GetBucketNotificationConfiguration for details on how to use this API operation.
2322 // The context must be non-nil and will be used for request cancellation. If
2323 // the context is nil a panic will occur. In the future the SDK may create
2324 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
2325 // for more information on using Contexts.
2326 func (c *S3) GetBucketNotificationConfigurationWithContext(ctx aws.Context, input *GetBucketNotificationConfigurationRequest, opts ...request.Option) (*NotificationConfiguration, error) {
2327 req, out := c.GetBucketNotificationConfigurationRequest(input)
2329 req.ApplyOptions(opts...)
2330 return out, req.Send()
2333 const opGetBucketPolicy = "GetBucketPolicy"
2335 // GetBucketPolicyRequest generates a "aws/request.Request" representing the
2336 // client's request for the GetBucketPolicy operation. The "output" return
2337 // value can be used to capture response data after the request's "Send" method
2340 // See GetBucketPolicy for usage and error information.
2342 // Creating a request object using this method should be used when you want to inject
2343 // custom logic into the request's lifecycle using a custom handler, or if you want to
2344 // access properties on the request object before or after sending the request. If
2345 // you just want the service response, call the GetBucketPolicy method directly
2348 // Note: You must call the "Send" method on the returned request object in order
2349 // to execute the request.
2351 // // Example sending a request using the GetBucketPolicyRequest method.
2352 // req, resp := client.GetBucketPolicyRequest(params)
2354 // err := req.Send()
2355 // if err == nil { // resp is now filled
2356 // fmt.Println(resp)
2359 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicy
2360 func (c *S3) GetBucketPolicyRequest(input *GetBucketPolicyInput) (req *request.Request, output *GetBucketPolicyOutput) {
2361 op := &request.Operation{
2362 Name: opGetBucketPolicy,
2364 HTTPPath: "/{Bucket}?policy",
2368 input = &GetBucketPolicyInput{}
2371 output = &GetBucketPolicyOutput{}
2372 req = c.newRequest(op, input, output)
2376 // GetBucketPolicy API operation for Amazon Simple Storage Service.
2378 // Returns the policy of a specified bucket.
2380 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2381 // with awserr.Error's Code and Message methods to get detailed information about
2384 // See the AWS API reference guide for Amazon Simple Storage Service's
2385 // API operation GetBucketPolicy for usage and error information.
2386 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicy
2387 func (c *S3) GetBucketPolicy(input *GetBucketPolicyInput) (*GetBucketPolicyOutput, error) {
2388 req, out := c.GetBucketPolicyRequest(input)
2389 return out, req.Send()
2392 // GetBucketPolicyWithContext is the same as GetBucketPolicy with the addition of
2393 // the ability to pass a context and additional request options.
2395 // See GetBucketPolicy for details on how to use this API operation.
2397 // The context must be non-nil and will be used for request cancellation. If
2398 // the context is nil a panic will occur. In the future the SDK may create
2399 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
2400 // for more information on using Contexts.
2401 func (c *S3) GetBucketPolicyWithContext(ctx aws.Context, input *GetBucketPolicyInput, opts ...request.Option) (*GetBucketPolicyOutput, error) {
2402 req, out := c.GetBucketPolicyRequest(input)
2404 req.ApplyOptions(opts...)
2405 return out, req.Send()
2408 const opGetBucketReplication = "GetBucketReplication"
2410 // GetBucketReplicationRequest generates a "aws/request.Request" representing the
2411 // client's request for the GetBucketReplication operation. The "output" return
2412 // value can be used to capture response data after the request's "Send" method
2415 // See GetBucketReplication for usage and error information.
2417 // Creating a request object using this method should be used when you want to inject
2418 // custom logic into the request's lifecycle using a custom handler, or if you want to
2419 // access properties on the request object before or after sending the request. If
2420 // you just want the service response, call the GetBucketReplication method directly
2423 // Note: You must call the "Send" method on the returned request object in order
2424 // to execute the request.
2426 // // Example sending a request using the GetBucketReplicationRequest method.
2427 // req, resp := client.GetBucketReplicationRequest(params)
2429 // err := req.Send()
2430 // if err == nil { // resp is now filled
2431 // fmt.Println(resp)
2434 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketReplication
2435 func (c *S3) GetBucketReplicationRequest(input *GetBucketReplicationInput) (req *request.Request, output *GetBucketReplicationOutput) {
2436 op := &request.Operation{
2437 Name: opGetBucketReplication,
2439 HTTPPath: "/{Bucket}?replication",
2443 input = &GetBucketReplicationInput{}
2446 output = &GetBucketReplicationOutput{}
2447 req = c.newRequest(op, input, output)
2451 // GetBucketReplication API operation for Amazon Simple Storage Service.
2453 // Returns the replication configuration of a bucket.
2455 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2456 // with awserr.Error's Code and Message methods to get detailed information about
2459 // See the AWS API reference guide for Amazon Simple Storage Service's
2460 // API operation GetBucketReplication for usage and error information.
2461 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketReplication
2462 func (c *S3) GetBucketReplication(input *GetBucketReplicationInput) (*GetBucketReplicationOutput, error) {
2463 req, out := c.GetBucketReplicationRequest(input)
2464 return out, req.Send()
2467 // GetBucketReplicationWithContext is the same as GetBucketReplication with the addition of
2468 // the ability to pass a context and additional request options.
2470 // See GetBucketReplication for details on how to use this API operation.
2472 // The context must be non-nil and will be used for request cancellation. If
2473 // the context is nil a panic will occur. In the future the SDK may create
2474 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
2475 // for more information on using Contexts.
2476 func (c *S3) GetBucketReplicationWithContext(ctx aws.Context, input *GetBucketReplicationInput, opts ...request.Option) (*GetBucketReplicationOutput, error) {
2477 req, out := c.GetBucketReplicationRequest(input)
2479 req.ApplyOptions(opts...)
2480 return out, req.Send()
2483 const opGetBucketRequestPayment = "GetBucketRequestPayment"
2485 // GetBucketRequestPaymentRequest generates a "aws/request.Request" representing the
2486 // client's request for the GetBucketRequestPayment operation. The "output" return
2487 // value can be used to capture response data after the request's "Send" method
2490 // See GetBucketRequestPayment for usage and error information.
2492 // Creating a request object using this method should be used when you want to inject
2493 // custom logic into the request's lifecycle using a custom handler, or if you want to
2494 // access properties on the request object before or after sending the request. If
2495 // you just want the service response, call the GetBucketRequestPayment method directly
2498 // Note: You must call the "Send" method on the returned request object in order
2499 // to execute the request.
2501 // // Example sending a request using the GetBucketRequestPaymentRequest method.
2502 // req, resp := client.GetBucketRequestPaymentRequest(params)
2504 // err := req.Send()
2505 // if err == nil { // resp is now filled
2506 // fmt.Println(resp)
2509 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketRequestPayment
2510 func (c *S3) GetBucketRequestPaymentRequest(input *GetBucketRequestPaymentInput) (req *request.Request, output *GetBucketRequestPaymentOutput) {
2511 op := &request.Operation{
2512 Name: opGetBucketRequestPayment,
2514 HTTPPath: "/{Bucket}?requestPayment",
2518 input = &GetBucketRequestPaymentInput{}
2521 output = &GetBucketRequestPaymentOutput{}
2522 req = c.newRequest(op, input, output)
2526 // GetBucketRequestPayment API operation for Amazon Simple Storage Service.
2528 // Returns the request payment configuration of a bucket.
2530 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2531 // with awserr.Error's Code and Message methods to get detailed information about
2534 // See the AWS API reference guide for Amazon Simple Storage Service's
2535 // API operation GetBucketRequestPayment for usage and error information.
2536 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketRequestPayment
2537 func (c *S3) GetBucketRequestPayment(input *GetBucketRequestPaymentInput) (*GetBucketRequestPaymentOutput, error) {
2538 req, out := c.GetBucketRequestPaymentRequest(input)
2539 return out, req.Send()
2542 // GetBucketRequestPaymentWithContext is the same as GetBucketRequestPayment with the addition of
2543 // the ability to pass a context and additional request options.
2545 // See GetBucketRequestPayment for details on how to use this API operation.
2547 // The context must be non-nil and will be used for request cancellation. If
2548 // the context is nil a panic will occur. In the future the SDK may create
2549 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
2550 // for more information on using Contexts.
2551 func (c *S3) GetBucketRequestPaymentWithContext(ctx aws.Context, input *GetBucketRequestPaymentInput, opts ...request.Option) (*GetBucketRequestPaymentOutput, error) {
2552 req, out := c.GetBucketRequestPaymentRequest(input)
2554 req.ApplyOptions(opts...)
2555 return out, req.Send()
2558 const opGetBucketTagging = "GetBucketTagging"
2560 // GetBucketTaggingRequest generates a "aws/request.Request" representing the
2561 // client's request for the GetBucketTagging operation. The "output" return
2562 // value can be used to capture response data after the request's "Send" method
2565 // See GetBucketTagging for usage and error information.
2567 // Creating a request object using this method should be used when you want to inject
2568 // custom logic into the request's lifecycle using a custom handler, or if you want to
2569 // access properties on the request object before or after sending the request. If
2570 // you just want the service response, call the GetBucketTagging method directly
2573 // Note: You must call the "Send" method on the returned request object in order
2574 // to execute the request.
2576 // // Example sending a request using the GetBucketTaggingRequest method.
2577 // req, resp := client.GetBucketTaggingRequest(params)
2579 // err := req.Send()
2580 // if err == nil { // resp is now filled
2581 // fmt.Println(resp)
2584 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketTagging
2585 func (c *S3) GetBucketTaggingRequest(input *GetBucketTaggingInput) (req *request.Request, output *GetBucketTaggingOutput) {
2586 op := &request.Operation{
2587 Name: opGetBucketTagging,
2589 HTTPPath: "/{Bucket}?tagging",
2593 input = &GetBucketTaggingInput{}
2596 output = &GetBucketTaggingOutput{}
2597 req = c.newRequest(op, input, output)
2601 // GetBucketTagging API operation for Amazon Simple Storage Service.
2603 // Returns the tag set associated with the bucket.
2605 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2606 // with awserr.Error's Code and Message methods to get detailed information about
2609 // See the AWS API reference guide for Amazon Simple Storage Service's
2610 // API operation GetBucketTagging for usage and error information.
2611 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketTagging
2612 func (c *S3) GetBucketTagging(input *GetBucketTaggingInput) (*GetBucketTaggingOutput, error) {
2613 req, out := c.GetBucketTaggingRequest(input)
2614 return out, req.Send()
2617 // GetBucketTaggingWithContext is the same as GetBucketTagging with the addition of
2618 // the ability to pass a context and additional request options.
2620 // See GetBucketTagging for details on how to use this API operation.
2622 // The context must be non-nil and will be used for request cancellation. If
2623 // the context is nil a panic will occur. In the future the SDK may create
2624 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
2625 // for more information on using Contexts.
2626 func (c *S3) GetBucketTaggingWithContext(ctx aws.Context, input *GetBucketTaggingInput, opts ...request.Option) (*GetBucketTaggingOutput, error) {
2627 req, out := c.GetBucketTaggingRequest(input)
2629 req.ApplyOptions(opts...)
2630 return out, req.Send()
2633 const opGetBucketVersioning = "GetBucketVersioning"
2635 // GetBucketVersioningRequest generates a "aws/request.Request" representing the
2636 // client's request for the GetBucketVersioning operation. The "output" return
2637 // value can be used to capture response data after the request's "Send" method
2640 // See GetBucketVersioning for usage and error information.
2642 // Creating a request object using this method should be used when you want to inject
2643 // custom logic into the request's lifecycle using a custom handler, or if you want to
2644 // access properties on the request object before or after sending the request. If
2645 // you just want the service response, call the GetBucketVersioning method directly
2648 // Note: You must call the "Send" method on the returned request object in order
2649 // to execute the request.
2651 // // Example sending a request using the GetBucketVersioningRequest method.
2652 // req, resp := client.GetBucketVersioningRequest(params)
2654 // err := req.Send()
2655 // if err == nil { // resp is now filled
2656 // fmt.Println(resp)
2659 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketVersioning
2660 func (c *S3) GetBucketVersioningRequest(input *GetBucketVersioningInput) (req *request.Request, output *GetBucketVersioningOutput) {
2661 op := &request.Operation{
2662 Name: opGetBucketVersioning,
2664 HTTPPath: "/{Bucket}?versioning",
2668 input = &GetBucketVersioningInput{}
2671 output = &GetBucketVersioningOutput{}
2672 req = c.newRequest(op, input, output)
2676 // GetBucketVersioning API operation for Amazon Simple Storage Service.
2678 // Returns the versioning state of a bucket.
2680 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2681 // with awserr.Error's Code and Message methods to get detailed information about
2684 // See the AWS API reference guide for Amazon Simple Storage Service's
2685 // API operation GetBucketVersioning for usage and error information.
2686 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketVersioning
2687 func (c *S3) GetBucketVersioning(input *GetBucketVersioningInput) (*GetBucketVersioningOutput, error) {
2688 req, out := c.GetBucketVersioningRequest(input)
2689 return out, req.Send()
2692 // GetBucketVersioningWithContext is the same as GetBucketVersioning with the addition of
2693 // the ability to pass a context and additional request options.
2695 // See GetBucketVersioning for details on how to use this API operation.
2697 // The context must be non-nil and will be used for request cancellation. If
2698 // the context is nil a panic will occur. In the future the SDK may create
2699 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
2700 // for more information on using Contexts.
2701 func (c *S3) GetBucketVersioningWithContext(ctx aws.Context, input *GetBucketVersioningInput, opts ...request.Option) (*GetBucketVersioningOutput, error) {
2702 req, out := c.GetBucketVersioningRequest(input)
2704 req.ApplyOptions(opts...)
2705 return out, req.Send()
2708 const opGetBucketWebsite = "GetBucketWebsite"
2710 // GetBucketWebsiteRequest generates a "aws/request.Request" representing the
2711 // client's request for the GetBucketWebsite operation. The "output" return
2712 // value can be used to capture response data after the request's "Send" method
2715 // See GetBucketWebsite for usage and error information.
2717 // Creating a request object using this method should be used when you want to inject
2718 // custom logic into the request's lifecycle using a custom handler, or if you want to
2719 // access properties on the request object before or after sending the request. If
2720 // you just want the service response, call the GetBucketWebsite method directly
2723 // Note: You must call the "Send" method on the returned request object in order
2724 // to execute the request.
2726 // // Example sending a request using the GetBucketWebsiteRequest method.
2727 // req, resp := client.GetBucketWebsiteRequest(params)
2729 // err := req.Send()
2730 // if err == nil { // resp is now filled
2731 // fmt.Println(resp)
2734 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketWebsite
2735 func (c *S3) GetBucketWebsiteRequest(input *GetBucketWebsiteInput) (req *request.Request, output *GetBucketWebsiteOutput) {
2736 op := &request.Operation{
2737 Name: opGetBucketWebsite,
2739 HTTPPath: "/{Bucket}?website",
2743 input = &GetBucketWebsiteInput{}
2746 output = &GetBucketWebsiteOutput{}
2747 req = c.newRequest(op, input, output)
2751 // GetBucketWebsite API operation for Amazon Simple Storage Service.
2753 // Returns the website configuration for a bucket.
2755 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2756 // with awserr.Error's Code and Message methods to get detailed information about
2759 // See the AWS API reference guide for Amazon Simple Storage Service's
2760 // API operation GetBucketWebsite for usage and error information.
2761 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketWebsite
2762 func (c *S3) GetBucketWebsite(input *GetBucketWebsiteInput) (*GetBucketWebsiteOutput, error) {
2763 req, out := c.GetBucketWebsiteRequest(input)
2764 return out, req.Send()
2767 // GetBucketWebsiteWithContext is the same as GetBucketWebsite with the addition of
2768 // the ability to pass a context and additional request options.
2770 // See GetBucketWebsite for details on how to use this API operation.
2772 // The context must be non-nil and will be used for request cancellation. If
2773 // the context is nil a panic will occur. In the future the SDK may create
2774 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
2775 // for more information on using Contexts.
2776 func (c *S3) GetBucketWebsiteWithContext(ctx aws.Context, input *GetBucketWebsiteInput, opts ...request.Option) (*GetBucketWebsiteOutput, error) {
2777 req, out := c.GetBucketWebsiteRequest(input)
2779 req.ApplyOptions(opts...)
2780 return out, req.Send()
2783 const opGetObject = "GetObject"
2785 // GetObjectRequest generates a "aws/request.Request" representing the
2786 // client's request for the GetObject operation. The "output" return
2787 // value can be used to capture response data after the request's "Send" method
2790 // See GetObject for usage and error information.
2792 // Creating a request object using this method should be used when you want to inject
2793 // custom logic into the request's lifecycle using a custom handler, or if you want to
2794 // access properties on the request object before or after sending the request. If
2795 // you just want the service response, call the GetObject method directly
2798 // Note: You must call the "Send" method on the returned request object in order
2799 // to execute the request.
2801 // // Example sending a request using the GetObjectRequest method.
2802 // req, resp := client.GetObjectRequest(params)
2804 // err := req.Send()
2805 // if err == nil { // resp is now filled
2806 // fmt.Println(resp)
2809 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObject
2810 func (c *S3) GetObjectRequest(input *GetObjectInput) (req *request.Request, output *GetObjectOutput) {
2811 op := &request.Operation{
2814 HTTPPath: "/{Bucket}/{Key+}",
2818 input = &GetObjectInput{}
2821 output = &GetObjectOutput{}
2822 req = c.newRequest(op, input, output)
2826 // GetObject API operation for Amazon Simple Storage Service.
2828 // Retrieves objects from Amazon S3.
2830 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2831 // with awserr.Error's Code and Message methods to get detailed information about
2834 // See the AWS API reference guide for Amazon Simple Storage Service's
2835 // API operation GetObject for usage and error information.
2837 // Returned Error Codes:
2838 // * ErrCodeNoSuchKey "NoSuchKey"
2839 // The specified key does not exist.
2841 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObject
2842 func (c *S3) GetObject(input *GetObjectInput) (*GetObjectOutput, error) {
2843 req, out := c.GetObjectRequest(input)
2844 return out, req.Send()
2847 // GetObjectWithContext is the same as GetObject with the addition of
2848 // the ability to pass a context and additional request options.
2850 // See GetObject for details on how to use this API operation.
2852 // The context must be non-nil and will be used for request cancellation. If
2853 // the context is nil a panic will occur. In the future the SDK may create
2854 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
2855 // for more information on using Contexts.
2856 func (c *S3) GetObjectWithContext(ctx aws.Context, input *GetObjectInput, opts ...request.Option) (*GetObjectOutput, error) {
2857 req, out := c.GetObjectRequest(input)
2859 req.ApplyOptions(opts...)
2860 return out, req.Send()
2863 const opGetObjectAcl = "GetObjectAcl"
2865 // GetObjectAclRequest generates a "aws/request.Request" representing the
2866 // client's request for the GetObjectAcl operation. The "output" return
2867 // value can be used to capture response data after the request's "Send" method
2870 // See GetObjectAcl for usage and error information.
2872 // Creating a request object using this method should be used when you want to inject
2873 // custom logic into the request's lifecycle using a custom handler, or if you want to
2874 // access properties on the request object before or after sending the request. If
2875 // you just want the service response, call the GetObjectAcl method directly
2878 // Note: You must call the "Send" method on the returned request object in order
2879 // to execute the request.
2881 // // Example sending a request using the GetObjectAclRequest method.
2882 // req, resp := client.GetObjectAclRequest(params)
2884 // err := req.Send()
2885 // if err == nil { // resp is now filled
2886 // fmt.Println(resp)
2889 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectAcl
2890 func (c *S3) GetObjectAclRequest(input *GetObjectAclInput) (req *request.Request, output *GetObjectAclOutput) {
2891 op := &request.Operation{
2892 Name: opGetObjectAcl,
2894 HTTPPath: "/{Bucket}/{Key+}?acl",
2898 input = &GetObjectAclInput{}
2901 output = &GetObjectAclOutput{}
2902 req = c.newRequest(op, input, output)
2906 // GetObjectAcl API operation for Amazon Simple Storage Service.
2908 // Returns the access control list (ACL) of an object.
2910 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2911 // with awserr.Error's Code and Message methods to get detailed information about
2914 // See the AWS API reference guide for Amazon Simple Storage Service's
2915 // API operation GetObjectAcl for usage and error information.
2917 // Returned Error Codes:
2918 // * ErrCodeNoSuchKey "NoSuchKey"
2919 // The specified key does not exist.
2921 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectAcl
2922 func (c *S3) GetObjectAcl(input *GetObjectAclInput) (*GetObjectAclOutput, error) {
2923 req, out := c.GetObjectAclRequest(input)
2924 return out, req.Send()
2927 // GetObjectAclWithContext is the same as GetObjectAcl with the addition of
2928 // the ability to pass a context and additional request options.
2930 // See GetObjectAcl for details on how to use this API operation.
2932 // The context must be non-nil and will be used for request cancellation. If
2933 // the context is nil a panic will occur. In the future the SDK may create
2934 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
2935 // for more information on using Contexts.
2936 func (c *S3) GetObjectAclWithContext(ctx aws.Context, input *GetObjectAclInput, opts ...request.Option) (*GetObjectAclOutput, error) {
2937 req, out := c.GetObjectAclRequest(input)
2939 req.ApplyOptions(opts...)
2940 return out, req.Send()
2943 const opGetObjectTagging = "GetObjectTagging"
2945 // GetObjectTaggingRequest generates a "aws/request.Request" representing the
2946 // client's request for the GetObjectTagging operation. The "output" return
2947 // value can be used to capture response data after the request's "Send" method
2950 // See GetObjectTagging for usage and error information.
2952 // Creating a request object using this method should be used when you want to inject
2953 // custom logic into the request's lifecycle using a custom handler, or if you want to
2954 // access properties on the request object before or after sending the request. If
2955 // you just want the service response, call the GetObjectTagging method directly
2958 // Note: You must call the "Send" method on the returned request object in order
2959 // to execute the request.
2961 // // Example sending a request using the GetObjectTaggingRequest method.
2962 // req, resp := client.GetObjectTaggingRequest(params)
2964 // err := req.Send()
2965 // if err == nil { // resp is now filled
2966 // fmt.Println(resp)
2969 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTagging
2970 func (c *S3) GetObjectTaggingRequest(input *GetObjectTaggingInput) (req *request.Request, output *GetObjectTaggingOutput) {
2971 op := &request.Operation{
2972 Name: opGetObjectTagging,
2974 HTTPPath: "/{Bucket}/{Key+}?tagging",
2978 input = &GetObjectTaggingInput{}
2981 output = &GetObjectTaggingOutput{}
2982 req = c.newRequest(op, input, output)
2986 // GetObjectTagging API operation for Amazon Simple Storage Service.
2988 // Returns the tag-set of an object.
2990 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2991 // with awserr.Error's Code and Message methods to get detailed information about
2994 // See the AWS API reference guide for Amazon Simple Storage Service's
2995 // API operation GetObjectTagging for usage and error information.
2996 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTagging
2997 func (c *S3) GetObjectTagging(input *GetObjectTaggingInput) (*GetObjectTaggingOutput, error) {
2998 req, out := c.GetObjectTaggingRequest(input)
2999 return out, req.Send()
3002 // GetObjectTaggingWithContext is the same as GetObjectTagging with the addition of
3003 // the ability to pass a context and additional request options.
3005 // See GetObjectTagging for details on how to use this API operation.
3007 // The context must be non-nil and will be used for request cancellation. If
3008 // the context is nil a panic will occur. In the future the SDK may create
3009 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3010 // for more information on using Contexts.
3011 func (c *S3) GetObjectTaggingWithContext(ctx aws.Context, input *GetObjectTaggingInput, opts ...request.Option) (*GetObjectTaggingOutput, error) {
3012 req, out := c.GetObjectTaggingRequest(input)
3014 req.ApplyOptions(opts...)
3015 return out, req.Send()
3018 const opGetObjectTorrent = "GetObjectTorrent"
3020 // GetObjectTorrentRequest generates a "aws/request.Request" representing the
3021 // client's request for the GetObjectTorrent operation. The "output" return
3022 // value can be used to capture response data after the request's "Send" method
3025 // See GetObjectTorrent for usage and error information.
3027 // Creating a request object using this method should be used when you want to inject
3028 // custom logic into the request's lifecycle using a custom handler, or if you want to
3029 // access properties on the request object before or after sending the request. If
3030 // you just want the service response, call the GetObjectTorrent method directly
3033 // Note: You must call the "Send" method on the returned request object in order
3034 // to execute the request.
3036 // // Example sending a request using the GetObjectTorrentRequest method.
3037 // req, resp := client.GetObjectTorrentRequest(params)
3039 // err := req.Send()
3040 // if err == nil { // resp is now filled
3041 // fmt.Println(resp)
3044 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTorrent
3045 func (c *S3) GetObjectTorrentRequest(input *GetObjectTorrentInput) (req *request.Request, output *GetObjectTorrentOutput) {
3046 op := &request.Operation{
3047 Name: opGetObjectTorrent,
3049 HTTPPath: "/{Bucket}/{Key+}?torrent",
3053 input = &GetObjectTorrentInput{}
3056 output = &GetObjectTorrentOutput{}
3057 req = c.newRequest(op, input, output)
3061 // GetObjectTorrent API operation for Amazon Simple Storage Service.
3063 // Return torrent files from a bucket.
3065 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3066 // with awserr.Error's Code and Message methods to get detailed information about
3069 // See the AWS API reference guide for Amazon Simple Storage Service's
3070 // API operation GetObjectTorrent for usage and error information.
3071 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTorrent
3072 func (c *S3) GetObjectTorrent(input *GetObjectTorrentInput) (*GetObjectTorrentOutput, error) {
3073 req, out := c.GetObjectTorrentRequest(input)
3074 return out, req.Send()
3077 // GetObjectTorrentWithContext is the same as GetObjectTorrent with the addition of
3078 // the ability to pass a context and additional request options.
3080 // See GetObjectTorrent for details on how to use this API operation.
3082 // The context must be non-nil and will be used for request cancellation. If
3083 // the context is nil a panic will occur. In the future the SDK may create
3084 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3085 // for more information on using Contexts.
3086 func (c *S3) GetObjectTorrentWithContext(ctx aws.Context, input *GetObjectTorrentInput, opts ...request.Option) (*GetObjectTorrentOutput, error) {
3087 req, out := c.GetObjectTorrentRequest(input)
3089 req.ApplyOptions(opts...)
3090 return out, req.Send()
3093 const opHeadBucket = "HeadBucket"
3095 // HeadBucketRequest generates a "aws/request.Request" representing the
3096 // client's request for the HeadBucket operation. The "output" return
3097 // value can be used to capture response data after the request's "Send" method
3100 // See HeadBucket for usage and error information.
3102 // Creating a request object using this method should be used when you want to inject
3103 // custom logic into the request's lifecycle using a custom handler, or if you want to
3104 // access properties on the request object before or after sending the request. If
3105 // you just want the service response, call the HeadBucket method directly
3108 // Note: You must call the "Send" method on the returned request object in order
3109 // to execute the request.
3111 // // Example sending a request using the HeadBucketRequest method.
3112 // req, resp := client.HeadBucketRequest(params)
3114 // err := req.Send()
3115 // if err == nil { // resp is now filled
3116 // fmt.Println(resp)
3119 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucket
3120 func (c *S3) HeadBucketRequest(input *HeadBucketInput) (req *request.Request, output *HeadBucketOutput) {
3121 op := &request.Operation{
3124 HTTPPath: "/{Bucket}",
3128 input = &HeadBucketInput{}
3131 output = &HeadBucketOutput{}
3132 req = c.newRequest(op, input, output)
3133 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
3134 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
3138 // HeadBucket API operation for Amazon Simple Storage Service.
3140 // This operation is useful to determine if a bucket exists and you have permission
3143 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3144 // with awserr.Error's Code and Message methods to get detailed information about
3147 // See the AWS API reference guide for Amazon Simple Storage Service's
3148 // API operation HeadBucket for usage and error information.
3150 // Returned Error Codes:
3151 // * ErrCodeNoSuchBucket "NoSuchBucket"
3152 // The specified bucket does not exist.
3154 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucket
3155 func (c *S3) HeadBucket(input *HeadBucketInput) (*HeadBucketOutput, error) {
3156 req, out := c.HeadBucketRequest(input)
3157 return out, req.Send()
3160 // HeadBucketWithContext is the same as HeadBucket with the addition of
3161 // the ability to pass a context and additional request options.
3163 // See HeadBucket for details on how to use this API operation.
3165 // The context must be non-nil and will be used for request cancellation. If
3166 // the context is nil a panic will occur. In the future the SDK may create
3167 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3168 // for more information on using Contexts.
3169 func (c *S3) HeadBucketWithContext(ctx aws.Context, input *HeadBucketInput, opts ...request.Option) (*HeadBucketOutput, error) {
3170 req, out := c.HeadBucketRequest(input)
3172 req.ApplyOptions(opts...)
3173 return out, req.Send()
3176 const opHeadObject = "HeadObject"
3178 // HeadObjectRequest generates a "aws/request.Request" representing the
3179 // client's request for the HeadObject operation. The "output" return
3180 // value can be used to capture response data after the request's "Send" method
3183 // See HeadObject for usage and error information.
3185 // Creating a request object using this method should be used when you want to inject
3186 // custom logic into the request's lifecycle using a custom handler, or if you want to
3187 // access properties on the request object before or after sending the request. If
3188 // you just want the service response, call the HeadObject method directly
3191 // Note: You must call the "Send" method on the returned request object in order
3192 // to execute the request.
3194 // // Example sending a request using the HeadObjectRequest method.
3195 // req, resp := client.HeadObjectRequest(params)
3197 // err := req.Send()
3198 // if err == nil { // resp is now filled
3199 // fmt.Println(resp)
3202 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject
3203 func (c *S3) HeadObjectRequest(input *HeadObjectInput) (req *request.Request, output *HeadObjectOutput) {
3204 op := &request.Operation{
3207 HTTPPath: "/{Bucket}/{Key+}",
3211 input = &HeadObjectInput{}
3214 output = &HeadObjectOutput{}
3215 req = c.newRequest(op, input, output)
3219 // HeadObject API operation for Amazon Simple Storage Service.
3221 // The HEAD operation retrieves metadata from an object without returning the
3222 // object itself. This operation is useful if you're only interested in an object's
3223 // metadata. To use HEAD, you must have READ access to the object.
3225 // See http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#RESTErrorResponses
3226 // for more information on returned errors.
3228 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3229 // with awserr.Error's Code and Message methods to get detailed information about
3232 // See the AWS API reference guide for Amazon Simple Storage Service's
3233 // API operation HeadObject for usage and error information.
3234 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObject
3235 func (c *S3) HeadObject(input *HeadObjectInput) (*HeadObjectOutput, error) {
3236 req, out := c.HeadObjectRequest(input)
3237 return out, req.Send()
3240 // HeadObjectWithContext is the same as HeadObject with the addition of
3241 // the ability to pass a context and additional request options.
3243 // See HeadObject for details on how to use this API operation.
3245 // The context must be non-nil and will be used for request cancellation. If
3246 // the context is nil a panic will occur. In the future the SDK may create
3247 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3248 // for more information on using Contexts.
3249 func (c *S3) HeadObjectWithContext(ctx aws.Context, input *HeadObjectInput, opts ...request.Option) (*HeadObjectOutput, error) {
3250 req, out := c.HeadObjectRequest(input)
3252 req.ApplyOptions(opts...)
3253 return out, req.Send()
3256 const opListBucketAnalyticsConfigurations = "ListBucketAnalyticsConfigurations"
3258 // ListBucketAnalyticsConfigurationsRequest generates a "aws/request.Request" representing the
3259 // client's request for the ListBucketAnalyticsConfigurations operation. The "output" return
3260 // value can be used to capture response data after the request's "Send" method
3263 // See ListBucketAnalyticsConfigurations for usage and error information.
3265 // Creating a request object using this method should be used when you want to inject
3266 // custom logic into the request's lifecycle using a custom handler, or if you want to
3267 // access properties on the request object before or after sending the request. If
3268 // you just want the service response, call the ListBucketAnalyticsConfigurations method directly
3271 // Note: You must call the "Send" method on the returned request object in order
3272 // to execute the request.
3274 // // Example sending a request using the ListBucketAnalyticsConfigurationsRequest method.
3275 // req, resp := client.ListBucketAnalyticsConfigurationsRequest(params)
3277 // err := req.Send()
3278 // if err == nil { // resp is now filled
3279 // fmt.Println(resp)
3282 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketAnalyticsConfigurations
3283 func (c *S3) ListBucketAnalyticsConfigurationsRequest(input *ListBucketAnalyticsConfigurationsInput) (req *request.Request, output *ListBucketAnalyticsConfigurationsOutput) {
3284 op := &request.Operation{
3285 Name: opListBucketAnalyticsConfigurations,
3287 HTTPPath: "/{Bucket}?analytics",
3291 input = &ListBucketAnalyticsConfigurationsInput{}
3294 output = &ListBucketAnalyticsConfigurationsOutput{}
3295 req = c.newRequest(op, input, output)
3299 // ListBucketAnalyticsConfigurations API operation for Amazon Simple Storage Service.
3301 // Lists the analytics configurations for the bucket.
3303 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3304 // with awserr.Error's Code and Message methods to get detailed information about
3307 // See the AWS API reference guide for Amazon Simple Storage Service's
3308 // API operation ListBucketAnalyticsConfigurations for usage and error information.
3309 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketAnalyticsConfigurations
3310 func (c *S3) ListBucketAnalyticsConfigurations(input *ListBucketAnalyticsConfigurationsInput) (*ListBucketAnalyticsConfigurationsOutput, error) {
3311 req, out := c.ListBucketAnalyticsConfigurationsRequest(input)
3312 return out, req.Send()
3315 // ListBucketAnalyticsConfigurationsWithContext is the same as ListBucketAnalyticsConfigurations with the addition of
3316 // the ability to pass a context and additional request options.
3318 // See ListBucketAnalyticsConfigurations for details on how to use this API operation.
3320 // The context must be non-nil and will be used for request cancellation. If
3321 // the context is nil a panic will occur. In the future the SDK may create
3322 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3323 // for more information on using Contexts.
3324 func (c *S3) ListBucketAnalyticsConfigurationsWithContext(ctx aws.Context, input *ListBucketAnalyticsConfigurationsInput, opts ...request.Option) (*ListBucketAnalyticsConfigurationsOutput, error) {
3325 req, out := c.ListBucketAnalyticsConfigurationsRequest(input)
3327 req.ApplyOptions(opts...)
3328 return out, req.Send()
3331 const opListBucketInventoryConfigurations = "ListBucketInventoryConfigurations"
3333 // ListBucketInventoryConfigurationsRequest generates a "aws/request.Request" representing the
3334 // client's request for the ListBucketInventoryConfigurations operation. The "output" return
3335 // value can be used to capture response data after the request's "Send" method
3338 // See ListBucketInventoryConfigurations for usage and error information.
3340 // Creating a request object using this method should be used when you want to inject
3341 // custom logic into the request's lifecycle using a custom handler, or if you want to
3342 // access properties on the request object before or after sending the request. If
3343 // you just want the service response, call the ListBucketInventoryConfigurations method directly
3346 // Note: You must call the "Send" method on the returned request object in order
3347 // to execute the request.
3349 // // Example sending a request using the ListBucketInventoryConfigurationsRequest method.
3350 // req, resp := client.ListBucketInventoryConfigurationsRequest(params)
3352 // err := req.Send()
3353 // if err == nil { // resp is now filled
3354 // fmt.Println(resp)
3357 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketInventoryConfigurations
3358 func (c *S3) ListBucketInventoryConfigurationsRequest(input *ListBucketInventoryConfigurationsInput) (req *request.Request, output *ListBucketInventoryConfigurationsOutput) {
3359 op := &request.Operation{
3360 Name: opListBucketInventoryConfigurations,
3362 HTTPPath: "/{Bucket}?inventory",
3366 input = &ListBucketInventoryConfigurationsInput{}
3369 output = &ListBucketInventoryConfigurationsOutput{}
3370 req = c.newRequest(op, input, output)
3374 // ListBucketInventoryConfigurations API operation for Amazon Simple Storage Service.
3376 // Returns a list of inventory configurations for the bucket.
3378 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3379 // with awserr.Error's Code and Message methods to get detailed information about
3382 // See the AWS API reference guide for Amazon Simple Storage Service's
3383 // API operation ListBucketInventoryConfigurations for usage and error information.
3384 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketInventoryConfigurations
3385 func (c *S3) ListBucketInventoryConfigurations(input *ListBucketInventoryConfigurationsInput) (*ListBucketInventoryConfigurationsOutput, error) {
3386 req, out := c.ListBucketInventoryConfigurationsRequest(input)
3387 return out, req.Send()
3390 // ListBucketInventoryConfigurationsWithContext is the same as ListBucketInventoryConfigurations with the addition of
3391 // the ability to pass a context and additional request options.
3393 // See ListBucketInventoryConfigurations for details on how to use this API operation.
3395 // The context must be non-nil and will be used for request cancellation. If
3396 // the context is nil a panic will occur. In the future the SDK may create
3397 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3398 // for more information on using Contexts.
3399 func (c *S3) ListBucketInventoryConfigurationsWithContext(ctx aws.Context, input *ListBucketInventoryConfigurationsInput, opts ...request.Option) (*ListBucketInventoryConfigurationsOutput, error) {
3400 req, out := c.ListBucketInventoryConfigurationsRequest(input)
3402 req.ApplyOptions(opts...)
3403 return out, req.Send()
3406 const opListBucketMetricsConfigurations = "ListBucketMetricsConfigurations"
3408 // ListBucketMetricsConfigurationsRequest generates a "aws/request.Request" representing the
3409 // client's request for the ListBucketMetricsConfigurations operation. The "output" return
3410 // value can be used to capture response data after the request's "Send" method
3413 // See ListBucketMetricsConfigurations for usage and error information.
3415 // Creating a request object using this method should be used when you want to inject
3416 // custom logic into the request's lifecycle using a custom handler, or if you want to
3417 // access properties on the request object before or after sending the request. If
3418 // you just want the service response, call the ListBucketMetricsConfigurations method directly
3421 // Note: You must call the "Send" method on the returned request object in order
3422 // to execute the request.
3424 // // Example sending a request using the ListBucketMetricsConfigurationsRequest method.
3425 // req, resp := client.ListBucketMetricsConfigurationsRequest(params)
3427 // err := req.Send()
3428 // if err == nil { // resp is now filled
3429 // fmt.Println(resp)
3432 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketMetricsConfigurations
3433 func (c *S3) ListBucketMetricsConfigurationsRequest(input *ListBucketMetricsConfigurationsInput) (req *request.Request, output *ListBucketMetricsConfigurationsOutput) {
3434 op := &request.Operation{
3435 Name: opListBucketMetricsConfigurations,
3437 HTTPPath: "/{Bucket}?metrics",
3441 input = &ListBucketMetricsConfigurationsInput{}
3444 output = &ListBucketMetricsConfigurationsOutput{}
3445 req = c.newRequest(op, input, output)
3449 // ListBucketMetricsConfigurations API operation for Amazon Simple Storage Service.
3451 // Lists the metrics configurations for the bucket.
3453 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3454 // with awserr.Error's Code and Message methods to get detailed information about
3457 // See the AWS API reference guide for Amazon Simple Storage Service's
3458 // API operation ListBucketMetricsConfigurations for usage and error information.
3459 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketMetricsConfigurations
3460 func (c *S3) ListBucketMetricsConfigurations(input *ListBucketMetricsConfigurationsInput) (*ListBucketMetricsConfigurationsOutput, error) {
3461 req, out := c.ListBucketMetricsConfigurationsRequest(input)
3462 return out, req.Send()
3465 // ListBucketMetricsConfigurationsWithContext is the same as ListBucketMetricsConfigurations with the addition of
3466 // the ability to pass a context and additional request options.
3468 // See ListBucketMetricsConfigurations for details on how to use this API operation.
3470 // The context must be non-nil and will be used for request cancellation. If
3471 // the context is nil a panic will occur. In the future the SDK may create
3472 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3473 // for more information on using Contexts.
3474 func (c *S3) ListBucketMetricsConfigurationsWithContext(ctx aws.Context, input *ListBucketMetricsConfigurationsInput, opts ...request.Option) (*ListBucketMetricsConfigurationsOutput, error) {
3475 req, out := c.ListBucketMetricsConfigurationsRequest(input)
3477 req.ApplyOptions(opts...)
3478 return out, req.Send()
3481 const opListBuckets = "ListBuckets"
3483 // ListBucketsRequest generates a "aws/request.Request" representing the
3484 // client's request for the ListBuckets operation. The "output" return
3485 // value can be used to capture response data after the request's "Send" method
3488 // See ListBuckets for usage and error information.
3490 // Creating a request object using this method should be used when you want to inject
3491 // custom logic into the request's lifecycle using a custom handler, or if you want to
3492 // access properties on the request object before or after sending the request. If
3493 // you just want the service response, call the ListBuckets method directly
3496 // Note: You must call the "Send" method on the returned request object in order
3497 // to execute the request.
3499 // // Example sending a request using the ListBucketsRequest method.
3500 // req, resp := client.ListBucketsRequest(params)
3502 // err := req.Send()
3503 // if err == nil { // resp is now filled
3504 // fmt.Println(resp)
3507 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBuckets
3508 func (c *S3) ListBucketsRequest(input *ListBucketsInput) (req *request.Request, output *ListBucketsOutput) {
3509 op := &request.Operation{
3510 Name: opListBuckets,
3516 input = &ListBucketsInput{}
3519 output = &ListBucketsOutput{}
3520 req = c.newRequest(op, input, output)
3524 // ListBuckets API operation for Amazon Simple Storage Service.
3526 // Returns a list of all buckets owned by the authenticated sender of the request.
3528 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3529 // with awserr.Error's Code and Message methods to get detailed information about
3532 // See the AWS API reference guide for Amazon Simple Storage Service's
3533 // API operation ListBuckets for usage and error information.
3534 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBuckets
3535 func (c *S3) ListBuckets(input *ListBucketsInput) (*ListBucketsOutput, error) {
3536 req, out := c.ListBucketsRequest(input)
3537 return out, req.Send()
3540 // ListBucketsWithContext is the same as ListBuckets with the addition of
3541 // the ability to pass a context and additional request options.
3543 // See ListBuckets for details on how to use this API operation.
3545 // The context must be non-nil and will be used for request cancellation. If
3546 // the context is nil a panic will occur. In the future the SDK may create
3547 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3548 // for more information on using Contexts.
3549 func (c *S3) ListBucketsWithContext(ctx aws.Context, input *ListBucketsInput, opts ...request.Option) (*ListBucketsOutput, error) {
3550 req, out := c.ListBucketsRequest(input)
3552 req.ApplyOptions(opts...)
3553 return out, req.Send()
3556 const opListMultipartUploads = "ListMultipartUploads"
3558 // ListMultipartUploadsRequest generates a "aws/request.Request" representing the
3559 // client's request for the ListMultipartUploads operation. The "output" return
3560 // value can be used to capture response data after the request's "Send" method
3563 // See ListMultipartUploads for usage and error information.
3565 // Creating a request object using this method should be used when you want to inject
3566 // custom logic into the request's lifecycle using a custom handler, or if you want to
3567 // access properties on the request object before or after sending the request. If
3568 // you just want the service response, call the ListMultipartUploads method directly
3571 // Note: You must call the "Send" method on the returned request object in order
3572 // to execute the request.
3574 // // Example sending a request using the ListMultipartUploadsRequest method.
3575 // req, resp := client.ListMultipartUploadsRequest(params)
3577 // err := req.Send()
3578 // if err == nil { // resp is now filled
3579 // fmt.Println(resp)
3582 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListMultipartUploads
3583 func (c *S3) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) (req *request.Request, output *ListMultipartUploadsOutput) {
3584 op := &request.Operation{
3585 Name: opListMultipartUploads,
3587 HTTPPath: "/{Bucket}?uploads",
3588 Paginator: &request.Paginator{
3589 InputTokens: []string{"KeyMarker", "UploadIdMarker"},
3590 OutputTokens: []string{"NextKeyMarker", "NextUploadIdMarker"},
3591 LimitToken: "MaxUploads",
3592 TruncationToken: "IsTruncated",
3597 input = &ListMultipartUploadsInput{}
3600 output = &ListMultipartUploadsOutput{}
3601 req = c.newRequest(op, input, output)
3605 // ListMultipartUploads API operation for Amazon Simple Storage Service.
3607 // This operation lists in-progress multipart uploads.
3609 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3610 // with awserr.Error's Code and Message methods to get detailed information about
3613 // See the AWS API reference guide for Amazon Simple Storage Service's
3614 // API operation ListMultipartUploads for usage and error information.
3615 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListMultipartUploads
3616 func (c *S3) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error) {
3617 req, out := c.ListMultipartUploadsRequest(input)
3618 return out, req.Send()
3621 // ListMultipartUploadsWithContext is the same as ListMultipartUploads with the addition of
3622 // the ability to pass a context and additional request options.
3624 // See ListMultipartUploads for details on how to use this API operation.
3626 // The context must be non-nil and will be used for request cancellation. If
3627 // the context is nil a panic will occur. In the future the SDK may create
3628 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3629 // for more information on using Contexts.
3630 func (c *S3) ListMultipartUploadsWithContext(ctx aws.Context, input *ListMultipartUploadsInput, opts ...request.Option) (*ListMultipartUploadsOutput, error) {
3631 req, out := c.ListMultipartUploadsRequest(input)
3633 req.ApplyOptions(opts...)
3634 return out, req.Send()
3637 // ListMultipartUploadsPages iterates over the pages of a ListMultipartUploads operation,
3638 // calling the "fn" function with the response data for each page. To stop
3639 // iterating, return false from the fn function.
3641 // See ListMultipartUploads method for more information on how to use this operation.
3643 // Note: This operation can generate multiple requests to a service.
3645 // // Example iterating over at most 3 pages of a ListMultipartUploads operation.
3647 // err := client.ListMultipartUploadsPages(params,
3648 // func(page *ListMultipartUploadsOutput, lastPage bool) bool {
3650 // fmt.Println(page)
3651 // return pageNum <= 3
3654 func (c *S3) ListMultipartUploadsPages(input *ListMultipartUploadsInput, fn func(*ListMultipartUploadsOutput, bool) bool) error {
3655 return c.ListMultipartUploadsPagesWithContext(aws.BackgroundContext(), input, fn)
3658 // ListMultipartUploadsPagesWithContext same as ListMultipartUploadsPages except
3659 // it takes a Context and allows setting request options on the pages.
3661 // The context must be non-nil and will be used for request cancellation. If
3662 // the context is nil a panic will occur. In the future the SDK may create
3663 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3664 // for more information on using Contexts.
3665 func (c *S3) ListMultipartUploadsPagesWithContext(ctx aws.Context, input *ListMultipartUploadsInput, fn func(*ListMultipartUploadsOutput, bool) bool, opts ...request.Option) error {
3666 p := request.Pagination{
3667 NewRequest: func() (*request.Request, error) {
3668 var inCpy *ListMultipartUploadsInput
3673 req, _ := c.ListMultipartUploadsRequest(inCpy)
3675 req.ApplyOptions(opts...)
3681 for p.Next() && cont {
3682 cont = fn(p.Page().(*ListMultipartUploadsOutput), !p.HasNextPage())
3687 const opListObjectVersions = "ListObjectVersions"
3689 // ListObjectVersionsRequest generates a "aws/request.Request" representing the
3690 // client's request for the ListObjectVersions operation. The "output" return
3691 // value can be used to capture response data after the request's "Send" method
3694 // See ListObjectVersions for usage and error information.
3696 // Creating a request object using this method should be used when you want to inject
3697 // custom logic into the request's lifecycle using a custom handler, or if you want to
3698 // access properties on the request object before or after sending the request. If
3699 // you just want the service response, call the ListObjectVersions method directly
3702 // Note: You must call the "Send" method on the returned request object in order
3703 // to execute the request.
3705 // // Example sending a request using the ListObjectVersionsRequest method.
3706 // req, resp := client.ListObjectVersionsRequest(params)
3708 // err := req.Send()
3709 // if err == nil { // resp is now filled
3710 // fmt.Println(resp)
3713 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectVersions
3714 func (c *S3) ListObjectVersionsRequest(input *ListObjectVersionsInput) (req *request.Request, output *ListObjectVersionsOutput) {
3715 op := &request.Operation{
3716 Name: opListObjectVersions,
3718 HTTPPath: "/{Bucket}?versions",
3719 Paginator: &request.Paginator{
3720 InputTokens: []string{"KeyMarker", "VersionIdMarker"},
3721 OutputTokens: []string{"NextKeyMarker", "NextVersionIdMarker"},
3722 LimitToken: "MaxKeys",
3723 TruncationToken: "IsTruncated",
3728 input = &ListObjectVersionsInput{}
3731 output = &ListObjectVersionsOutput{}
3732 req = c.newRequest(op, input, output)
3736 // ListObjectVersions API operation for Amazon Simple Storage Service.
3738 // Returns metadata about all of the versions of objects in a bucket.
3740 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3741 // with awserr.Error's Code and Message methods to get detailed information about
3744 // See the AWS API reference guide for Amazon Simple Storage Service's
3745 // API operation ListObjectVersions for usage and error information.
3746 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectVersions
3747 func (c *S3) ListObjectVersions(input *ListObjectVersionsInput) (*ListObjectVersionsOutput, error) {
3748 req, out := c.ListObjectVersionsRequest(input)
3749 return out, req.Send()
3752 // ListObjectVersionsWithContext is the same as ListObjectVersions with the addition of
3753 // the ability to pass a context and additional request options.
3755 // See ListObjectVersions for details on how to use this API operation.
3757 // The context must be non-nil and will be used for request cancellation. If
3758 // the context is nil a panic will occur. In the future the SDK may create
3759 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3760 // for more information on using Contexts.
3761 func (c *S3) ListObjectVersionsWithContext(ctx aws.Context, input *ListObjectVersionsInput, opts ...request.Option) (*ListObjectVersionsOutput, error) {
3762 req, out := c.ListObjectVersionsRequest(input)
3764 req.ApplyOptions(opts...)
3765 return out, req.Send()
3768 // ListObjectVersionsPages iterates over the pages of a ListObjectVersions operation,
3769 // calling the "fn" function with the response data for each page. To stop
3770 // iterating, return false from the fn function.
3772 // See ListObjectVersions method for more information on how to use this operation.
3774 // Note: This operation can generate multiple requests to a service.
3776 // // Example iterating over at most 3 pages of a ListObjectVersions operation.
3778 // err := client.ListObjectVersionsPages(params,
3779 // func(page *ListObjectVersionsOutput, lastPage bool) bool {
3781 // fmt.Println(page)
3782 // return pageNum <= 3
3785 func (c *S3) ListObjectVersionsPages(input *ListObjectVersionsInput, fn func(*ListObjectVersionsOutput, bool) bool) error {
3786 return c.ListObjectVersionsPagesWithContext(aws.BackgroundContext(), input, fn)
3789 // ListObjectVersionsPagesWithContext same as ListObjectVersionsPages except
3790 // it takes a Context and allows setting request options on the pages.
3792 // The context must be non-nil and will be used for request cancellation. If
3793 // the context is nil a panic will occur. In the future the SDK may create
3794 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3795 // for more information on using Contexts.
3796 func (c *S3) ListObjectVersionsPagesWithContext(ctx aws.Context, input *ListObjectVersionsInput, fn func(*ListObjectVersionsOutput, bool) bool, opts ...request.Option) error {
3797 p := request.Pagination{
3798 NewRequest: func() (*request.Request, error) {
3799 var inCpy *ListObjectVersionsInput
3804 req, _ := c.ListObjectVersionsRequest(inCpy)
3806 req.ApplyOptions(opts...)
3812 for p.Next() && cont {
3813 cont = fn(p.Page().(*ListObjectVersionsOutput), !p.HasNextPage())
3818 const opListObjects = "ListObjects"
3820 // ListObjectsRequest generates a "aws/request.Request" representing the
3821 // client's request for the ListObjects operation. The "output" return
3822 // value can be used to capture response data after the request's "Send" method
3825 // See ListObjects for usage and error information.
3827 // Creating a request object using this method should be used when you want to inject
3828 // custom logic into the request's lifecycle using a custom handler, or if you want to
3829 // access properties on the request object before or after sending the request. If
3830 // you just want the service response, call the ListObjects method directly
3833 // Note: You must call the "Send" method on the returned request object in order
3834 // to execute the request.
3836 // // Example sending a request using the ListObjectsRequest method.
3837 // req, resp := client.ListObjectsRequest(params)
3839 // err := req.Send()
3840 // if err == nil { // resp is now filled
3841 // fmt.Println(resp)
3844 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjects
3845 func (c *S3) ListObjectsRequest(input *ListObjectsInput) (req *request.Request, output *ListObjectsOutput) {
3846 op := &request.Operation{
3847 Name: opListObjects,
3849 HTTPPath: "/{Bucket}",
3850 Paginator: &request.Paginator{
3851 InputTokens: []string{"Marker"},
3852 OutputTokens: []string{"NextMarker || Contents[-1].Key"},
3853 LimitToken: "MaxKeys",
3854 TruncationToken: "IsTruncated",
3859 input = &ListObjectsInput{}
3862 output = &ListObjectsOutput{}
3863 req = c.newRequest(op, input, output)
3867 // ListObjects API operation for Amazon Simple Storage Service.
3869 // Returns some or all (up to 1000) of the objects in a bucket. You can use
3870 // the request parameters as selection criteria to return a subset of the objects
3873 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3874 // with awserr.Error's Code and Message methods to get detailed information about
3877 // See the AWS API reference guide for Amazon Simple Storage Service's
3878 // API operation ListObjects for usage and error information.
3880 // Returned Error Codes:
3881 // * ErrCodeNoSuchBucket "NoSuchBucket"
3882 // The specified bucket does not exist.
3884 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjects
3885 func (c *S3) ListObjects(input *ListObjectsInput) (*ListObjectsOutput, error) {
3886 req, out := c.ListObjectsRequest(input)
3887 return out, req.Send()
3890 // ListObjectsWithContext is the same as ListObjects with the addition of
3891 // the ability to pass a context and additional request options.
3893 // See ListObjects for details on how to use this API operation.
3895 // The context must be non-nil and will be used for request cancellation. If
3896 // the context is nil a panic will occur. In the future the SDK may create
3897 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3898 // for more information on using Contexts.
3899 func (c *S3) ListObjectsWithContext(ctx aws.Context, input *ListObjectsInput, opts ...request.Option) (*ListObjectsOutput, error) {
3900 req, out := c.ListObjectsRequest(input)
3902 req.ApplyOptions(opts...)
3903 return out, req.Send()
3906 // ListObjectsPages iterates over the pages of a ListObjects operation,
3907 // calling the "fn" function with the response data for each page. To stop
3908 // iterating, return false from the fn function.
3910 // See ListObjects method for more information on how to use this operation.
3912 // Note: This operation can generate multiple requests to a service.
3914 // // Example iterating over at most 3 pages of a ListObjects operation.
3916 // err := client.ListObjectsPages(params,
3917 // func(page *ListObjectsOutput, lastPage bool) bool {
3919 // fmt.Println(page)
3920 // return pageNum <= 3
3923 func (c *S3) ListObjectsPages(input *ListObjectsInput, fn func(*ListObjectsOutput, bool) bool) error {
3924 return c.ListObjectsPagesWithContext(aws.BackgroundContext(), input, fn)
3927 // ListObjectsPagesWithContext same as ListObjectsPages except
3928 // it takes a Context and allows setting request options on the pages.
3930 // The context must be non-nil and will be used for request cancellation. If
3931 // the context is nil a panic will occur. In the future the SDK may create
3932 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
3933 // for more information on using Contexts.
3934 func (c *S3) ListObjectsPagesWithContext(ctx aws.Context, input *ListObjectsInput, fn func(*ListObjectsOutput, bool) bool, opts ...request.Option) error {
3935 p := request.Pagination{
3936 NewRequest: func() (*request.Request, error) {
3937 var inCpy *ListObjectsInput
3942 req, _ := c.ListObjectsRequest(inCpy)
3944 req.ApplyOptions(opts...)
3950 for p.Next() && cont {
3951 cont = fn(p.Page().(*ListObjectsOutput), !p.HasNextPage())
3956 const opListObjectsV2 = "ListObjectsV2"
3958 // ListObjectsV2Request generates a "aws/request.Request" representing the
3959 // client's request for the ListObjectsV2 operation. The "output" return
3960 // value can be used to capture response data after the request's "Send" method
3963 // See ListObjectsV2 for usage and error information.
3965 // Creating a request object using this method should be used when you want to inject
3966 // custom logic into the request's lifecycle using a custom handler, or if you want to
3967 // access properties on the request object before or after sending the request. If
3968 // you just want the service response, call the ListObjectsV2 method directly
3971 // Note: You must call the "Send" method on the returned request object in order
3972 // to execute the request.
3974 // // Example sending a request using the ListObjectsV2Request method.
3975 // req, resp := client.ListObjectsV2Request(params)
3977 // err := req.Send()
3978 // if err == nil { // resp is now filled
3979 // fmt.Println(resp)
3982 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsV2
3983 func (c *S3) ListObjectsV2Request(input *ListObjectsV2Input) (req *request.Request, output *ListObjectsV2Output) {
3984 op := &request.Operation{
3985 Name: opListObjectsV2,
3987 HTTPPath: "/{Bucket}?list-type=2",
3988 Paginator: &request.Paginator{
3989 InputTokens: []string{"ContinuationToken"},
3990 OutputTokens: []string{"NextContinuationToken"},
3991 LimitToken: "MaxKeys",
3992 TruncationToken: "",
3997 input = &ListObjectsV2Input{}
4000 output = &ListObjectsV2Output{}
4001 req = c.newRequest(op, input, output)
4005 // ListObjectsV2 API operation for Amazon Simple Storage Service.
4007 // Returns some or all (up to 1000) of the objects in a bucket. You can use
4008 // the request parameters as selection criteria to return a subset of the objects
4009 // in a bucket. Note: ListObjectsV2 is the revised List Objects API and we recommend
4010 // you use this revised API for new application development.
4012 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4013 // with awserr.Error's Code and Message methods to get detailed information about
4016 // See the AWS API reference guide for Amazon Simple Storage Service's
4017 // API operation ListObjectsV2 for usage and error information.
4019 // Returned Error Codes:
4020 // * ErrCodeNoSuchBucket "NoSuchBucket"
4021 // The specified bucket does not exist.
4023 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsV2
4024 func (c *S3) ListObjectsV2(input *ListObjectsV2Input) (*ListObjectsV2Output, error) {
4025 req, out := c.ListObjectsV2Request(input)
4026 return out, req.Send()
4029 // ListObjectsV2WithContext is the same as ListObjectsV2 with the addition of
4030 // the ability to pass a context and additional request options.
4032 // See ListObjectsV2 for details on how to use this API operation.
4034 // The context must be non-nil and will be used for request cancellation. If
4035 // the context is nil a panic will occur. In the future the SDK may create
4036 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
4037 // for more information on using Contexts.
4038 func (c *S3) ListObjectsV2WithContext(ctx aws.Context, input *ListObjectsV2Input, opts ...request.Option) (*ListObjectsV2Output, error) {
4039 req, out := c.ListObjectsV2Request(input)
4041 req.ApplyOptions(opts...)
4042 return out, req.Send()
4045 // ListObjectsV2Pages iterates over the pages of a ListObjectsV2 operation,
4046 // calling the "fn" function with the response data for each page. To stop
4047 // iterating, return false from the fn function.
4049 // See ListObjectsV2 method for more information on how to use this operation.
4051 // Note: This operation can generate multiple requests to a service.
4053 // // Example iterating over at most 3 pages of a ListObjectsV2 operation.
4055 // err := client.ListObjectsV2Pages(params,
4056 // func(page *ListObjectsV2Output, lastPage bool) bool {
4058 // fmt.Println(page)
4059 // return pageNum <= 3
4062 func (c *S3) ListObjectsV2Pages(input *ListObjectsV2Input, fn func(*ListObjectsV2Output, bool) bool) error {
4063 return c.ListObjectsV2PagesWithContext(aws.BackgroundContext(), input, fn)
4066 // ListObjectsV2PagesWithContext same as ListObjectsV2Pages except
4067 // it takes a Context and allows setting request options on the pages.
4069 // The context must be non-nil and will be used for request cancellation. If
4070 // the context is nil a panic will occur. In the future the SDK may create
4071 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
4072 // for more information on using Contexts.
4073 func (c *S3) ListObjectsV2PagesWithContext(ctx aws.Context, input *ListObjectsV2Input, fn func(*ListObjectsV2Output, bool) bool, opts ...request.Option) error {
4074 p := request.Pagination{
4075 NewRequest: func() (*request.Request, error) {
4076 var inCpy *ListObjectsV2Input
4081 req, _ := c.ListObjectsV2Request(inCpy)
4083 req.ApplyOptions(opts...)
4089 for p.Next() && cont {
4090 cont = fn(p.Page().(*ListObjectsV2Output), !p.HasNextPage())
4095 const opListParts = "ListParts"
4097 // ListPartsRequest generates a "aws/request.Request" representing the
4098 // client's request for the ListParts operation. The "output" return
4099 // value can be used to capture response data after the request's "Send" method
4102 // See ListParts for usage and error information.
4104 // Creating a request object using this method should be used when you want to inject
4105 // custom logic into the request's lifecycle using a custom handler, or if you want to
4106 // access properties on the request object before or after sending the request. If
4107 // you just want the service response, call the ListParts method directly
4110 // Note: You must call the "Send" method on the returned request object in order
4111 // to execute the request.
4113 // // Example sending a request using the ListPartsRequest method.
4114 // req, resp := client.ListPartsRequest(params)
4116 // err := req.Send()
4117 // if err == nil { // resp is now filled
4118 // fmt.Println(resp)
4121 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListParts
4122 func (c *S3) ListPartsRequest(input *ListPartsInput) (req *request.Request, output *ListPartsOutput) {
4123 op := &request.Operation{
4126 HTTPPath: "/{Bucket}/{Key+}",
4127 Paginator: &request.Paginator{
4128 InputTokens: []string{"PartNumberMarker"},
4129 OutputTokens: []string{"NextPartNumberMarker"},
4130 LimitToken: "MaxParts",
4131 TruncationToken: "IsTruncated",
4136 input = &ListPartsInput{}
4139 output = &ListPartsOutput{}
4140 req = c.newRequest(op, input, output)
4144 // ListParts API operation for Amazon Simple Storage Service.
4146 // Lists the parts that have been uploaded for a specific multipart upload.
4148 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4149 // with awserr.Error's Code and Message methods to get detailed information about
4152 // See the AWS API reference guide for Amazon Simple Storage Service's
4153 // API operation ListParts for usage and error information.
4154 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListParts
4155 func (c *S3) ListParts(input *ListPartsInput) (*ListPartsOutput, error) {
4156 req, out := c.ListPartsRequest(input)
4157 return out, req.Send()
4160 // ListPartsWithContext is the same as ListParts with the addition of
4161 // the ability to pass a context and additional request options.
4163 // See ListParts for details on how to use this API operation.
4165 // The context must be non-nil and will be used for request cancellation. If
4166 // the context is nil a panic will occur. In the future the SDK may create
4167 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
4168 // for more information on using Contexts.
4169 func (c *S3) ListPartsWithContext(ctx aws.Context, input *ListPartsInput, opts ...request.Option) (*ListPartsOutput, error) {
4170 req, out := c.ListPartsRequest(input)
4172 req.ApplyOptions(opts...)
4173 return out, req.Send()
4176 // ListPartsPages iterates over the pages of a ListParts operation,
4177 // calling the "fn" function with the response data for each page. To stop
4178 // iterating, return false from the fn function.
4180 // See ListParts method for more information on how to use this operation.
4182 // Note: This operation can generate multiple requests to a service.
4184 // // Example iterating over at most 3 pages of a ListParts operation.
4186 // err := client.ListPartsPages(params,
4187 // func(page *ListPartsOutput, lastPage bool) bool {
4189 // fmt.Println(page)
4190 // return pageNum <= 3
4193 func (c *S3) ListPartsPages(input *ListPartsInput, fn func(*ListPartsOutput, bool) bool) error {
4194 return c.ListPartsPagesWithContext(aws.BackgroundContext(), input, fn)
4197 // ListPartsPagesWithContext same as ListPartsPages except
4198 // it takes a Context and allows setting request options on the pages.
4200 // The context must be non-nil and will be used for request cancellation. If
4201 // the context is nil a panic will occur. In the future the SDK may create
4202 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
4203 // for more information on using Contexts.
4204 func (c *S3) ListPartsPagesWithContext(ctx aws.Context, input *ListPartsInput, fn func(*ListPartsOutput, bool) bool, opts ...request.Option) error {
4205 p := request.Pagination{
4206 NewRequest: func() (*request.Request, error) {
4207 var inCpy *ListPartsInput
4212 req, _ := c.ListPartsRequest(inCpy)
4214 req.ApplyOptions(opts...)
4220 for p.Next() && cont {
4221 cont = fn(p.Page().(*ListPartsOutput), !p.HasNextPage())
4226 const opPutBucketAccelerateConfiguration = "PutBucketAccelerateConfiguration"
4228 // PutBucketAccelerateConfigurationRequest generates a "aws/request.Request" representing the
4229 // client's request for the PutBucketAccelerateConfiguration operation. The "output" return
4230 // value can be used to capture response data after the request's "Send" method
4233 // See PutBucketAccelerateConfiguration for usage and error information.
4235 // Creating a request object using this method should be used when you want to inject
4236 // custom logic into the request's lifecycle using a custom handler, or if you want to
4237 // access properties on the request object before or after sending the request. If
4238 // you just want the service response, call the PutBucketAccelerateConfiguration method directly
4241 // Note: You must call the "Send" method on the returned request object in order
4242 // to execute the request.
4244 // // Example sending a request using the PutBucketAccelerateConfigurationRequest method.
4245 // req, resp := client.PutBucketAccelerateConfigurationRequest(params)
4247 // err := req.Send()
4248 // if err == nil { // resp is now filled
4249 // fmt.Println(resp)
4252 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAccelerateConfiguration
4253 func (c *S3) PutBucketAccelerateConfigurationRequest(input *PutBucketAccelerateConfigurationInput) (req *request.Request, output *PutBucketAccelerateConfigurationOutput) {
4254 op := &request.Operation{
4255 Name: opPutBucketAccelerateConfiguration,
4257 HTTPPath: "/{Bucket}?accelerate",
4261 input = &PutBucketAccelerateConfigurationInput{}
4264 output = &PutBucketAccelerateConfigurationOutput{}
4265 req = c.newRequest(op, input, output)
4266 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
4267 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
4271 // PutBucketAccelerateConfiguration API operation for Amazon Simple Storage Service.
4273 // Sets the accelerate configuration of an existing bucket.
4275 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4276 // with awserr.Error's Code and Message methods to get detailed information about
4279 // See the AWS API reference guide for Amazon Simple Storage Service's
4280 // API operation PutBucketAccelerateConfiguration for usage and error information.
4281 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAccelerateConfiguration
4282 func (c *S3) PutBucketAccelerateConfiguration(input *PutBucketAccelerateConfigurationInput) (*PutBucketAccelerateConfigurationOutput, error) {
4283 req, out := c.PutBucketAccelerateConfigurationRequest(input)
4284 return out, req.Send()
4287 // PutBucketAccelerateConfigurationWithContext is the same as PutBucketAccelerateConfiguration with the addition of
4288 // the ability to pass a context and additional request options.
4290 // See PutBucketAccelerateConfiguration for details on how to use this API operation.
4292 // The context must be non-nil and will be used for request cancellation. If
4293 // the context is nil a panic will occur. In the future the SDK may create
4294 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
4295 // for more information on using Contexts.
4296 func (c *S3) PutBucketAccelerateConfigurationWithContext(ctx aws.Context, input *PutBucketAccelerateConfigurationInput, opts ...request.Option) (*PutBucketAccelerateConfigurationOutput, error) {
4297 req, out := c.PutBucketAccelerateConfigurationRequest(input)
4299 req.ApplyOptions(opts...)
4300 return out, req.Send()
4303 const opPutBucketAcl = "PutBucketAcl"
4305 // PutBucketAclRequest generates a "aws/request.Request" representing the
4306 // client's request for the PutBucketAcl operation. The "output" return
4307 // value can be used to capture response data after the request's "Send" method
4310 // See PutBucketAcl for usage and error information.
4312 // Creating a request object using this method should be used when you want to inject
4313 // custom logic into the request's lifecycle using a custom handler, or if you want to
4314 // access properties on the request object before or after sending the request. If
4315 // you just want the service response, call the PutBucketAcl method directly
4318 // Note: You must call the "Send" method on the returned request object in order
4319 // to execute the request.
4321 // // Example sending a request using the PutBucketAclRequest method.
4322 // req, resp := client.PutBucketAclRequest(params)
4324 // err := req.Send()
4325 // if err == nil { // resp is now filled
4326 // fmt.Println(resp)
4329 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAcl
4330 func (c *S3) PutBucketAclRequest(input *PutBucketAclInput) (req *request.Request, output *PutBucketAclOutput) {
4331 op := &request.Operation{
4332 Name: opPutBucketAcl,
4334 HTTPPath: "/{Bucket}?acl",
4338 input = &PutBucketAclInput{}
4341 output = &PutBucketAclOutput{}
4342 req = c.newRequest(op, input, output)
4343 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
4344 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
4348 // PutBucketAcl API operation for Amazon Simple Storage Service.
4350 // Sets the permissions on a bucket using access control lists (ACL).
4352 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4353 // with awserr.Error's Code and Message methods to get detailed information about
4356 // See the AWS API reference guide for Amazon Simple Storage Service's
4357 // API operation PutBucketAcl for usage and error information.
4358 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAcl
4359 func (c *S3) PutBucketAcl(input *PutBucketAclInput) (*PutBucketAclOutput, error) {
4360 req, out := c.PutBucketAclRequest(input)
4361 return out, req.Send()
4364 // PutBucketAclWithContext is the same as PutBucketAcl with the addition of
4365 // the ability to pass a context and additional request options.
4367 // See PutBucketAcl for details on how to use this API operation.
4369 // The context must be non-nil and will be used for request cancellation. If
4370 // the context is nil a panic will occur. In the future the SDK may create
4371 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
4372 // for more information on using Contexts.
4373 func (c *S3) PutBucketAclWithContext(ctx aws.Context, input *PutBucketAclInput, opts ...request.Option) (*PutBucketAclOutput, error) {
4374 req, out := c.PutBucketAclRequest(input)
4376 req.ApplyOptions(opts...)
4377 return out, req.Send()
4380 const opPutBucketAnalyticsConfiguration = "PutBucketAnalyticsConfiguration"
4382 // PutBucketAnalyticsConfigurationRequest generates a "aws/request.Request" representing the
4383 // client's request for the PutBucketAnalyticsConfiguration operation. The "output" return
4384 // value can be used to capture response data after the request's "Send" method
4387 // See PutBucketAnalyticsConfiguration for usage and error information.
4389 // Creating a request object using this method should be used when you want to inject
4390 // custom logic into the request's lifecycle using a custom handler, or if you want to
4391 // access properties on the request object before or after sending the request. If
4392 // you just want the service response, call the PutBucketAnalyticsConfiguration method directly
4395 // Note: You must call the "Send" method on the returned request object in order
4396 // to execute the request.
4398 // // Example sending a request using the PutBucketAnalyticsConfigurationRequest method.
4399 // req, resp := client.PutBucketAnalyticsConfigurationRequest(params)
4401 // err := req.Send()
4402 // if err == nil { // resp is now filled
4403 // fmt.Println(resp)
4406 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAnalyticsConfiguration
4407 func (c *S3) PutBucketAnalyticsConfigurationRequest(input *PutBucketAnalyticsConfigurationInput) (req *request.Request, output *PutBucketAnalyticsConfigurationOutput) {
4408 op := &request.Operation{
4409 Name: opPutBucketAnalyticsConfiguration,
4411 HTTPPath: "/{Bucket}?analytics",
4415 input = &PutBucketAnalyticsConfigurationInput{}
4418 output = &PutBucketAnalyticsConfigurationOutput{}
4419 req = c.newRequest(op, input, output)
4420 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
4421 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
4425 // PutBucketAnalyticsConfiguration API operation for Amazon Simple Storage Service.
4427 // Sets an analytics configuration for the bucket (specified by the analytics
4428 // configuration ID).
4430 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4431 // with awserr.Error's Code and Message methods to get detailed information about
4434 // See the AWS API reference guide for Amazon Simple Storage Service's
4435 // API operation PutBucketAnalyticsConfiguration for usage and error information.
4436 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAnalyticsConfiguration
4437 func (c *S3) PutBucketAnalyticsConfiguration(input *PutBucketAnalyticsConfigurationInput) (*PutBucketAnalyticsConfigurationOutput, error) {
4438 req, out := c.PutBucketAnalyticsConfigurationRequest(input)
4439 return out, req.Send()
4442 // PutBucketAnalyticsConfigurationWithContext is the same as PutBucketAnalyticsConfiguration with the addition of
4443 // the ability to pass a context and additional request options.
4445 // See PutBucketAnalyticsConfiguration for details on how to use this API operation.
4447 // The context must be non-nil and will be used for request cancellation. If
4448 // the context is nil a panic will occur. In the future the SDK may create
4449 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
4450 // for more information on using Contexts.
4451 func (c *S3) PutBucketAnalyticsConfigurationWithContext(ctx aws.Context, input *PutBucketAnalyticsConfigurationInput, opts ...request.Option) (*PutBucketAnalyticsConfigurationOutput, error) {
4452 req, out := c.PutBucketAnalyticsConfigurationRequest(input)
4454 req.ApplyOptions(opts...)
4455 return out, req.Send()
4458 const opPutBucketCors = "PutBucketCors"
4460 // PutBucketCorsRequest generates a "aws/request.Request" representing the
4461 // client's request for the PutBucketCors operation. The "output" return
4462 // value can be used to capture response data after the request's "Send" method
4465 // See PutBucketCors for usage and error information.
4467 // Creating a request object using this method should be used when you want to inject
4468 // custom logic into the request's lifecycle using a custom handler, or if you want to
4469 // access properties on the request object before or after sending the request. If
4470 // you just want the service response, call the PutBucketCors method directly
4473 // Note: You must call the "Send" method on the returned request object in order
4474 // to execute the request.
4476 // // Example sending a request using the PutBucketCorsRequest method.
4477 // req, resp := client.PutBucketCorsRequest(params)
4479 // err := req.Send()
4480 // if err == nil { // resp is now filled
4481 // fmt.Println(resp)
4484 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketCors
4485 func (c *S3) PutBucketCorsRequest(input *PutBucketCorsInput) (req *request.Request, output *PutBucketCorsOutput) {
4486 op := &request.Operation{
4487 Name: opPutBucketCors,
4489 HTTPPath: "/{Bucket}?cors",
4493 input = &PutBucketCorsInput{}
4496 output = &PutBucketCorsOutput{}
4497 req = c.newRequest(op, input, output)
4498 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
4499 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
4503 // PutBucketCors API operation for Amazon Simple Storage Service.
4505 // Sets the cors configuration for a bucket.
4507 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4508 // with awserr.Error's Code and Message methods to get detailed information about
4511 // See the AWS API reference guide for Amazon Simple Storage Service's
4512 // API operation PutBucketCors for usage and error information.
4513 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketCors
4514 func (c *S3) PutBucketCors(input *PutBucketCorsInput) (*PutBucketCorsOutput, error) {
4515 req, out := c.PutBucketCorsRequest(input)
4516 return out, req.Send()
4519 // PutBucketCorsWithContext is the same as PutBucketCors with the addition of
4520 // the ability to pass a context and additional request options.
4522 // See PutBucketCors for details on how to use this API operation.
4524 // The context must be non-nil and will be used for request cancellation. If
4525 // the context is nil a panic will occur. In the future the SDK may create
4526 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
4527 // for more information on using Contexts.
4528 func (c *S3) PutBucketCorsWithContext(ctx aws.Context, input *PutBucketCorsInput, opts ...request.Option) (*PutBucketCorsOutput, error) {
4529 req, out := c.PutBucketCorsRequest(input)
4531 req.ApplyOptions(opts...)
4532 return out, req.Send()
4535 const opPutBucketInventoryConfiguration = "PutBucketInventoryConfiguration"
4537 // PutBucketInventoryConfigurationRequest generates a "aws/request.Request" representing the
4538 // client's request for the PutBucketInventoryConfiguration operation. The "output" return
4539 // value can be used to capture response data after the request's "Send" method
4542 // See PutBucketInventoryConfiguration for usage and error information.
4544 // Creating a request object using this method should be used when you want to inject
4545 // custom logic into the request's lifecycle using a custom handler, or if you want to
4546 // access properties on the request object before or after sending the request. If
4547 // you just want the service response, call the PutBucketInventoryConfiguration method directly
4550 // Note: You must call the "Send" method on the returned request object in order
4551 // to execute the request.
4553 // // Example sending a request using the PutBucketInventoryConfigurationRequest method.
4554 // req, resp := client.PutBucketInventoryConfigurationRequest(params)
4556 // err := req.Send()
4557 // if err == nil { // resp is now filled
4558 // fmt.Println(resp)
4561 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketInventoryConfiguration
4562 func (c *S3) PutBucketInventoryConfigurationRequest(input *PutBucketInventoryConfigurationInput) (req *request.Request, output *PutBucketInventoryConfigurationOutput) {
4563 op := &request.Operation{
4564 Name: opPutBucketInventoryConfiguration,
4566 HTTPPath: "/{Bucket}?inventory",
4570 input = &PutBucketInventoryConfigurationInput{}
4573 output = &PutBucketInventoryConfigurationOutput{}
4574 req = c.newRequest(op, input, output)
4575 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
4576 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
4580 // PutBucketInventoryConfiguration API operation for Amazon Simple Storage Service.
4582 // Adds an inventory configuration (identified by the inventory ID) from the
4585 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4586 // with awserr.Error's Code and Message methods to get detailed information about
4589 // See the AWS API reference guide for Amazon Simple Storage Service's
4590 // API operation PutBucketInventoryConfiguration for usage and error information.
4591 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketInventoryConfiguration
4592 func (c *S3) PutBucketInventoryConfiguration(input *PutBucketInventoryConfigurationInput) (*PutBucketInventoryConfigurationOutput, error) {
4593 req, out := c.PutBucketInventoryConfigurationRequest(input)
4594 return out, req.Send()
4597 // PutBucketInventoryConfigurationWithContext is the same as PutBucketInventoryConfiguration with the addition of
4598 // the ability to pass a context and additional request options.
4600 // See PutBucketInventoryConfiguration for details on how to use this API operation.
4602 // The context must be non-nil and will be used for request cancellation. If
4603 // the context is nil a panic will occur. In the future the SDK may create
4604 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
4605 // for more information on using Contexts.
4606 func (c *S3) PutBucketInventoryConfigurationWithContext(ctx aws.Context, input *PutBucketInventoryConfigurationInput, opts ...request.Option) (*PutBucketInventoryConfigurationOutput, error) {
4607 req, out := c.PutBucketInventoryConfigurationRequest(input)
4609 req.ApplyOptions(opts...)
4610 return out, req.Send()
4613 const opPutBucketLifecycle = "PutBucketLifecycle"
4615 // PutBucketLifecycleRequest generates a "aws/request.Request" representing the
4616 // client's request for the PutBucketLifecycle operation. The "output" return
4617 // value can be used to capture response data after the request's "Send" method
4620 // See PutBucketLifecycle for usage and error information.
4622 // Creating a request object using this method should be used when you want to inject
4623 // custom logic into the request's lifecycle using a custom handler, or if you want to
4624 // access properties on the request object before or after sending the request. If
4625 // you just want the service response, call the PutBucketLifecycle method directly
4628 // Note: You must call the "Send" method on the returned request object in order
4629 // to execute the request.
4631 // // Example sending a request using the PutBucketLifecycleRequest method.
4632 // req, resp := client.PutBucketLifecycleRequest(params)
4634 // err := req.Send()
4635 // if err == nil { // resp is now filled
4636 // fmt.Println(resp)
4639 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycle
4640 func (c *S3) PutBucketLifecycleRequest(input *PutBucketLifecycleInput) (req *request.Request, output *PutBucketLifecycleOutput) {
4641 if c.Client.Config.Logger != nil {
4642 c.Client.Config.Logger.Log("This operation, PutBucketLifecycle, has been deprecated")
4644 op := &request.Operation{
4645 Name: opPutBucketLifecycle,
4647 HTTPPath: "/{Bucket}?lifecycle",
4651 input = &PutBucketLifecycleInput{}
4654 output = &PutBucketLifecycleOutput{}
4655 req = c.newRequest(op, input, output)
4656 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
4657 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
4661 // PutBucketLifecycle API operation for Amazon Simple Storage Service.
4663 // Deprecated, see the PutBucketLifecycleConfiguration operation.
4665 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4666 // with awserr.Error's Code and Message methods to get detailed information about
4669 // See the AWS API reference guide for Amazon Simple Storage Service's
4670 // API operation PutBucketLifecycle for usage and error information.
4671 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycle
4672 func (c *S3) PutBucketLifecycle(input *PutBucketLifecycleInput) (*PutBucketLifecycleOutput, error) {
4673 req, out := c.PutBucketLifecycleRequest(input)
4674 return out, req.Send()
4677 // PutBucketLifecycleWithContext is the same as PutBucketLifecycle with the addition of
4678 // the ability to pass a context and additional request options.
4680 // See PutBucketLifecycle for details on how to use this API operation.
4682 // The context must be non-nil and will be used for request cancellation. If
4683 // the context is nil a panic will occur. In the future the SDK may create
4684 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
4685 // for more information on using Contexts.
4686 func (c *S3) PutBucketLifecycleWithContext(ctx aws.Context, input *PutBucketLifecycleInput, opts ...request.Option) (*PutBucketLifecycleOutput, error) {
4687 req, out := c.PutBucketLifecycleRequest(input)
4689 req.ApplyOptions(opts...)
4690 return out, req.Send()
4693 const opPutBucketLifecycleConfiguration = "PutBucketLifecycleConfiguration"
4695 // PutBucketLifecycleConfigurationRequest generates a "aws/request.Request" representing the
4696 // client's request for the PutBucketLifecycleConfiguration operation. The "output" return
4697 // value can be used to capture response data after the request's "Send" method
4700 // See PutBucketLifecycleConfiguration for usage and error information.
4702 // Creating a request object using this method should be used when you want to inject
4703 // custom logic into the request's lifecycle using a custom handler, or if you want to
4704 // access properties on the request object before or after sending the request. If
4705 // you just want the service response, call the PutBucketLifecycleConfiguration method directly
4708 // Note: You must call the "Send" method on the returned request object in order
4709 // to execute the request.
4711 // // Example sending a request using the PutBucketLifecycleConfigurationRequest method.
4712 // req, resp := client.PutBucketLifecycleConfigurationRequest(params)
4714 // err := req.Send()
4715 // if err == nil { // resp is now filled
4716 // fmt.Println(resp)
4719 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleConfiguration
4720 func (c *S3) PutBucketLifecycleConfigurationRequest(input *PutBucketLifecycleConfigurationInput) (req *request.Request, output *PutBucketLifecycleConfigurationOutput) {
4721 op := &request.Operation{
4722 Name: opPutBucketLifecycleConfiguration,
4724 HTTPPath: "/{Bucket}?lifecycle",
4728 input = &PutBucketLifecycleConfigurationInput{}
4731 output = &PutBucketLifecycleConfigurationOutput{}
4732 req = c.newRequest(op, input, output)
4733 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
4734 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
4738 // PutBucketLifecycleConfiguration API operation for Amazon Simple Storage Service.
4740 // Sets lifecycle configuration for your bucket. If a lifecycle configuration
4741 // exists, it replaces it.
4743 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4744 // with awserr.Error's Code and Message methods to get detailed information about
4747 // See the AWS API reference guide for Amazon Simple Storage Service's
4748 // API operation PutBucketLifecycleConfiguration for usage and error information.
4749 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleConfiguration
4750 func (c *S3) PutBucketLifecycleConfiguration(input *PutBucketLifecycleConfigurationInput) (*PutBucketLifecycleConfigurationOutput, error) {
4751 req, out := c.PutBucketLifecycleConfigurationRequest(input)
4752 return out, req.Send()
4755 // PutBucketLifecycleConfigurationWithContext is the same as PutBucketLifecycleConfiguration with the addition of
4756 // the ability to pass a context and additional request options.
4758 // See PutBucketLifecycleConfiguration for details on how to use this API operation.
4760 // The context must be non-nil and will be used for request cancellation. If
4761 // the context is nil a panic will occur. In the future the SDK may create
4762 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
4763 // for more information on using Contexts.
4764 func (c *S3) PutBucketLifecycleConfigurationWithContext(ctx aws.Context, input *PutBucketLifecycleConfigurationInput, opts ...request.Option) (*PutBucketLifecycleConfigurationOutput, error) {
4765 req, out := c.PutBucketLifecycleConfigurationRequest(input)
4767 req.ApplyOptions(opts...)
4768 return out, req.Send()
4771 const opPutBucketLogging = "PutBucketLogging"
4773 // PutBucketLoggingRequest generates a "aws/request.Request" representing the
4774 // client's request for the PutBucketLogging operation. The "output" return
4775 // value can be used to capture response data after the request's "Send" method
4778 // See PutBucketLogging for usage and error information.
4780 // Creating a request object using this method should be used when you want to inject
4781 // custom logic into the request's lifecycle using a custom handler, or if you want to
4782 // access properties on the request object before or after sending the request. If
4783 // you just want the service response, call the PutBucketLogging method directly
4786 // Note: You must call the "Send" method on the returned request object in order
4787 // to execute the request.
4789 // // Example sending a request using the PutBucketLoggingRequest method.
4790 // req, resp := client.PutBucketLoggingRequest(params)
4792 // err := req.Send()
4793 // if err == nil { // resp is now filled
4794 // fmt.Println(resp)
4797 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLogging
4798 func (c *S3) PutBucketLoggingRequest(input *PutBucketLoggingInput) (req *request.Request, output *PutBucketLoggingOutput) {
4799 op := &request.Operation{
4800 Name: opPutBucketLogging,
4802 HTTPPath: "/{Bucket}?logging",
4806 input = &PutBucketLoggingInput{}
4809 output = &PutBucketLoggingOutput{}
4810 req = c.newRequest(op, input, output)
4811 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
4812 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
4816 // PutBucketLogging API operation for Amazon Simple Storage Service.
4818 // Set the logging parameters for a bucket and to specify permissions for who
4819 // can view and modify the logging parameters. To set the logging status of
4820 // a bucket, you must be the bucket owner.
4822 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4823 // with awserr.Error's Code and Message methods to get detailed information about
4826 // See the AWS API reference guide for Amazon Simple Storage Service's
4827 // API operation PutBucketLogging for usage and error information.
4828 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLogging
4829 func (c *S3) PutBucketLogging(input *PutBucketLoggingInput) (*PutBucketLoggingOutput, error) {
4830 req, out := c.PutBucketLoggingRequest(input)
4831 return out, req.Send()
4834 // PutBucketLoggingWithContext is the same as PutBucketLogging with the addition of
4835 // the ability to pass a context and additional request options.
4837 // See PutBucketLogging for details on how to use this API operation.
4839 // The context must be non-nil and will be used for request cancellation. If
4840 // the context is nil a panic will occur. In the future the SDK may create
4841 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
4842 // for more information on using Contexts.
4843 func (c *S3) PutBucketLoggingWithContext(ctx aws.Context, input *PutBucketLoggingInput, opts ...request.Option) (*PutBucketLoggingOutput, error) {
4844 req, out := c.PutBucketLoggingRequest(input)
4846 req.ApplyOptions(opts...)
4847 return out, req.Send()
4850 const opPutBucketMetricsConfiguration = "PutBucketMetricsConfiguration"
4852 // PutBucketMetricsConfigurationRequest generates a "aws/request.Request" representing the
4853 // client's request for the PutBucketMetricsConfiguration operation. The "output" return
4854 // value can be used to capture response data after the request's "Send" method
4857 // See PutBucketMetricsConfiguration for usage and error information.
4859 // Creating a request object using this method should be used when you want to inject
4860 // custom logic into the request's lifecycle using a custom handler, or if you want to
4861 // access properties on the request object before or after sending the request. If
4862 // you just want the service response, call the PutBucketMetricsConfiguration method directly
4865 // Note: You must call the "Send" method on the returned request object in order
4866 // to execute the request.
4868 // // Example sending a request using the PutBucketMetricsConfigurationRequest method.
4869 // req, resp := client.PutBucketMetricsConfigurationRequest(params)
4871 // err := req.Send()
4872 // if err == nil { // resp is now filled
4873 // fmt.Println(resp)
4876 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketMetricsConfiguration
4877 func (c *S3) PutBucketMetricsConfigurationRequest(input *PutBucketMetricsConfigurationInput) (req *request.Request, output *PutBucketMetricsConfigurationOutput) {
4878 op := &request.Operation{
4879 Name: opPutBucketMetricsConfiguration,
4881 HTTPPath: "/{Bucket}?metrics",
4885 input = &PutBucketMetricsConfigurationInput{}
4888 output = &PutBucketMetricsConfigurationOutput{}
4889 req = c.newRequest(op, input, output)
4890 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
4891 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
4895 // PutBucketMetricsConfiguration API operation for Amazon Simple Storage Service.
4897 // Sets a metrics configuration (specified by the metrics configuration ID)
4900 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4901 // with awserr.Error's Code and Message methods to get detailed information about
4904 // See the AWS API reference guide for Amazon Simple Storage Service's
4905 // API operation PutBucketMetricsConfiguration for usage and error information.
4906 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketMetricsConfiguration
4907 func (c *S3) PutBucketMetricsConfiguration(input *PutBucketMetricsConfigurationInput) (*PutBucketMetricsConfigurationOutput, error) {
4908 req, out := c.PutBucketMetricsConfigurationRequest(input)
4909 return out, req.Send()
4912 // PutBucketMetricsConfigurationWithContext is the same as PutBucketMetricsConfiguration with the addition of
4913 // the ability to pass a context and additional request options.
4915 // See PutBucketMetricsConfiguration for details on how to use this API operation.
4917 // The context must be non-nil and will be used for request cancellation. If
4918 // the context is nil a panic will occur. In the future the SDK may create
4919 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
4920 // for more information on using Contexts.
4921 func (c *S3) PutBucketMetricsConfigurationWithContext(ctx aws.Context, input *PutBucketMetricsConfigurationInput, opts ...request.Option) (*PutBucketMetricsConfigurationOutput, error) {
4922 req, out := c.PutBucketMetricsConfigurationRequest(input)
4924 req.ApplyOptions(opts...)
4925 return out, req.Send()
4928 const opPutBucketNotification = "PutBucketNotification"
4930 // PutBucketNotificationRequest generates a "aws/request.Request" representing the
4931 // client's request for the PutBucketNotification operation. The "output" return
4932 // value can be used to capture response data after the request's "Send" method
4935 // See PutBucketNotification for usage and error information.
4937 // Creating a request object using this method should be used when you want to inject
4938 // custom logic into the request's lifecycle using a custom handler, or if you want to
4939 // access properties on the request object before or after sending the request. If
4940 // you just want the service response, call the PutBucketNotification method directly
4943 // Note: You must call the "Send" method on the returned request object in order
4944 // to execute the request.
4946 // // Example sending a request using the PutBucketNotificationRequest method.
4947 // req, resp := client.PutBucketNotificationRequest(params)
4949 // err := req.Send()
4950 // if err == nil { // resp is now filled
4951 // fmt.Println(resp)
4954 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotification
4955 func (c *S3) PutBucketNotificationRequest(input *PutBucketNotificationInput) (req *request.Request, output *PutBucketNotificationOutput) {
4956 if c.Client.Config.Logger != nil {
4957 c.Client.Config.Logger.Log("This operation, PutBucketNotification, has been deprecated")
4959 op := &request.Operation{
4960 Name: opPutBucketNotification,
4962 HTTPPath: "/{Bucket}?notification",
4966 input = &PutBucketNotificationInput{}
4969 output = &PutBucketNotificationOutput{}
4970 req = c.newRequest(op, input, output)
4971 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
4972 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
4976 // PutBucketNotification API operation for Amazon Simple Storage Service.
4978 // Deprecated, see the PutBucketNotificationConfiguraiton operation.
4980 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4981 // with awserr.Error's Code and Message methods to get detailed information about
4984 // See the AWS API reference guide for Amazon Simple Storage Service's
4985 // API operation PutBucketNotification for usage and error information.
4986 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotification
4987 func (c *S3) PutBucketNotification(input *PutBucketNotificationInput) (*PutBucketNotificationOutput, error) {
4988 req, out := c.PutBucketNotificationRequest(input)
4989 return out, req.Send()
4992 // PutBucketNotificationWithContext is the same as PutBucketNotification with the addition of
4993 // the ability to pass a context and additional request options.
4995 // See PutBucketNotification for details on how to use this API operation.
4997 // The context must be non-nil and will be used for request cancellation. If
4998 // the context is nil a panic will occur. In the future the SDK may create
4999 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
5000 // for more information on using Contexts.
5001 func (c *S3) PutBucketNotificationWithContext(ctx aws.Context, input *PutBucketNotificationInput, opts ...request.Option) (*PutBucketNotificationOutput, error) {
5002 req, out := c.PutBucketNotificationRequest(input)
5004 req.ApplyOptions(opts...)
5005 return out, req.Send()
5008 const opPutBucketNotificationConfiguration = "PutBucketNotificationConfiguration"
5010 // PutBucketNotificationConfigurationRequest generates a "aws/request.Request" representing the
5011 // client's request for the PutBucketNotificationConfiguration operation. The "output" return
5012 // value can be used to capture response data after the request's "Send" method
5015 // See PutBucketNotificationConfiguration for usage and error information.
5017 // Creating a request object using this method should be used when you want to inject
5018 // custom logic into the request's lifecycle using a custom handler, or if you want to
5019 // access properties on the request object before or after sending the request. If
5020 // you just want the service response, call the PutBucketNotificationConfiguration method directly
5023 // Note: You must call the "Send" method on the returned request object in order
5024 // to execute the request.
5026 // // Example sending a request using the PutBucketNotificationConfigurationRequest method.
5027 // req, resp := client.PutBucketNotificationConfigurationRequest(params)
5029 // err := req.Send()
5030 // if err == nil { // resp is now filled
5031 // fmt.Println(resp)
5034 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationConfiguration
5035 func (c *S3) PutBucketNotificationConfigurationRequest(input *PutBucketNotificationConfigurationInput) (req *request.Request, output *PutBucketNotificationConfigurationOutput) {
5036 op := &request.Operation{
5037 Name: opPutBucketNotificationConfiguration,
5039 HTTPPath: "/{Bucket}?notification",
5043 input = &PutBucketNotificationConfigurationInput{}
5046 output = &PutBucketNotificationConfigurationOutput{}
5047 req = c.newRequest(op, input, output)
5048 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
5049 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
5053 // PutBucketNotificationConfiguration API operation for Amazon Simple Storage Service.
5055 // Enables notifications of specified events for a bucket.
5057 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5058 // with awserr.Error's Code and Message methods to get detailed information about
5061 // See the AWS API reference guide for Amazon Simple Storage Service's
5062 // API operation PutBucketNotificationConfiguration for usage and error information.
5063 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationConfiguration
5064 func (c *S3) PutBucketNotificationConfiguration(input *PutBucketNotificationConfigurationInput) (*PutBucketNotificationConfigurationOutput, error) {
5065 req, out := c.PutBucketNotificationConfigurationRequest(input)
5066 return out, req.Send()
5069 // PutBucketNotificationConfigurationWithContext is the same as PutBucketNotificationConfiguration with the addition of
5070 // the ability to pass a context and additional request options.
5072 // See PutBucketNotificationConfiguration for details on how to use this API operation.
5074 // The context must be non-nil and will be used for request cancellation. If
5075 // the context is nil a panic will occur. In the future the SDK may create
5076 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
5077 // for more information on using Contexts.
5078 func (c *S3) PutBucketNotificationConfigurationWithContext(ctx aws.Context, input *PutBucketNotificationConfigurationInput, opts ...request.Option) (*PutBucketNotificationConfigurationOutput, error) {
5079 req, out := c.PutBucketNotificationConfigurationRequest(input)
5081 req.ApplyOptions(opts...)
5082 return out, req.Send()
5085 const opPutBucketPolicy = "PutBucketPolicy"
5087 // PutBucketPolicyRequest generates a "aws/request.Request" representing the
5088 // client's request for the PutBucketPolicy operation. The "output" return
5089 // value can be used to capture response data after the request's "Send" method
5092 // See PutBucketPolicy for usage and error information.
5094 // Creating a request object using this method should be used when you want to inject
5095 // custom logic into the request's lifecycle using a custom handler, or if you want to
5096 // access properties on the request object before or after sending the request. If
5097 // you just want the service response, call the PutBucketPolicy method directly
5100 // Note: You must call the "Send" method on the returned request object in order
5101 // to execute the request.
5103 // // Example sending a request using the PutBucketPolicyRequest method.
5104 // req, resp := client.PutBucketPolicyRequest(params)
5106 // err := req.Send()
5107 // if err == nil { // resp is now filled
5108 // fmt.Println(resp)
5111 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketPolicy
5112 func (c *S3) PutBucketPolicyRequest(input *PutBucketPolicyInput) (req *request.Request, output *PutBucketPolicyOutput) {
5113 op := &request.Operation{
5114 Name: opPutBucketPolicy,
5116 HTTPPath: "/{Bucket}?policy",
5120 input = &PutBucketPolicyInput{}
5123 output = &PutBucketPolicyOutput{}
5124 req = c.newRequest(op, input, output)
5125 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
5126 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
5130 // PutBucketPolicy API operation for Amazon Simple Storage Service.
5132 // Replaces a policy on a bucket. If the bucket already has a policy, the one
5133 // in this request completely replaces it.
5135 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5136 // with awserr.Error's Code and Message methods to get detailed information about
5139 // See the AWS API reference guide for Amazon Simple Storage Service's
5140 // API operation PutBucketPolicy for usage and error information.
5141 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketPolicy
5142 func (c *S3) PutBucketPolicy(input *PutBucketPolicyInput) (*PutBucketPolicyOutput, error) {
5143 req, out := c.PutBucketPolicyRequest(input)
5144 return out, req.Send()
5147 // PutBucketPolicyWithContext is the same as PutBucketPolicy with the addition of
5148 // the ability to pass a context and additional request options.
5150 // See PutBucketPolicy for details on how to use this API operation.
5152 // The context must be non-nil and will be used for request cancellation. If
5153 // the context is nil a panic will occur. In the future the SDK may create
5154 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
5155 // for more information on using Contexts.
5156 func (c *S3) PutBucketPolicyWithContext(ctx aws.Context, input *PutBucketPolicyInput, opts ...request.Option) (*PutBucketPolicyOutput, error) {
5157 req, out := c.PutBucketPolicyRequest(input)
5159 req.ApplyOptions(opts...)
5160 return out, req.Send()
5163 const opPutBucketReplication = "PutBucketReplication"
5165 // PutBucketReplicationRequest generates a "aws/request.Request" representing the
5166 // client's request for the PutBucketReplication operation. The "output" return
5167 // value can be used to capture response data after the request's "Send" method
5170 // See PutBucketReplication for usage and error information.
5172 // Creating a request object using this method should be used when you want to inject
5173 // custom logic into the request's lifecycle using a custom handler, or if you want to
5174 // access properties on the request object before or after sending the request. If
5175 // you just want the service response, call the PutBucketReplication method directly
5178 // Note: You must call the "Send" method on the returned request object in order
5179 // to execute the request.
5181 // // Example sending a request using the PutBucketReplicationRequest method.
5182 // req, resp := client.PutBucketReplicationRequest(params)
5184 // err := req.Send()
5185 // if err == nil { // resp is now filled
5186 // fmt.Println(resp)
5189 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketReplication
5190 func (c *S3) PutBucketReplicationRequest(input *PutBucketReplicationInput) (req *request.Request, output *PutBucketReplicationOutput) {
5191 op := &request.Operation{
5192 Name: opPutBucketReplication,
5194 HTTPPath: "/{Bucket}?replication",
5198 input = &PutBucketReplicationInput{}
5201 output = &PutBucketReplicationOutput{}
5202 req = c.newRequest(op, input, output)
5203 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
5204 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
5208 // PutBucketReplication API operation for Amazon Simple Storage Service.
5210 // Creates a new replication configuration (or replaces an existing one, if
5213 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5214 // with awserr.Error's Code and Message methods to get detailed information about
5217 // See the AWS API reference guide for Amazon Simple Storage Service's
5218 // API operation PutBucketReplication for usage and error information.
5219 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketReplication
5220 func (c *S3) PutBucketReplication(input *PutBucketReplicationInput) (*PutBucketReplicationOutput, error) {
5221 req, out := c.PutBucketReplicationRequest(input)
5222 return out, req.Send()
5225 // PutBucketReplicationWithContext is the same as PutBucketReplication with the addition of
5226 // the ability to pass a context and additional request options.
5228 // See PutBucketReplication for details on how to use this API operation.
5230 // The context must be non-nil and will be used for request cancellation. If
5231 // the context is nil a panic will occur. In the future the SDK may create
5232 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
5233 // for more information on using Contexts.
5234 func (c *S3) PutBucketReplicationWithContext(ctx aws.Context, input *PutBucketReplicationInput, opts ...request.Option) (*PutBucketReplicationOutput, error) {
5235 req, out := c.PutBucketReplicationRequest(input)
5237 req.ApplyOptions(opts...)
5238 return out, req.Send()
5241 const opPutBucketRequestPayment = "PutBucketRequestPayment"
5243 // PutBucketRequestPaymentRequest generates a "aws/request.Request" representing the
5244 // client's request for the PutBucketRequestPayment operation. The "output" return
5245 // value can be used to capture response data after the request's "Send" method
5248 // See PutBucketRequestPayment for usage and error information.
5250 // Creating a request object using this method should be used when you want to inject
5251 // custom logic into the request's lifecycle using a custom handler, or if you want to
5252 // access properties on the request object before or after sending the request. If
5253 // you just want the service response, call the PutBucketRequestPayment method directly
5256 // Note: You must call the "Send" method on the returned request object in order
5257 // to execute the request.
5259 // // Example sending a request using the PutBucketRequestPaymentRequest method.
5260 // req, resp := client.PutBucketRequestPaymentRequest(params)
5262 // err := req.Send()
5263 // if err == nil { // resp is now filled
5264 // fmt.Println(resp)
5267 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketRequestPayment
5268 func (c *S3) PutBucketRequestPaymentRequest(input *PutBucketRequestPaymentInput) (req *request.Request, output *PutBucketRequestPaymentOutput) {
5269 op := &request.Operation{
5270 Name: opPutBucketRequestPayment,
5272 HTTPPath: "/{Bucket}?requestPayment",
5276 input = &PutBucketRequestPaymentInput{}
5279 output = &PutBucketRequestPaymentOutput{}
5280 req = c.newRequest(op, input, output)
5281 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
5282 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
5286 // PutBucketRequestPayment API operation for Amazon Simple Storage Service.
5288 // Sets the request payment configuration for a bucket. By default, the bucket
5289 // owner pays for downloads from the bucket. This configuration parameter enables
5290 // the bucket owner (only) to specify that the person requesting the download
5291 // will be charged for the download. Documentation on requester pays buckets
5292 // can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html
5294 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5295 // with awserr.Error's Code and Message methods to get detailed information about
5298 // See the AWS API reference guide for Amazon Simple Storage Service's
5299 // API operation PutBucketRequestPayment for usage and error information.
5300 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketRequestPayment
5301 func (c *S3) PutBucketRequestPayment(input *PutBucketRequestPaymentInput) (*PutBucketRequestPaymentOutput, error) {
5302 req, out := c.PutBucketRequestPaymentRequest(input)
5303 return out, req.Send()
5306 // PutBucketRequestPaymentWithContext is the same as PutBucketRequestPayment with the addition of
5307 // the ability to pass a context and additional request options.
5309 // See PutBucketRequestPayment for details on how to use this API operation.
5311 // The context must be non-nil and will be used for request cancellation. If
5312 // the context is nil a panic will occur. In the future the SDK may create
5313 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
5314 // for more information on using Contexts.
5315 func (c *S3) PutBucketRequestPaymentWithContext(ctx aws.Context, input *PutBucketRequestPaymentInput, opts ...request.Option) (*PutBucketRequestPaymentOutput, error) {
5316 req, out := c.PutBucketRequestPaymentRequest(input)
5318 req.ApplyOptions(opts...)
5319 return out, req.Send()
5322 const opPutBucketTagging = "PutBucketTagging"
5324 // PutBucketTaggingRequest generates a "aws/request.Request" representing the
5325 // client's request for the PutBucketTagging operation. The "output" return
5326 // value can be used to capture response data after the request's "Send" method
5329 // See PutBucketTagging for usage and error information.
5331 // Creating a request object using this method should be used when you want to inject
5332 // custom logic into the request's lifecycle using a custom handler, or if you want to
5333 // access properties on the request object before or after sending the request. If
5334 // you just want the service response, call the PutBucketTagging method directly
5337 // Note: You must call the "Send" method on the returned request object in order
5338 // to execute the request.
5340 // // Example sending a request using the PutBucketTaggingRequest method.
5341 // req, resp := client.PutBucketTaggingRequest(params)
5343 // err := req.Send()
5344 // if err == nil { // resp is now filled
5345 // fmt.Println(resp)
5348 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketTagging
5349 func (c *S3) PutBucketTaggingRequest(input *PutBucketTaggingInput) (req *request.Request, output *PutBucketTaggingOutput) {
5350 op := &request.Operation{
5351 Name: opPutBucketTagging,
5353 HTTPPath: "/{Bucket}?tagging",
5357 input = &PutBucketTaggingInput{}
5360 output = &PutBucketTaggingOutput{}
5361 req = c.newRequest(op, input, output)
5362 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
5363 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
5367 // PutBucketTagging API operation for Amazon Simple Storage Service.
5369 // Sets the tags for a bucket.
5371 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5372 // with awserr.Error's Code and Message methods to get detailed information about
5375 // See the AWS API reference guide for Amazon Simple Storage Service's
5376 // API operation PutBucketTagging for usage and error information.
5377 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketTagging
5378 func (c *S3) PutBucketTagging(input *PutBucketTaggingInput) (*PutBucketTaggingOutput, error) {
5379 req, out := c.PutBucketTaggingRequest(input)
5380 return out, req.Send()
5383 // PutBucketTaggingWithContext is the same as PutBucketTagging with the addition of
5384 // the ability to pass a context and additional request options.
5386 // See PutBucketTagging for details on how to use this API operation.
5388 // The context must be non-nil and will be used for request cancellation. If
5389 // the context is nil a panic will occur. In the future the SDK may create
5390 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
5391 // for more information on using Contexts.
5392 func (c *S3) PutBucketTaggingWithContext(ctx aws.Context, input *PutBucketTaggingInput, opts ...request.Option) (*PutBucketTaggingOutput, error) {
5393 req, out := c.PutBucketTaggingRequest(input)
5395 req.ApplyOptions(opts...)
5396 return out, req.Send()
5399 const opPutBucketVersioning = "PutBucketVersioning"
5401 // PutBucketVersioningRequest generates a "aws/request.Request" representing the
5402 // client's request for the PutBucketVersioning operation. The "output" return
5403 // value can be used to capture response data after the request's "Send" method
5406 // See PutBucketVersioning for usage and error information.
5408 // Creating a request object using this method should be used when you want to inject
5409 // custom logic into the request's lifecycle using a custom handler, or if you want to
5410 // access properties on the request object before or after sending the request. If
5411 // you just want the service response, call the PutBucketVersioning method directly
5414 // Note: You must call the "Send" method on the returned request object in order
5415 // to execute the request.
5417 // // Example sending a request using the PutBucketVersioningRequest method.
5418 // req, resp := client.PutBucketVersioningRequest(params)
5420 // err := req.Send()
5421 // if err == nil { // resp is now filled
5422 // fmt.Println(resp)
5425 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketVersioning
5426 func (c *S3) PutBucketVersioningRequest(input *PutBucketVersioningInput) (req *request.Request, output *PutBucketVersioningOutput) {
5427 op := &request.Operation{
5428 Name: opPutBucketVersioning,
5430 HTTPPath: "/{Bucket}?versioning",
5434 input = &PutBucketVersioningInput{}
5437 output = &PutBucketVersioningOutput{}
5438 req = c.newRequest(op, input, output)
5439 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
5440 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
5444 // PutBucketVersioning API operation for Amazon Simple Storage Service.
5446 // Sets the versioning state of an existing bucket. To set the versioning state,
5447 // you must be the bucket owner.
5449 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5450 // with awserr.Error's Code and Message methods to get detailed information about
5453 // See the AWS API reference guide for Amazon Simple Storage Service's
5454 // API operation PutBucketVersioning for usage and error information.
5455 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketVersioning
5456 func (c *S3) PutBucketVersioning(input *PutBucketVersioningInput) (*PutBucketVersioningOutput, error) {
5457 req, out := c.PutBucketVersioningRequest(input)
5458 return out, req.Send()
5461 // PutBucketVersioningWithContext is the same as PutBucketVersioning with the addition of
5462 // the ability to pass a context and additional request options.
5464 // See PutBucketVersioning for details on how to use this API operation.
5466 // The context must be non-nil and will be used for request cancellation. If
5467 // the context is nil a panic will occur. In the future the SDK may create
5468 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
5469 // for more information on using Contexts.
5470 func (c *S3) PutBucketVersioningWithContext(ctx aws.Context, input *PutBucketVersioningInput, opts ...request.Option) (*PutBucketVersioningOutput, error) {
5471 req, out := c.PutBucketVersioningRequest(input)
5473 req.ApplyOptions(opts...)
5474 return out, req.Send()
5477 const opPutBucketWebsite = "PutBucketWebsite"
5479 // PutBucketWebsiteRequest generates a "aws/request.Request" representing the
5480 // client's request for the PutBucketWebsite operation. The "output" return
5481 // value can be used to capture response data after the request's "Send" method
5484 // See PutBucketWebsite for usage and error information.
5486 // Creating a request object using this method should be used when you want to inject
5487 // custom logic into the request's lifecycle using a custom handler, or if you want to
5488 // access properties on the request object before or after sending the request. If
5489 // you just want the service response, call the PutBucketWebsite method directly
5492 // Note: You must call the "Send" method on the returned request object in order
5493 // to execute the request.
5495 // // Example sending a request using the PutBucketWebsiteRequest method.
5496 // req, resp := client.PutBucketWebsiteRequest(params)
5498 // err := req.Send()
5499 // if err == nil { // resp is now filled
5500 // fmt.Println(resp)
5503 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketWebsite
5504 func (c *S3) PutBucketWebsiteRequest(input *PutBucketWebsiteInput) (req *request.Request, output *PutBucketWebsiteOutput) {
5505 op := &request.Operation{
5506 Name: opPutBucketWebsite,
5508 HTTPPath: "/{Bucket}?website",
5512 input = &PutBucketWebsiteInput{}
5515 output = &PutBucketWebsiteOutput{}
5516 req = c.newRequest(op, input, output)
5517 req.Handlers.Unmarshal.Remove(restxml.UnmarshalHandler)
5518 req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
5522 // PutBucketWebsite API operation for Amazon Simple Storage Service.
5524 // Set the website configuration for a bucket.
5526 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5527 // with awserr.Error's Code and Message methods to get detailed information about
5530 // See the AWS API reference guide for Amazon Simple Storage Service's
5531 // API operation PutBucketWebsite for usage and error information.
5532 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketWebsite
5533 func (c *S3) PutBucketWebsite(input *PutBucketWebsiteInput) (*PutBucketWebsiteOutput, error) {
5534 req, out := c.PutBucketWebsiteRequest(input)
5535 return out, req.Send()
5538 // PutBucketWebsiteWithContext is the same as PutBucketWebsite with the addition of
5539 // the ability to pass a context and additional request options.
5541 // See PutBucketWebsite for details on how to use this API operation.
5543 // The context must be non-nil and will be used for request cancellation. If
5544 // the context is nil a panic will occur. In the future the SDK may create
5545 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
5546 // for more information on using Contexts.
5547 func (c *S3) PutBucketWebsiteWithContext(ctx aws.Context, input *PutBucketWebsiteInput, opts ...request.Option) (*PutBucketWebsiteOutput, error) {
5548 req, out := c.PutBucketWebsiteRequest(input)
5550 req.ApplyOptions(opts...)
5551 return out, req.Send()
5554 const opPutObject = "PutObject"
5556 // PutObjectRequest generates a "aws/request.Request" representing the
5557 // client's request for the PutObject operation. The "output" return
5558 // value can be used to capture response data after the request's "Send" method
5561 // See PutObject for usage and error information.
5563 // Creating a request object using this method should be used when you want to inject
5564 // custom logic into the request's lifecycle using a custom handler, or if you want to
5565 // access properties on the request object before or after sending the request. If
5566 // you just want the service response, call the PutObject method directly
5569 // Note: You must call the "Send" method on the returned request object in order
5570 // to execute the request.
5572 // // Example sending a request using the PutObjectRequest method.
5573 // req, resp := client.PutObjectRequest(params)
5575 // err := req.Send()
5576 // if err == nil { // resp is now filled
5577 // fmt.Println(resp)
5580 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObject
5581 func (c *S3) PutObjectRequest(input *PutObjectInput) (req *request.Request, output *PutObjectOutput) {
5582 op := &request.Operation{
5585 HTTPPath: "/{Bucket}/{Key+}",
5589 input = &PutObjectInput{}
5592 output = &PutObjectOutput{}
5593 req = c.newRequest(op, input, output)
5597 // PutObject API operation for Amazon Simple Storage Service.
5599 // Adds an object to a bucket.
5601 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5602 // with awserr.Error's Code and Message methods to get detailed information about
5605 // See the AWS API reference guide for Amazon Simple Storage Service's
5606 // API operation PutObject for usage and error information.
5607 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObject
5608 func (c *S3) PutObject(input *PutObjectInput) (*PutObjectOutput, error) {
5609 req, out := c.PutObjectRequest(input)
5610 return out, req.Send()
5613 // PutObjectWithContext is the same as PutObject with the addition of
5614 // the ability to pass a context and additional request options.
5616 // See PutObject for details on how to use this API operation.
5618 // The context must be non-nil and will be used for request cancellation. If
5619 // the context is nil a panic will occur. In the future the SDK may create
5620 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
5621 // for more information on using Contexts.
5622 func (c *S3) PutObjectWithContext(ctx aws.Context, input *PutObjectInput, opts ...request.Option) (*PutObjectOutput, error) {
5623 req, out := c.PutObjectRequest(input)
5625 req.ApplyOptions(opts...)
5626 return out, req.Send()
5629 const opPutObjectAcl = "PutObjectAcl"
5631 // PutObjectAclRequest generates a "aws/request.Request" representing the
5632 // client's request for the PutObjectAcl operation. The "output" return
5633 // value can be used to capture response data after the request's "Send" method
5636 // See PutObjectAcl for usage and error information.
5638 // Creating a request object using this method should be used when you want to inject
5639 // custom logic into the request's lifecycle using a custom handler, or if you want to
5640 // access properties on the request object before or after sending the request. If
5641 // you just want the service response, call the PutObjectAcl method directly
5644 // Note: You must call the "Send" method on the returned request object in order
5645 // to execute the request.
5647 // // Example sending a request using the PutObjectAclRequest method.
5648 // req, resp := client.PutObjectAclRequest(params)
5650 // err := req.Send()
5651 // if err == nil { // resp is now filled
5652 // fmt.Println(resp)
5655 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectAcl
5656 func (c *S3) PutObjectAclRequest(input *PutObjectAclInput) (req *request.Request, output *PutObjectAclOutput) {
5657 op := &request.Operation{
5658 Name: opPutObjectAcl,
5660 HTTPPath: "/{Bucket}/{Key+}?acl",
5664 input = &PutObjectAclInput{}
5667 output = &PutObjectAclOutput{}
5668 req = c.newRequest(op, input, output)
5672 // PutObjectAcl API operation for Amazon Simple Storage Service.
5674 // uses the acl subresource to set the access control list (ACL) permissions
5675 // for an object that already exists in a bucket
5677 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5678 // with awserr.Error's Code and Message methods to get detailed information about
5681 // See the AWS API reference guide for Amazon Simple Storage Service's
5682 // API operation PutObjectAcl for usage and error information.
5684 // Returned Error Codes:
5685 // * ErrCodeNoSuchKey "NoSuchKey"
5686 // The specified key does not exist.
5688 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectAcl
5689 func (c *S3) PutObjectAcl(input *PutObjectAclInput) (*PutObjectAclOutput, error) {
5690 req, out := c.PutObjectAclRequest(input)
5691 return out, req.Send()
5694 // PutObjectAclWithContext is the same as PutObjectAcl with the addition of
5695 // the ability to pass a context and additional request options.
5697 // See PutObjectAcl for details on how to use this API operation.
5699 // The context must be non-nil and will be used for request cancellation. If
5700 // the context is nil a panic will occur. In the future the SDK may create
5701 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
5702 // for more information on using Contexts.
5703 func (c *S3) PutObjectAclWithContext(ctx aws.Context, input *PutObjectAclInput, opts ...request.Option) (*PutObjectAclOutput, error) {
5704 req, out := c.PutObjectAclRequest(input)
5706 req.ApplyOptions(opts...)
5707 return out, req.Send()
5710 const opPutObjectTagging = "PutObjectTagging"
5712 // PutObjectTaggingRequest generates a "aws/request.Request" representing the
5713 // client's request for the PutObjectTagging operation. The "output" return
5714 // value can be used to capture response data after the request's "Send" method
5717 // See PutObjectTagging for usage and error information.
5719 // Creating a request object using this method should be used when you want to inject
5720 // custom logic into the request's lifecycle using a custom handler, or if you want to
5721 // access properties on the request object before or after sending the request. If
5722 // you just want the service response, call the PutObjectTagging method directly
5725 // Note: You must call the "Send" method on the returned request object in order
5726 // to execute the request.
5728 // // Example sending a request using the PutObjectTaggingRequest method.
5729 // req, resp := client.PutObjectTaggingRequest(params)
5731 // err := req.Send()
5732 // if err == nil { // resp is now filled
5733 // fmt.Println(resp)
5736 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectTagging
5737 func (c *S3) PutObjectTaggingRequest(input *PutObjectTaggingInput) (req *request.Request, output *PutObjectTaggingOutput) {
5738 op := &request.Operation{
5739 Name: opPutObjectTagging,
5741 HTTPPath: "/{Bucket}/{Key+}?tagging",
5745 input = &PutObjectTaggingInput{}
5748 output = &PutObjectTaggingOutput{}
5749 req = c.newRequest(op, input, output)
5753 // PutObjectTagging API operation for Amazon Simple Storage Service.
5755 // Sets the supplied tag-set to an object that already exists in a bucket
5757 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5758 // with awserr.Error's Code and Message methods to get detailed information about
5761 // See the AWS API reference guide for Amazon Simple Storage Service's
5762 // API operation PutObjectTagging for usage and error information.
5763 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectTagging
5764 func (c *S3) PutObjectTagging(input *PutObjectTaggingInput) (*PutObjectTaggingOutput, error) {
5765 req, out := c.PutObjectTaggingRequest(input)
5766 return out, req.Send()
5769 // PutObjectTaggingWithContext is the same as PutObjectTagging with the addition of
5770 // the ability to pass a context and additional request options.
5772 // See PutObjectTagging for details on how to use this API operation.
5774 // The context must be non-nil and will be used for request cancellation. If
5775 // the context is nil a panic will occur. In the future the SDK may create
5776 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
5777 // for more information on using Contexts.
5778 func (c *S3) PutObjectTaggingWithContext(ctx aws.Context, input *PutObjectTaggingInput, opts ...request.Option) (*PutObjectTaggingOutput, error) {
5779 req, out := c.PutObjectTaggingRequest(input)
5781 req.ApplyOptions(opts...)
5782 return out, req.Send()
5785 const opRestoreObject = "RestoreObject"
5787 // RestoreObjectRequest generates a "aws/request.Request" representing the
5788 // client's request for the RestoreObject operation. The "output" return
5789 // value can be used to capture response data after the request's "Send" method
5792 // See RestoreObject for usage and error information.
5794 // Creating a request object using this method should be used when you want to inject
5795 // custom logic into the request's lifecycle using a custom handler, or if you want to
5796 // access properties on the request object before or after sending the request. If
5797 // you just want the service response, call the RestoreObject method directly
5800 // Note: You must call the "Send" method on the returned request object in order
5801 // to execute the request.
5803 // // Example sending a request using the RestoreObjectRequest method.
5804 // req, resp := client.RestoreObjectRequest(params)
5806 // err := req.Send()
5807 // if err == nil { // resp is now filled
5808 // fmt.Println(resp)
5811 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObject
5812 func (c *S3) RestoreObjectRequest(input *RestoreObjectInput) (req *request.Request, output *RestoreObjectOutput) {
5813 op := &request.Operation{
5814 Name: opRestoreObject,
5816 HTTPPath: "/{Bucket}/{Key+}?restore",
5820 input = &RestoreObjectInput{}
5823 output = &RestoreObjectOutput{}
5824 req = c.newRequest(op, input, output)
5828 // RestoreObject API operation for Amazon Simple Storage Service.
5830 // Restores an archived copy of an object back into Amazon S3
5832 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5833 // with awserr.Error's Code and Message methods to get detailed information about
5836 // See the AWS API reference guide for Amazon Simple Storage Service's
5837 // API operation RestoreObject for usage and error information.
5839 // Returned Error Codes:
5840 // * ErrCodeObjectAlreadyInActiveTierError "ObjectAlreadyInActiveTierError"
5841 // This operation is not allowed against this storage tier
5843 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObject
5844 func (c *S3) RestoreObject(input *RestoreObjectInput) (*RestoreObjectOutput, error) {
5845 req, out := c.RestoreObjectRequest(input)
5846 return out, req.Send()
5849 // RestoreObjectWithContext is the same as RestoreObject with the addition of
5850 // the ability to pass a context and additional request options.
5852 // See RestoreObject for details on how to use this API operation.
5854 // The context must be non-nil and will be used for request cancellation. If
5855 // the context is nil a panic will occur. In the future the SDK may create
5856 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
5857 // for more information on using Contexts.
5858 func (c *S3) RestoreObjectWithContext(ctx aws.Context, input *RestoreObjectInput, opts ...request.Option) (*RestoreObjectOutput, error) {
5859 req, out := c.RestoreObjectRequest(input)
5861 req.ApplyOptions(opts...)
5862 return out, req.Send()
5865 const opUploadPart = "UploadPart"
5867 // UploadPartRequest generates a "aws/request.Request" representing the
5868 // client's request for the UploadPart operation. The "output" return
5869 // value can be used to capture response data after the request's "Send" method
5872 // See UploadPart for usage and error information.
5874 // Creating a request object using this method should be used when you want to inject
5875 // custom logic into the request's lifecycle using a custom handler, or if you want to
5876 // access properties on the request object before or after sending the request. If
5877 // you just want the service response, call the UploadPart method directly
5880 // Note: You must call the "Send" method on the returned request object in order
5881 // to execute the request.
5883 // // Example sending a request using the UploadPartRequest method.
5884 // req, resp := client.UploadPartRequest(params)
5886 // err := req.Send()
5887 // if err == nil { // resp is now filled
5888 // fmt.Println(resp)
5891 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPart
5892 func (c *S3) UploadPartRequest(input *UploadPartInput) (req *request.Request, output *UploadPartOutput) {
5893 op := &request.Operation{
5896 HTTPPath: "/{Bucket}/{Key+}",
5900 input = &UploadPartInput{}
5903 output = &UploadPartOutput{}
5904 req = c.newRequest(op, input, output)
5908 // UploadPart API operation for Amazon Simple Storage Service.
5910 // Uploads a part in a multipart upload.
5912 // Note: After you initiate multipart upload and upload one or more parts, you
5913 // must either complete or abort multipart upload in order to stop getting charged
5914 // for storage of the uploaded parts. Only after you either complete or abort
5915 // multipart upload, Amazon S3 frees up the parts storage and stops charging
5916 // you for the parts storage.
5918 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5919 // with awserr.Error's Code and Message methods to get detailed information about
5922 // See the AWS API reference guide for Amazon Simple Storage Service's
5923 // API operation UploadPart for usage and error information.
5924 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPart
5925 func (c *S3) UploadPart(input *UploadPartInput) (*UploadPartOutput, error) {
5926 req, out := c.UploadPartRequest(input)
5927 return out, req.Send()
5930 // UploadPartWithContext is the same as UploadPart with the addition of
5931 // the ability to pass a context and additional request options.
5933 // See UploadPart for details on how to use this API operation.
5935 // The context must be non-nil and will be used for request cancellation. If
5936 // the context is nil a panic will occur. In the future the SDK may create
5937 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
5938 // for more information on using Contexts.
5939 func (c *S3) UploadPartWithContext(ctx aws.Context, input *UploadPartInput, opts ...request.Option) (*UploadPartOutput, error) {
5940 req, out := c.UploadPartRequest(input)
5942 req.ApplyOptions(opts...)
5943 return out, req.Send()
5946 const opUploadPartCopy = "UploadPartCopy"
5948 // UploadPartCopyRequest generates a "aws/request.Request" representing the
5949 // client's request for the UploadPartCopy operation. The "output" return
5950 // value can be used to capture response data after the request's "Send" method
5953 // See UploadPartCopy for usage and error information.
5955 // Creating a request object using this method should be used when you want to inject
5956 // custom logic into the request's lifecycle using a custom handler, or if you want to
5957 // access properties on the request object before or after sending the request. If
5958 // you just want the service response, call the UploadPartCopy method directly
5961 // Note: You must call the "Send" method on the returned request object in order
5962 // to execute the request.
5964 // // Example sending a request using the UploadPartCopyRequest method.
5965 // req, resp := client.UploadPartCopyRequest(params)
5967 // err := req.Send()
5968 // if err == nil { // resp is now filled
5969 // fmt.Println(resp)
5972 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartCopy
5973 func (c *S3) UploadPartCopyRequest(input *UploadPartCopyInput) (req *request.Request, output *UploadPartCopyOutput) {
5974 op := &request.Operation{
5975 Name: opUploadPartCopy,
5977 HTTPPath: "/{Bucket}/{Key+}",
5981 input = &UploadPartCopyInput{}
5984 output = &UploadPartCopyOutput{}
5985 req = c.newRequest(op, input, output)
5989 // UploadPartCopy API operation for Amazon Simple Storage Service.
5991 // Uploads a part by copying data from an existing object as data source.
5993 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5994 // with awserr.Error's Code and Message methods to get detailed information about
5997 // See the AWS API reference guide for Amazon Simple Storage Service's
5998 // API operation UploadPartCopy for usage and error information.
5999 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartCopy
6000 func (c *S3) UploadPartCopy(input *UploadPartCopyInput) (*UploadPartCopyOutput, error) {
6001 req, out := c.UploadPartCopyRequest(input)
6002 return out, req.Send()
6005 // UploadPartCopyWithContext is the same as UploadPartCopy with the addition of
6006 // the ability to pass a context and additional request options.
6008 // See UploadPartCopy for details on how to use this API operation.
6010 // The context must be non-nil and will be used for request cancellation. If
6011 // the context is nil a panic will occur. In the future the SDK may create
6012 // sub-contexts for http.Requests. See https://golang.org/pkg/context/
6013 // for more information on using Contexts.
6014 func (c *S3) UploadPartCopyWithContext(ctx aws.Context, input *UploadPartCopyInput, opts ...request.Option) (*UploadPartCopyOutput, error) {
6015 req, out := c.UploadPartCopyRequest(input)
6017 req.ApplyOptions(opts...)
6018 return out, req.Send()
6021 // Specifies the days since the initiation of an Incomplete Multipart Upload
6022 // that Lifecycle will wait before permanently removing all parts of the upload.
6023 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortIncompleteMultipartUpload
6024 type AbortIncompleteMultipartUpload struct {
6025 _ struct{} `type:"structure"`
6027 // Indicates the number of days that must pass since initiation for Lifecycle
6028 // to abort an Incomplete Multipart Upload.
6029 DaysAfterInitiation *int64 `type:"integer"`
6032 // String returns the string representation
6033 func (s AbortIncompleteMultipartUpload) String() string {
6034 return awsutil.Prettify(s)
6037 // GoString returns the string representation
6038 func (s AbortIncompleteMultipartUpload) GoString() string {
6042 // SetDaysAfterInitiation sets the DaysAfterInitiation field's value.
6043 func (s *AbortIncompleteMultipartUpload) SetDaysAfterInitiation(v int64) *AbortIncompleteMultipartUpload {
6044 s.DaysAfterInitiation = &v
6048 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortMultipartUploadRequest
6049 type AbortMultipartUploadInput struct {
6050 _ struct{} `type:"structure"`
6052 // Bucket is a required field
6053 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
6055 // Key is a required field
6056 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
6058 // Confirms that the requester knows that she or he will be charged for the
6059 // request. Bucket owners need not specify this parameter in their requests.
6060 // Documentation on downloading objects from requester pays buckets can be found
6061 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
6062 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
6064 // UploadId is a required field
6065 UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"`
6068 // String returns the string representation
6069 func (s AbortMultipartUploadInput) String() string {
6070 return awsutil.Prettify(s)
6073 // GoString returns the string representation
6074 func (s AbortMultipartUploadInput) GoString() string {
6078 // Validate inspects the fields of the type to determine if they are valid.
6079 func (s *AbortMultipartUploadInput) Validate() error {
6080 invalidParams := request.ErrInvalidParams{Context: "AbortMultipartUploadInput"}
6081 if s.Bucket == nil {
6082 invalidParams.Add(request.NewErrParamRequired("Bucket"))
6085 invalidParams.Add(request.NewErrParamRequired("Key"))
6087 if s.Key != nil && len(*s.Key) < 1 {
6088 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
6090 if s.UploadId == nil {
6091 invalidParams.Add(request.NewErrParamRequired("UploadId"))
6094 if invalidParams.Len() > 0 {
6095 return invalidParams
6100 // SetBucket sets the Bucket field's value.
6101 func (s *AbortMultipartUploadInput) SetBucket(v string) *AbortMultipartUploadInput {
6106 // SetKey sets the Key field's value.
6107 func (s *AbortMultipartUploadInput) SetKey(v string) *AbortMultipartUploadInput {
6112 // SetRequestPayer sets the RequestPayer field's value.
6113 func (s *AbortMultipartUploadInput) SetRequestPayer(v string) *AbortMultipartUploadInput {
6118 // SetUploadId sets the UploadId field's value.
6119 func (s *AbortMultipartUploadInput) SetUploadId(v string) *AbortMultipartUploadInput {
6124 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortMultipartUploadOutput
6125 type AbortMultipartUploadOutput struct {
6126 _ struct{} `type:"structure"`
6128 // If present, indicates that the requester was successfully charged for the
6130 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
6133 // String returns the string representation
6134 func (s AbortMultipartUploadOutput) String() string {
6135 return awsutil.Prettify(s)
6138 // GoString returns the string representation
6139 func (s AbortMultipartUploadOutput) GoString() string {
6143 // SetRequestCharged sets the RequestCharged field's value.
6144 func (s *AbortMultipartUploadOutput) SetRequestCharged(v string) *AbortMultipartUploadOutput {
6145 s.RequestCharged = &v
6149 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AccelerateConfiguration
6150 type AccelerateConfiguration struct {
6151 _ struct{} `type:"structure"`
6153 // The accelerate configuration of the bucket.
6154 Status *string `type:"string" enum:"BucketAccelerateStatus"`
6157 // String returns the string representation
6158 func (s AccelerateConfiguration) String() string {
6159 return awsutil.Prettify(s)
6162 // GoString returns the string representation
6163 func (s AccelerateConfiguration) GoString() string {
6167 // SetStatus sets the Status field's value.
6168 func (s *AccelerateConfiguration) SetStatus(v string) *AccelerateConfiguration {
6173 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AccessControlPolicy
6174 type AccessControlPolicy struct {
6175 _ struct{} `type:"structure"`
6177 // A list of grants.
6178 Grants []*Grant `locationName:"AccessControlList" locationNameList:"Grant" type:"list"`
6180 Owner *Owner `type:"structure"`
6183 // String returns the string representation
6184 func (s AccessControlPolicy) String() string {
6185 return awsutil.Prettify(s)
6188 // GoString returns the string representation
6189 func (s AccessControlPolicy) GoString() string {
6193 // Validate inspects the fields of the type to determine if they are valid.
6194 func (s *AccessControlPolicy) Validate() error {
6195 invalidParams := request.ErrInvalidParams{Context: "AccessControlPolicy"}
6196 if s.Grants != nil {
6197 for i, v := range s.Grants {
6201 if err := v.Validate(); err != nil {
6202 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Grants", i), err.(request.ErrInvalidParams))
6207 if invalidParams.Len() > 0 {
6208 return invalidParams
6213 // SetGrants sets the Grants field's value.
6214 func (s *AccessControlPolicy) SetGrants(v []*Grant) *AccessControlPolicy {
6219 // SetOwner sets the Owner field's value.
6220 func (s *AccessControlPolicy) SetOwner(v *Owner) *AccessControlPolicy {
6225 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AnalyticsAndOperator
6226 type AnalyticsAndOperator struct {
6227 _ struct{} `type:"structure"`
6229 // The prefix to use when evaluating an AND predicate.
6230 Prefix *string `type:"string"`
6232 // The list of tags to use when evaluating an AND predicate.
6233 Tags []*Tag `locationName:"Tag" locationNameList:"Tag" type:"list" flattened:"true"`
6236 // String returns the string representation
6237 func (s AnalyticsAndOperator) String() string {
6238 return awsutil.Prettify(s)
6241 // GoString returns the string representation
6242 func (s AnalyticsAndOperator) GoString() string {
6246 // Validate inspects the fields of the type to determine if they are valid.
6247 func (s *AnalyticsAndOperator) Validate() error {
6248 invalidParams := request.ErrInvalidParams{Context: "AnalyticsAndOperator"}
6250 for i, v := range s.Tags {
6254 if err := v.Validate(); err != nil {
6255 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
6260 if invalidParams.Len() > 0 {
6261 return invalidParams
6266 // SetPrefix sets the Prefix field's value.
6267 func (s *AnalyticsAndOperator) SetPrefix(v string) *AnalyticsAndOperator {
6272 // SetTags sets the Tags field's value.
6273 func (s *AnalyticsAndOperator) SetTags(v []*Tag) *AnalyticsAndOperator {
6278 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AnalyticsConfiguration
6279 type AnalyticsConfiguration struct {
6280 _ struct{} `type:"structure"`
6282 // The filter used to describe a set of objects for analyses. A filter must
6283 // have exactly one prefix, one tag, or one conjunction (AnalyticsAndOperator).
6284 // If no filter is provided, all objects will be considered in any analysis.
6285 Filter *AnalyticsFilter `type:"structure"`
6287 // The identifier used to represent an analytics configuration.
6289 // Id is a required field
6290 Id *string `type:"string" required:"true"`
6292 // If present, it indicates that data related to access patterns will be collected
6293 // and made available to analyze the tradeoffs between different storage classes.
6295 // StorageClassAnalysis is a required field
6296 StorageClassAnalysis *StorageClassAnalysis `type:"structure" required:"true"`
6299 // String returns the string representation
6300 func (s AnalyticsConfiguration) String() string {
6301 return awsutil.Prettify(s)
6304 // GoString returns the string representation
6305 func (s AnalyticsConfiguration) GoString() string {
6309 // Validate inspects the fields of the type to determine if they are valid.
6310 func (s *AnalyticsConfiguration) Validate() error {
6311 invalidParams := request.ErrInvalidParams{Context: "AnalyticsConfiguration"}
6313 invalidParams.Add(request.NewErrParamRequired("Id"))
6315 if s.StorageClassAnalysis == nil {
6316 invalidParams.Add(request.NewErrParamRequired("StorageClassAnalysis"))
6318 if s.Filter != nil {
6319 if err := s.Filter.Validate(); err != nil {
6320 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
6323 if s.StorageClassAnalysis != nil {
6324 if err := s.StorageClassAnalysis.Validate(); err != nil {
6325 invalidParams.AddNested("StorageClassAnalysis", err.(request.ErrInvalidParams))
6329 if invalidParams.Len() > 0 {
6330 return invalidParams
6335 // SetFilter sets the Filter field's value.
6336 func (s *AnalyticsConfiguration) SetFilter(v *AnalyticsFilter) *AnalyticsConfiguration {
6341 // SetId sets the Id field's value.
6342 func (s *AnalyticsConfiguration) SetId(v string) *AnalyticsConfiguration {
6347 // SetStorageClassAnalysis sets the StorageClassAnalysis field's value.
6348 func (s *AnalyticsConfiguration) SetStorageClassAnalysis(v *StorageClassAnalysis) *AnalyticsConfiguration {
6349 s.StorageClassAnalysis = v
6353 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AnalyticsExportDestination
6354 type AnalyticsExportDestination struct {
6355 _ struct{} `type:"structure"`
6357 // A destination signifying output to an S3 bucket.
6359 // S3BucketDestination is a required field
6360 S3BucketDestination *AnalyticsS3BucketDestination `type:"structure" required:"true"`
6363 // String returns the string representation
6364 func (s AnalyticsExportDestination) String() string {
6365 return awsutil.Prettify(s)
6368 // GoString returns the string representation
6369 func (s AnalyticsExportDestination) GoString() string {
6373 // Validate inspects the fields of the type to determine if they are valid.
6374 func (s *AnalyticsExportDestination) Validate() error {
6375 invalidParams := request.ErrInvalidParams{Context: "AnalyticsExportDestination"}
6376 if s.S3BucketDestination == nil {
6377 invalidParams.Add(request.NewErrParamRequired("S3BucketDestination"))
6379 if s.S3BucketDestination != nil {
6380 if err := s.S3BucketDestination.Validate(); err != nil {
6381 invalidParams.AddNested("S3BucketDestination", err.(request.ErrInvalidParams))
6385 if invalidParams.Len() > 0 {
6386 return invalidParams
6391 // SetS3BucketDestination sets the S3BucketDestination field's value.
6392 func (s *AnalyticsExportDestination) SetS3BucketDestination(v *AnalyticsS3BucketDestination) *AnalyticsExportDestination {
6393 s.S3BucketDestination = v
6397 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AnalyticsFilter
6398 type AnalyticsFilter struct {
6399 _ struct{} `type:"structure"`
6401 // A conjunction (logical AND) of predicates, which is used in evaluating an
6402 // analytics filter. The operator must have at least two predicates.
6403 And *AnalyticsAndOperator `type:"structure"`
6405 // The prefix to use when evaluating an analytics filter.
6406 Prefix *string `type:"string"`
6408 // The tag to use when evaluating an analytics filter.
6409 Tag *Tag `type:"structure"`
6412 // String returns the string representation
6413 func (s AnalyticsFilter) String() string {
6414 return awsutil.Prettify(s)
6417 // GoString returns the string representation
6418 func (s AnalyticsFilter) GoString() string {
6422 // Validate inspects the fields of the type to determine if they are valid.
6423 func (s *AnalyticsFilter) Validate() error {
6424 invalidParams := request.ErrInvalidParams{Context: "AnalyticsFilter"}
6426 if err := s.And.Validate(); err != nil {
6427 invalidParams.AddNested("And", err.(request.ErrInvalidParams))
6431 if err := s.Tag.Validate(); err != nil {
6432 invalidParams.AddNested("Tag", err.(request.ErrInvalidParams))
6436 if invalidParams.Len() > 0 {
6437 return invalidParams
6442 // SetAnd sets the And field's value.
6443 func (s *AnalyticsFilter) SetAnd(v *AnalyticsAndOperator) *AnalyticsFilter {
6448 // SetPrefix sets the Prefix field's value.
6449 func (s *AnalyticsFilter) SetPrefix(v string) *AnalyticsFilter {
6454 // SetTag sets the Tag field's value.
6455 func (s *AnalyticsFilter) SetTag(v *Tag) *AnalyticsFilter {
6460 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AnalyticsS3BucketDestination
6461 type AnalyticsS3BucketDestination struct {
6462 _ struct{} `type:"structure"`
6464 // The Amazon resource name (ARN) of the bucket to which data is exported.
6466 // Bucket is a required field
6467 Bucket *string `type:"string" required:"true"`
6469 // The account ID that owns the destination bucket. If no account ID is provided,
6470 // the owner will not be validated prior to exporting data.
6471 BucketAccountId *string `type:"string"`
6473 // The file format used when exporting data to Amazon S3.
6475 // Format is a required field
6476 Format *string `type:"string" required:"true" enum:"AnalyticsS3ExportFileFormat"`
6478 // The prefix to use when exporting data. The exported data begins with this
6480 Prefix *string `type:"string"`
6483 // String returns the string representation
6484 func (s AnalyticsS3BucketDestination) String() string {
6485 return awsutil.Prettify(s)
6488 // GoString returns the string representation
6489 func (s AnalyticsS3BucketDestination) GoString() string {
6493 // Validate inspects the fields of the type to determine if they are valid.
6494 func (s *AnalyticsS3BucketDestination) Validate() error {
6495 invalidParams := request.ErrInvalidParams{Context: "AnalyticsS3BucketDestination"}
6496 if s.Bucket == nil {
6497 invalidParams.Add(request.NewErrParamRequired("Bucket"))
6499 if s.Format == nil {
6500 invalidParams.Add(request.NewErrParamRequired("Format"))
6503 if invalidParams.Len() > 0 {
6504 return invalidParams
6509 // SetBucket sets the Bucket field's value.
6510 func (s *AnalyticsS3BucketDestination) SetBucket(v string) *AnalyticsS3BucketDestination {
6515 // SetBucketAccountId sets the BucketAccountId field's value.
6516 func (s *AnalyticsS3BucketDestination) SetBucketAccountId(v string) *AnalyticsS3BucketDestination {
6517 s.BucketAccountId = &v
6521 // SetFormat sets the Format field's value.
6522 func (s *AnalyticsS3BucketDestination) SetFormat(v string) *AnalyticsS3BucketDestination {
6527 // SetPrefix sets the Prefix field's value.
6528 func (s *AnalyticsS3BucketDestination) SetPrefix(v string) *AnalyticsS3BucketDestination {
6533 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Bucket
6534 type Bucket struct {
6535 _ struct{} `type:"structure"`
6537 // Date the bucket was created.
6538 CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601"`
6540 // The name of the bucket.
6541 Name *string `type:"string"`
6544 // String returns the string representation
6545 func (s Bucket) String() string {
6546 return awsutil.Prettify(s)
6549 // GoString returns the string representation
6550 func (s Bucket) GoString() string {
6554 // SetCreationDate sets the CreationDate field's value.
6555 func (s *Bucket) SetCreationDate(v time.Time) *Bucket {
6560 // SetName sets the Name field's value.
6561 func (s *Bucket) SetName(v string) *Bucket {
6566 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/BucketLifecycleConfiguration
6567 type BucketLifecycleConfiguration struct {
6568 _ struct{} `type:"structure"`
6570 // Rules is a required field
6571 Rules []*LifecycleRule `locationName:"Rule" type:"list" flattened:"true" required:"true"`
6574 // String returns the string representation
6575 func (s BucketLifecycleConfiguration) String() string {
6576 return awsutil.Prettify(s)
6579 // GoString returns the string representation
6580 func (s BucketLifecycleConfiguration) GoString() string {
6584 // Validate inspects the fields of the type to determine if they are valid.
6585 func (s *BucketLifecycleConfiguration) Validate() error {
6586 invalidParams := request.ErrInvalidParams{Context: "BucketLifecycleConfiguration"}
6588 invalidParams.Add(request.NewErrParamRequired("Rules"))
6591 for i, v := range s.Rules {
6595 if err := v.Validate(); err != nil {
6596 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams))
6601 if invalidParams.Len() > 0 {
6602 return invalidParams
6607 // SetRules sets the Rules field's value.
6608 func (s *BucketLifecycleConfiguration) SetRules(v []*LifecycleRule) *BucketLifecycleConfiguration {
6613 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/BucketLoggingStatus
6614 type BucketLoggingStatus struct {
6615 _ struct{} `type:"structure"`
6617 LoggingEnabled *LoggingEnabled `type:"structure"`
6620 // String returns the string representation
6621 func (s BucketLoggingStatus) String() string {
6622 return awsutil.Prettify(s)
6625 // GoString returns the string representation
6626 func (s BucketLoggingStatus) GoString() string {
6630 // Validate inspects the fields of the type to determine if they are valid.
6631 func (s *BucketLoggingStatus) Validate() error {
6632 invalidParams := request.ErrInvalidParams{Context: "BucketLoggingStatus"}
6633 if s.LoggingEnabled != nil {
6634 if err := s.LoggingEnabled.Validate(); err != nil {
6635 invalidParams.AddNested("LoggingEnabled", err.(request.ErrInvalidParams))
6639 if invalidParams.Len() > 0 {
6640 return invalidParams
6645 // SetLoggingEnabled sets the LoggingEnabled field's value.
6646 func (s *BucketLoggingStatus) SetLoggingEnabled(v *LoggingEnabled) *BucketLoggingStatus {
6647 s.LoggingEnabled = v
6651 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CORSConfiguration
6652 type CORSConfiguration struct {
6653 _ struct{} `type:"structure"`
6655 // CORSRules is a required field
6656 CORSRules []*CORSRule `locationName:"CORSRule" type:"list" flattened:"true" required:"true"`
6659 // String returns the string representation
6660 func (s CORSConfiguration) String() string {
6661 return awsutil.Prettify(s)
6664 // GoString returns the string representation
6665 func (s CORSConfiguration) GoString() string {
6669 // Validate inspects the fields of the type to determine if they are valid.
6670 func (s *CORSConfiguration) Validate() error {
6671 invalidParams := request.ErrInvalidParams{Context: "CORSConfiguration"}
6672 if s.CORSRules == nil {
6673 invalidParams.Add(request.NewErrParamRequired("CORSRules"))
6675 if s.CORSRules != nil {
6676 for i, v := range s.CORSRules {
6680 if err := v.Validate(); err != nil {
6681 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CORSRules", i), err.(request.ErrInvalidParams))
6686 if invalidParams.Len() > 0 {
6687 return invalidParams
6692 // SetCORSRules sets the CORSRules field's value.
6693 func (s *CORSConfiguration) SetCORSRules(v []*CORSRule) *CORSConfiguration {
6698 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CORSRule
6699 type CORSRule struct {
6700 _ struct{} `type:"structure"`
6702 // Specifies which headers are allowed in a pre-flight OPTIONS request.
6703 AllowedHeaders []*string `locationName:"AllowedHeader" type:"list" flattened:"true"`
6705 // Identifies HTTP methods that the domain/origin specified in the rule is allowed
6708 // AllowedMethods is a required field
6709 AllowedMethods []*string `locationName:"AllowedMethod" type:"list" flattened:"true" required:"true"`
6711 // One or more origins you want customers to be able to access the bucket from.
6713 // AllowedOrigins is a required field
6714 AllowedOrigins []*string `locationName:"AllowedOrigin" type:"list" flattened:"true" required:"true"`
6716 // One or more headers in the response that you want customers to be able to
6717 // access from their applications (for example, from a JavaScript XMLHttpRequest
6719 ExposeHeaders []*string `locationName:"ExposeHeader" type:"list" flattened:"true"`
6721 // The time in seconds that your browser is to cache the preflight response
6722 // for the specified resource.
6723 MaxAgeSeconds *int64 `type:"integer"`
6726 // String returns the string representation
6727 func (s CORSRule) String() string {
6728 return awsutil.Prettify(s)
6731 // GoString returns the string representation
6732 func (s CORSRule) GoString() string {
6736 // Validate inspects the fields of the type to determine if they are valid.
6737 func (s *CORSRule) Validate() error {
6738 invalidParams := request.ErrInvalidParams{Context: "CORSRule"}
6739 if s.AllowedMethods == nil {
6740 invalidParams.Add(request.NewErrParamRequired("AllowedMethods"))
6742 if s.AllowedOrigins == nil {
6743 invalidParams.Add(request.NewErrParamRequired("AllowedOrigins"))
6746 if invalidParams.Len() > 0 {
6747 return invalidParams
6752 // SetAllowedHeaders sets the AllowedHeaders field's value.
6753 func (s *CORSRule) SetAllowedHeaders(v []*string) *CORSRule {
6754 s.AllowedHeaders = v
6758 // SetAllowedMethods sets the AllowedMethods field's value.
6759 func (s *CORSRule) SetAllowedMethods(v []*string) *CORSRule {
6760 s.AllowedMethods = v
6764 // SetAllowedOrigins sets the AllowedOrigins field's value.
6765 func (s *CORSRule) SetAllowedOrigins(v []*string) *CORSRule {
6766 s.AllowedOrigins = v
6770 // SetExposeHeaders sets the ExposeHeaders field's value.
6771 func (s *CORSRule) SetExposeHeaders(v []*string) *CORSRule {
6776 // SetMaxAgeSeconds sets the MaxAgeSeconds field's value.
6777 func (s *CORSRule) SetMaxAgeSeconds(v int64) *CORSRule {
6778 s.MaxAgeSeconds = &v
6782 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CloudFunctionConfiguration
6783 type CloudFunctionConfiguration struct {
6784 _ struct{} `type:"structure"`
6786 CloudFunction *string `type:"string"`
6788 // Bucket event for which to send notifications.
6789 Event *string `deprecated:"true" type:"string" enum:"Event"`
6791 Events []*string `locationName:"Event" type:"list" flattened:"true"`
6793 // Optional unique identifier for configurations in a notification configuration.
6794 // If you don't provide one, Amazon S3 will assign an ID.
6795 Id *string `type:"string"`
6797 InvocationRole *string `type:"string"`
6800 // String returns the string representation
6801 func (s CloudFunctionConfiguration) String() string {
6802 return awsutil.Prettify(s)
6805 // GoString returns the string representation
6806 func (s CloudFunctionConfiguration) GoString() string {
6810 // SetCloudFunction sets the CloudFunction field's value.
6811 func (s *CloudFunctionConfiguration) SetCloudFunction(v string) *CloudFunctionConfiguration {
6812 s.CloudFunction = &v
6816 // SetEvent sets the Event field's value.
6817 func (s *CloudFunctionConfiguration) SetEvent(v string) *CloudFunctionConfiguration {
6822 // SetEvents sets the Events field's value.
6823 func (s *CloudFunctionConfiguration) SetEvents(v []*string) *CloudFunctionConfiguration {
6828 // SetId sets the Id field's value.
6829 func (s *CloudFunctionConfiguration) SetId(v string) *CloudFunctionConfiguration {
6834 // SetInvocationRole sets the InvocationRole field's value.
6835 func (s *CloudFunctionConfiguration) SetInvocationRole(v string) *CloudFunctionConfiguration {
6836 s.InvocationRole = &v
6840 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CommonPrefix
6841 type CommonPrefix struct {
6842 _ struct{} `type:"structure"`
6844 Prefix *string `type:"string"`
6847 // String returns the string representation
6848 func (s CommonPrefix) String() string {
6849 return awsutil.Prettify(s)
6852 // GoString returns the string representation
6853 func (s CommonPrefix) GoString() string {
6857 // SetPrefix sets the Prefix field's value.
6858 func (s *CommonPrefix) SetPrefix(v string) *CommonPrefix {
6863 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompleteMultipartUploadRequest
6864 type CompleteMultipartUploadInput struct {
6865 _ struct{} `type:"structure" payload:"MultipartUpload"`
6867 // Bucket is a required field
6868 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
6870 // Key is a required field
6871 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
6873 MultipartUpload *CompletedMultipartUpload `locationName:"CompleteMultipartUpload" type:"structure"`
6875 // Confirms that the requester knows that she or he will be charged for the
6876 // request. Bucket owners need not specify this parameter in their requests.
6877 // Documentation on downloading objects from requester pays buckets can be found
6878 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
6879 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
6881 // UploadId is a required field
6882 UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"`
6885 // String returns the string representation
6886 func (s CompleteMultipartUploadInput) String() string {
6887 return awsutil.Prettify(s)
6890 // GoString returns the string representation
6891 func (s CompleteMultipartUploadInput) GoString() string {
6895 // Validate inspects the fields of the type to determine if they are valid.
6896 func (s *CompleteMultipartUploadInput) Validate() error {
6897 invalidParams := request.ErrInvalidParams{Context: "CompleteMultipartUploadInput"}
6898 if s.Bucket == nil {
6899 invalidParams.Add(request.NewErrParamRequired("Bucket"))
6902 invalidParams.Add(request.NewErrParamRequired("Key"))
6904 if s.Key != nil && len(*s.Key) < 1 {
6905 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
6907 if s.UploadId == nil {
6908 invalidParams.Add(request.NewErrParamRequired("UploadId"))
6911 if invalidParams.Len() > 0 {
6912 return invalidParams
6917 // SetBucket sets the Bucket field's value.
6918 func (s *CompleteMultipartUploadInput) SetBucket(v string) *CompleteMultipartUploadInput {
6923 // SetKey sets the Key field's value.
6924 func (s *CompleteMultipartUploadInput) SetKey(v string) *CompleteMultipartUploadInput {
6929 // SetMultipartUpload sets the MultipartUpload field's value.
6930 func (s *CompleteMultipartUploadInput) SetMultipartUpload(v *CompletedMultipartUpload) *CompleteMultipartUploadInput {
6931 s.MultipartUpload = v
6935 // SetRequestPayer sets the RequestPayer field's value.
6936 func (s *CompleteMultipartUploadInput) SetRequestPayer(v string) *CompleteMultipartUploadInput {
6941 // SetUploadId sets the UploadId field's value.
6942 func (s *CompleteMultipartUploadInput) SetUploadId(v string) *CompleteMultipartUploadInput {
6947 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompleteMultipartUploadOutput
6948 type CompleteMultipartUploadOutput struct {
6949 _ struct{} `type:"structure"`
6951 Bucket *string `type:"string"`
6953 // Entity tag of the object.
6954 ETag *string `type:"string"`
6956 // If the object expiration is configured, this will contain the expiration
6957 // date (expiry-date) and rule ID (rule-id). The value of rule-id is URL encoded.
6958 Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"`
6960 Key *string `min:"1" type:"string"`
6962 Location *string `type:"string"`
6964 // If present, indicates that the requester was successfully charged for the
6966 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
6968 // If present, specifies the ID of the AWS Key Management Service (KMS) master
6969 // encryption key that was used for the object.
6970 SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
6972 // The Server-side encryption algorithm used when storing this object in S3
6973 // (e.g., AES256, aws:kms).
6974 ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
6976 // Version of the object.
6977 VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
6980 // String returns the string representation
6981 func (s CompleteMultipartUploadOutput) String() string {
6982 return awsutil.Prettify(s)
6985 // GoString returns the string representation
6986 func (s CompleteMultipartUploadOutput) GoString() string {
6990 // SetBucket sets the Bucket field's value.
6991 func (s *CompleteMultipartUploadOutput) SetBucket(v string) *CompleteMultipartUploadOutput {
6996 // SetETag sets the ETag field's value.
6997 func (s *CompleteMultipartUploadOutput) SetETag(v string) *CompleteMultipartUploadOutput {
7002 // SetExpiration sets the Expiration field's value.
7003 func (s *CompleteMultipartUploadOutput) SetExpiration(v string) *CompleteMultipartUploadOutput {
7008 // SetKey sets the Key field's value.
7009 func (s *CompleteMultipartUploadOutput) SetKey(v string) *CompleteMultipartUploadOutput {
7014 // SetLocation sets the Location field's value.
7015 func (s *CompleteMultipartUploadOutput) SetLocation(v string) *CompleteMultipartUploadOutput {
7020 // SetRequestCharged sets the RequestCharged field's value.
7021 func (s *CompleteMultipartUploadOutput) SetRequestCharged(v string) *CompleteMultipartUploadOutput {
7022 s.RequestCharged = &v
7026 // SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
7027 func (s *CompleteMultipartUploadOutput) SetSSEKMSKeyId(v string) *CompleteMultipartUploadOutput {
7032 // SetServerSideEncryption sets the ServerSideEncryption field's value.
7033 func (s *CompleteMultipartUploadOutput) SetServerSideEncryption(v string) *CompleteMultipartUploadOutput {
7034 s.ServerSideEncryption = &v
7038 // SetVersionId sets the VersionId field's value.
7039 func (s *CompleteMultipartUploadOutput) SetVersionId(v string) *CompleteMultipartUploadOutput {
7044 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompletedMultipartUpload
7045 type CompletedMultipartUpload struct {
7046 _ struct{} `type:"structure"`
7048 Parts []*CompletedPart `locationName:"Part" type:"list" flattened:"true"`
7051 // String returns the string representation
7052 func (s CompletedMultipartUpload) String() string {
7053 return awsutil.Prettify(s)
7056 // GoString returns the string representation
7057 func (s CompletedMultipartUpload) GoString() string {
7061 // SetParts sets the Parts field's value.
7062 func (s *CompletedMultipartUpload) SetParts(v []*CompletedPart) *CompletedMultipartUpload {
7067 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompletedPart
7068 type CompletedPart struct {
7069 _ struct{} `type:"structure"`
7071 // Entity tag returned when the part was uploaded.
7072 ETag *string `type:"string"`
7074 // Part number that identifies the part. This is a positive integer between
7076 PartNumber *int64 `type:"integer"`
7079 // String returns the string representation
7080 func (s CompletedPart) String() string {
7081 return awsutil.Prettify(s)
7084 // GoString returns the string representation
7085 func (s CompletedPart) GoString() string {
7089 // SetETag sets the ETag field's value.
7090 func (s *CompletedPart) SetETag(v string) *CompletedPart {
7095 // SetPartNumber sets the PartNumber field's value.
7096 func (s *CompletedPart) SetPartNumber(v int64) *CompletedPart {
7101 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Condition
7102 type Condition struct {
7103 _ struct{} `type:"structure"`
7105 // The HTTP error code when the redirect is applied. In the event of an error,
7106 // if the error code equals this value, then the specified redirect is applied.
7107 // Required when parent element Condition is specified and sibling KeyPrefixEquals
7108 // is not specified. If both are specified, then both must be true for the redirect
7110 HttpErrorCodeReturnedEquals *string `type:"string"`
7112 // The object key name prefix when the redirect is applied. For example, to
7113 // redirect requests for ExamplePage.html, the key prefix will be ExamplePage.html.
7114 // To redirect request for all pages with the prefix docs/, the key prefix will
7115 // be /docs, which identifies all objects in the docs/ folder. Required when
7116 // the parent element Condition is specified and sibling HttpErrorCodeReturnedEquals
7117 // is not specified. If both conditions are specified, both must be true for
7118 // the redirect to be applied.
7119 KeyPrefixEquals *string `type:"string"`
7122 // String returns the string representation
7123 func (s Condition) String() string {
7124 return awsutil.Prettify(s)
7127 // GoString returns the string representation
7128 func (s Condition) GoString() string {
7132 // SetHttpErrorCodeReturnedEquals sets the HttpErrorCodeReturnedEquals field's value.
7133 func (s *Condition) SetHttpErrorCodeReturnedEquals(v string) *Condition {
7134 s.HttpErrorCodeReturnedEquals = &v
7138 // SetKeyPrefixEquals sets the KeyPrefixEquals field's value.
7139 func (s *Condition) SetKeyPrefixEquals(v string) *Condition {
7140 s.KeyPrefixEquals = &v
7144 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObjectRequest
7145 type CopyObjectInput struct {
7146 _ struct{} `type:"structure"`
7148 // The canned ACL to apply to the object.
7149 ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`
7151 // Bucket is a required field
7152 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
7154 // Specifies caching behavior along the request/reply chain.
7155 CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"`
7157 // Specifies presentational information for the object.
7158 ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`
7160 // Specifies what content encodings have been applied to the object and thus
7161 // what decoding mechanisms must be applied to obtain the media-type referenced
7162 // by the Content-Type header field.
7163 ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"`
7165 // The language the content is in.
7166 ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`
7168 // A standard MIME type describing the format of the object data.
7169 ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
7171 // The name of the source bucket and key name of the source object, separated
7172 // by a slash (/). Must be URL-encoded.
7174 // CopySource is a required field
7175 CopySource *string `location:"header" locationName:"x-amz-copy-source" type:"string" required:"true"`
7177 // Copies the object if its entity tag (ETag) matches the specified tag.
7178 CopySourceIfMatch *string `location:"header" locationName:"x-amz-copy-source-if-match" type:"string"`
7180 // Copies the object if it has been modified since the specified time.
7181 CopySourceIfModifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-modified-since" type:"timestamp" timestampFormat:"rfc822"`
7183 // Copies the object if its entity tag (ETag) is different than the specified
7185 CopySourceIfNoneMatch *string `location:"header" locationName:"x-amz-copy-source-if-none-match" type:"string"`
7187 // Copies the object if it hasn't been modified since the specified time.
7188 CopySourceIfUnmodifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-unmodified-since" type:"timestamp" timestampFormat:"rfc822"`
7190 // Specifies the algorithm to use when decrypting the source object (e.g., AES256).
7191 CopySourceSSECustomerAlgorithm *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-algorithm" type:"string"`
7193 // Specifies the customer-provided encryption key for Amazon S3 to use to decrypt
7194 // the source object. The encryption key provided in this header must be one
7195 // that was used when the source object was created.
7196 CopySourceSSECustomerKey *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key" type:"string"`
7198 // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
7199 // Amazon S3 uses this header for a message integrity check to ensure the encryption
7200 // key was transmitted without error.
7201 CopySourceSSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5" type:"string"`
7203 // The date and time at which the object is no longer cacheable.
7204 Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp" timestampFormat:"rfc822"`
7206 // Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
7207 GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
7209 // Allows grantee to read the object data and its metadata.
7210 GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"`
7212 // Allows grantee to read the object ACL.
7213 GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"`
7215 // Allows grantee to write the ACL for the applicable object.
7216 GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`
7218 // Key is a required field
7219 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
7221 // A map of metadata to store with the object in S3.
7222 Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
7224 // Specifies whether the metadata is copied from the source object or replaced
7225 // with metadata provided in the request.
7226 MetadataDirective *string `location:"header" locationName:"x-amz-metadata-directive" type:"string" enum:"MetadataDirective"`
7228 // Confirms that the requester knows that she or he will be charged for the
7229 // request. Bucket owners need not specify this parameter in their requests.
7230 // Documentation on downloading objects from requester pays buckets can be found
7231 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
7232 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
7234 // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
7235 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
7237 // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
7238 // data. This value is used to store the object and then it is discarded; Amazon
7239 // does not store the encryption key. The key must be appropriate for use with
7240 // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
7242 SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"`
7244 // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
7245 // Amazon S3 uses this header for a message integrity check to ensure the encryption
7246 // key was transmitted without error.
7247 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
7249 // Specifies the AWS KMS key ID to use for object encryption. All GET and PUT
7250 // requests for an object protected by AWS KMS will fail if not made via SSL
7251 // or using SigV4. Documentation on configuring any of the officially supported
7252 // AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version
7253 SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
7255 // The Server-side encryption algorithm used when storing this object in S3
7256 // (e.g., AES256, aws:kms).
7257 ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
7259 // The type of storage to use for the object. Defaults to 'STANDARD'.
7260 StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
7262 // The tag-set for the object destination object this value must be used in
7263 // conjunction with the TaggingDirective. The tag-set must be encoded as URL
7265 Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"`
7267 // Specifies whether the object tag-set are copied from the source object or
7268 // replaced with tag-set provided in the request.
7269 TaggingDirective *string `location:"header" locationName:"x-amz-tagging-directive" type:"string" enum:"TaggingDirective"`
7271 // If the bucket is configured as a website, redirects requests for this object
7272 // to another object in the same bucket or to an external URL. Amazon S3 stores
7273 // the value of this header in the object metadata.
7274 WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"`
7277 // String returns the string representation
7278 func (s CopyObjectInput) String() string {
7279 return awsutil.Prettify(s)
7282 // GoString returns the string representation
7283 func (s CopyObjectInput) GoString() string {
7287 // Validate inspects the fields of the type to determine if they are valid.
7288 func (s *CopyObjectInput) Validate() error {
7289 invalidParams := request.ErrInvalidParams{Context: "CopyObjectInput"}
7290 if s.Bucket == nil {
7291 invalidParams.Add(request.NewErrParamRequired("Bucket"))
7293 if s.CopySource == nil {
7294 invalidParams.Add(request.NewErrParamRequired("CopySource"))
7297 invalidParams.Add(request.NewErrParamRequired("Key"))
7299 if s.Key != nil && len(*s.Key) < 1 {
7300 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
7303 if invalidParams.Len() > 0 {
7304 return invalidParams
7309 // SetACL sets the ACL field's value.
7310 func (s *CopyObjectInput) SetACL(v string) *CopyObjectInput {
7315 // SetBucket sets the Bucket field's value.
7316 func (s *CopyObjectInput) SetBucket(v string) *CopyObjectInput {
7321 // SetCacheControl sets the CacheControl field's value.
7322 func (s *CopyObjectInput) SetCacheControl(v string) *CopyObjectInput {
7327 // SetContentDisposition sets the ContentDisposition field's value.
7328 func (s *CopyObjectInput) SetContentDisposition(v string) *CopyObjectInput {
7329 s.ContentDisposition = &v
7333 // SetContentEncoding sets the ContentEncoding field's value.
7334 func (s *CopyObjectInput) SetContentEncoding(v string) *CopyObjectInput {
7335 s.ContentEncoding = &v
7339 // SetContentLanguage sets the ContentLanguage field's value.
7340 func (s *CopyObjectInput) SetContentLanguage(v string) *CopyObjectInput {
7341 s.ContentLanguage = &v
7345 // SetContentType sets the ContentType field's value.
7346 func (s *CopyObjectInput) SetContentType(v string) *CopyObjectInput {
7351 // SetCopySource sets the CopySource field's value.
7352 func (s *CopyObjectInput) SetCopySource(v string) *CopyObjectInput {
7357 // SetCopySourceIfMatch sets the CopySourceIfMatch field's value.
7358 func (s *CopyObjectInput) SetCopySourceIfMatch(v string) *CopyObjectInput {
7359 s.CopySourceIfMatch = &v
7363 // SetCopySourceIfModifiedSince sets the CopySourceIfModifiedSince field's value.
7364 func (s *CopyObjectInput) SetCopySourceIfModifiedSince(v time.Time) *CopyObjectInput {
7365 s.CopySourceIfModifiedSince = &v
7369 // SetCopySourceIfNoneMatch sets the CopySourceIfNoneMatch field's value.
7370 func (s *CopyObjectInput) SetCopySourceIfNoneMatch(v string) *CopyObjectInput {
7371 s.CopySourceIfNoneMatch = &v
7375 // SetCopySourceIfUnmodifiedSince sets the CopySourceIfUnmodifiedSince field's value.
7376 func (s *CopyObjectInput) SetCopySourceIfUnmodifiedSince(v time.Time) *CopyObjectInput {
7377 s.CopySourceIfUnmodifiedSince = &v
7381 // SetCopySourceSSECustomerAlgorithm sets the CopySourceSSECustomerAlgorithm field's value.
7382 func (s *CopyObjectInput) SetCopySourceSSECustomerAlgorithm(v string) *CopyObjectInput {
7383 s.CopySourceSSECustomerAlgorithm = &v
7387 // SetCopySourceSSECustomerKey sets the CopySourceSSECustomerKey field's value.
7388 func (s *CopyObjectInput) SetCopySourceSSECustomerKey(v string) *CopyObjectInput {
7389 s.CopySourceSSECustomerKey = &v
7393 // SetCopySourceSSECustomerKeyMD5 sets the CopySourceSSECustomerKeyMD5 field's value.
7394 func (s *CopyObjectInput) SetCopySourceSSECustomerKeyMD5(v string) *CopyObjectInput {
7395 s.CopySourceSSECustomerKeyMD5 = &v
7399 // SetExpires sets the Expires field's value.
7400 func (s *CopyObjectInput) SetExpires(v time.Time) *CopyObjectInput {
7405 // SetGrantFullControl sets the GrantFullControl field's value.
7406 func (s *CopyObjectInput) SetGrantFullControl(v string) *CopyObjectInput {
7407 s.GrantFullControl = &v
7411 // SetGrantRead sets the GrantRead field's value.
7412 func (s *CopyObjectInput) SetGrantRead(v string) *CopyObjectInput {
7417 // SetGrantReadACP sets the GrantReadACP field's value.
7418 func (s *CopyObjectInput) SetGrantReadACP(v string) *CopyObjectInput {
7423 // SetGrantWriteACP sets the GrantWriteACP field's value.
7424 func (s *CopyObjectInput) SetGrantWriteACP(v string) *CopyObjectInput {
7425 s.GrantWriteACP = &v
7429 // SetKey sets the Key field's value.
7430 func (s *CopyObjectInput) SetKey(v string) *CopyObjectInput {
7435 // SetMetadata sets the Metadata field's value.
7436 func (s *CopyObjectInput) SetMetadata(v map[string]*string) *CopyObjectInput {
7441 // SetMetadataDirective sets the MetadataDirective field's value.
7442 func (s *CopyObjectInput) SetMetadataDirective(v string) *CopyObjectInput {
7443 s.MetadataDirective = &v
7447 // SetRequestPayer sets the RequestPayer field's value.
7448 func (s *CopyObjectInput) SetRequestPayer(v string) *CopyObjectInput {
7453 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
7454 func (s *CopyObjectInput) SetSSECustomerAlgorithm(v string) *CopyObjectInput {
7455 s.SSECustomerAlgorithm = &v
7459 // SetSSECustomerKey sets the SSECustomerKey field's value.
7460 func (s *CopyObjectInput) SetSSECustomerKey(v string) *CopyObjectInput {
7461 s.SSECustomerKey = &v
7465 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
7466 func (s *CopyObjectInput) SetSSECustomerKeyMD5(v string) *CopyObjectInput {
7467 s.SSECustomerKeyMD5 = &v
7471 // SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
7472 func (s *CopyObjectInput) SetSSEKMSKeyId(v string) *CopyObjectInput {
7477 // SetServerSideEncryption sets the ServerSideEncryption field's value.
7478 func (s *CopyObjectInput) SetServerSideEncryption(v string) *CopyObjectInput {
7479 s.ServerSideEncryption = &v
7483 // SetStorageClass sets the StorageClass field's value.
7484 func (s *CopyObjectInput) SetStorageClass(v string) *CopyObjectInput {
7489 // SetTagging sets the Tagging field's value.
7490 func (s *CopyObjectInput) SetTagging(v string) *CopyObjectInput {
7495 // SetTaggingDirective sets the TaggingDirective field's value.
7496 func (s *CopyObjectInput) SetTaggingDirective(v string) *CopyObjectInput {
7497 s.TaggingDirective = &v
7501 // SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.
7502 func (s *CopyObjectInput) SetWebsiteRedirectLocation(v string) *CopyObjectInput {
7503 s.WebsiteRedirectLocation = &v
7507 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObjectOutput
7508 type CopyObjectOutput struct {
7509 _ struct{} `type:"structure" payload:"CopyObjectResult"`
7511 CopyObjectResult *CopyObjectResult `type:"structure"`
7513 CopySourceVersionId *string `location:"header" locationName:"x-amz-copy-source-version-id" type:"string"`
7515 // If the object expiration is configured, the response includes this header.
7516 Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"`
7518 // If present, indicates that the requester was successfully charged for the
7520 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
7522 // If server-side encryption with a customer-provided encryption key was requested,
7523 // the response will include this header confirming the encryption algorithm
7525 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
7527 // If server-side encryption with a customer-provided encryption key was requested,
7528 // the response will include this header to provide round trip message integrity
7529 // verification of the customer-provided encryption key.
7530 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
7532 // If present, specifies the ID of the AWS Key Management Service (KMS) master
7533 // encryption key that was used for the object.
7534 SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
7536 // The Server-side encryption algorithm used when storing this object in S3
7537 // (e.g., AES256, aws:kms).
7538 ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
7540 // Version ID of the newly created copy.
7541 VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
7544 // String returns the string representation
7545 func (s CopyObjectOutput) String() string {
7546 return awsutil.Prettify(s)
7549 // GoString returns the string representation
7550 func (s CopyObjectOutput) GoString() string {
7554 // SetCopyObjectResult sets the CopyObjectResult field's value.
7555 func (s *CopyObjectOutput) SetCopyObjectResult(v *CopyObjectResult) *CopyObjectOutput {
7556 s.CopyObjectResult = v
7560 // SetCopySourceVersionId sets the CopySourceVersionId field's value.
7561 func (s *CopyObjectOutput) SetCopySourceVersionId(v string) *CopyObjectOutput {
7562 s.CopySourceVersionId = &v
7566 // SetExpiration sets the Expiration field's value.
7567 func (s *CopyObjectOutput) SetExpiration(v string) *CopyObjectOutput {
7572 // SetRequestCharged sets the RequestCharged field's value.
7573 func (s *CopyObjectOutput) SetRequestCharged(v string) *CopyObjectOutput {
7574 s.RequestCharged = &v
7578 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
7579 func (s *CopyObjectOutput) SetSSECustomerAlgorithm(v string) *CopyObjectOutput {
7580 s.SSECustomerAlgorithm = &v
7584 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
7585 func (s *CopyObjectOutput) SetSSECustomerKeyMD5(v string) *CopyObjectOutput {
7586 s.SSECustomerKeyMD5 = &v
7590 // SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
7591 func (s *CopyObjectOutput) SetSSEKMSKeyId(v string) *CopyObjectOutput {
7596 // SetServerSideEncryption sets the ServerSideEncryption field's value.
7597 func (s *CopyObjectOutput) SetServerSideEncryption(v string) *CopyObjectOutput {
7598 s.ServerSideEncryption = &v
7602 // SetVersionId sets the VersionId field's value.
7603 func (s *CopyObjectOutput) SetVersionId(v string) *CopyObjectOutput {
7608 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObjectResult
7609 type CopyObjectResult struct {
7610 _ struct{} `type:"structure"`
7612 ETag *string `type:"string"`
7614 LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
7617 // String returns the string representation
7618 func (s CopyObjectResult) String() string {
7619 return awsutil.Prettify(s)
7622 // GoString returns the string representation
7623 func (s CopyObjectResult) GoString() string {
7627 // SetETag sets the ETag field's value.
7628 func (s *CopyObjectResult) SetETag(v string) *CopyObjectResult {
7633 // SetLastModified sets the LastModified field's value.
7634 func (s *CopyObjectResult) SetLastModified(v time.Time) *CopyObjectResult {
7639 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyPartResult
7640 type CopyPartResult struct {
7641 _ struct{} `type:"structure"`
7643 // Entity tag of the object.
7644 ETag *string `type:"string"`
7646 // Date and time at which the object was uploaded.
7647 LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
7650 // String returns the string representation
7651 func (s CopyPartResult) String() string {
7652 return awsutil.Prettify(s)
7655 // GoString returns the string representation
7656 func (s CopyPartResult) GoString() string {
7660 // SetETag sets the ETag field's value.
7661 func (s *CopyPartResult) SetETag(v string) *CopyPartResult {
7666 // SetLastModified sets the LastModified field's value.
7667 func (s *CopyPartResult) SetLastModified(v time.Time) *CopyPartResult {
7672 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucketConfiguration
7673 type CreateBucketConfiguration struct {
7674 _ struct{} `type:"structure"`
7676 // Specifies the region where the bucket will be created. If you don't specify
7677 // a region, the bucket will be created in US Standard.
7678 LocationConstraint *string `type:"string" enum:"BucketLocationConstraint"`
7681 // String returns the string representation
7682 func (s CreateBucketConfiguration) String() string {
7683 return awsutil.Prettify(s)
7686 // GoString returns the string representation
7687 func (s CreateBucketConfiguration) GoString() string {
7691 // SetLocationConstraint sets the LocationConstraint field's value.
7692 func (s *CreateBucketConfiguration) SetLocationConstraint(v string) *CreateBucketConfiguration {
7693 s.LocationConstraint = &v
7697 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucketRequest
7698 type CreateBucketInput struct {
7699 _ struct{} `type:"structure" payload:"CreateBucketConfiguration"`
7701 // The canned ACL to apply to the bucket.
7702 ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"BucketCannedACL"`
7704 // Bucket is a required field
7705 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
7707 CreateBucketConfiguration *CreateBucketConfiguration `locationName:"CreateBucketConfiguration" type:"structure"`
7709 // Allows grantee the read, write, read ACP, and write ACP permissions on the
7711 GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
7713 // Allows grantee to list the objects in the bucket.
7714 GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"`
7716 // Allows grantee to read the bucket ACL.
7717 GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"`
7719 // Allows grantee to create, overwrite, and delete any object in the bucket.
7720 GrantWrite *string `location:"header" locationName:"x-amz-grant-write" type:"string"`
7722 // Allows grantee to write the ACL for the applicable bucket.
7723 GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`
7726 // String returns the string representation
7727 func (s CreateBucketInput) String() string {
7728 return awsutil.Prettify(s)
7731 // GoString returns the string representation
7732 func (s CreateBucketInput) GoString() string {
7736 // Validate inspects the fields of the type to determine if they are valid.
7737 func (s *CreateBucketInput) Validate() error {
7738 invalidParams := request.ErrInvalidParams{Context: "CreateBucketInput"}
7739 if s.Bucket == nil {
7740 invalidParams.Add(request.NewErrParamRequired("Bucket"))
7743 if invalidParams.Len() > 0 {
7744 return invalidParams
7749 // SetACL sets the ACL field's value.
7750 func (s *CreateBucketInput) SetACL(v string) *CreateBucketInput {
7755 // SetBucket sets the Bucket field's value.
7756 func (s *CreateBucketInput) SetBucket(v string) *CreateBucketInput {
7761 // SetCreateBucketConfiguration sets the CreateBucketConfiguration field's value.
7762 func (s *CreateBucketInput) SetCreateBucketConfiguration(v *CreateBucketConfiguration) *CreateBucketInput {
7763 s.CreateBucketConfiguration = v
7767 // SetGrantFullControl sets the GrantFullControl field's value.
7768 func (s *CreateBucketInput) SetGrantFullControl(v string) *CreateBucketInput {
7769 s.GrantFullControl = &v
7773 // SetGrantRead sets the GrantRead field's value.
7774 func (s *CreateBucketInput) SetGrantRead(v string) *CreateBucketInput {
7779 // SetGrantReadACP sets the GrantReadACP field's value.
7780 func (s *CreateBucketInput) SetGrantReadACP(v string) *CreateBucketInput {
7785 // SetGrantWrite sets the GrantWrite field's value.
7786 func (s *CreateBucketInput) SetGrantWrite(v string) *CreateBucketInput {
7791 // SetGrantWriteACP sets the GrantWriteACP field's value.
7792 func (s *CreateBucketInput) SetGrantWriteACP(v string) *CreateBucketInput {
7793 s.GrantWriteACP = &v
7797 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucketOutput
7798 type CreateBucketOutput struct {
7799 _ struct{} `type:"structure"`
7801 Location *string `location:"header" locationName:"Location" type:"string"`
7804 // String returns the string representation
7805 func (s CreateBucketOutput) String() string {
7806 return awsutil.Prettify(s)
7809 // GoString returns the string representation
7810 func (s CreateBucketOutput) GoString() string {
7814 // SetLocation sets the Location field's value.
7815 func (s *CreateBucketOutput) SetLocation(v string) *CreateBucketOutput {
7820 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateMultipartUploadRequest
7821 type CreateMultipartUploadInput struct {
7822 _ struct{} `type:"structure"`
7824 // The canned ACL to apply to the object.
7825 ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`
7827 // Bucket is a required field
7828 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
7830 // Specifies caching behavior along the request/reply chain.
7831 CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"`
7833 // Specifies presentational information for the object.
7834 ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`
7836 // Specifies what content encodings have been applied to the object and thus
7837 // what decoding mechanisms must be applied to obtain the media-type referenced
7838 // by the Content-Type header field.
7839 ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"`
7841 // The language the content is in.
7842 ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`
7844 // A standard MIME type describing the format of the object data.
7845 ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
7847 // The date and time at which the object is no longer cacheable.
7848 Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp" timestampFormat:"rfc822"`
7850 // Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
7851 GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
7853 // Allows grantee to read the object data and its metadata.
7854 GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"`
7856 // Allows grantee to read the object ACL.
7857 GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"`
7859 // Allows grantee to write the ACL for the applicable object.
7860 GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`
7862 // Key is a required field
7863 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
7865 // A map of metadata to store with the object in S3.
7866 Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
7868 // Confirms that the requester knows that she or he will be charged for the
7869 // request. Bucket owners need not specify this parameter in their requests.
7870 // Documentation on downloading objects from requester pays buckets can be found
7871 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
7872 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
7874 // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
7875 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
7877 // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
7878 // data. This value is used to store the object and then it is discarded; Amazon
7879 // does not store the encryption key. The key must be appropriate for use with
7880 // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
7882 SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"`
7884 // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
7885 // Amazon S3 uses this header for a message integrity check to ensure the encryption
7886 // key was transmitted without error.
7887 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
7889 // Specifies the AWS KMS key ID to use for object encryption. All GET and PUT
7890 // requests for an object protected by AWS KMS will fail if not made via SSL
7891 // or using SigV4. Documentation on configuring any of the officially supported
7892 // AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version
7893 SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
7895 // The Server-side encryption algorithm used when storing this object in S3
7896 // (e.g., AES256, aws:kms).
7897 ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
7899 // The type of storage to use for the object. Defaults to 'STANDARD'.
7900 StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
7902 // If the bucket is configured as a website, redirects requests for this object
7903 // to another object in the same bucket or to an external URL. Amazon S3 stores
7904 // the value of this header in the object metadata.
7905 WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"`
7908 // String returns the string representation
7909 func (s CreateMultipartUploadInput) String() string {
7910 return awsutil.Prettify(s)
7913 // GoString returns the string representation
7914 func (s CreateMultipartUploadInput) GoString() string {
7918 // Validate inspects the fields of the type to determine if they are valid.
7919 func (s *CreateMultipartUploadInput) Validate() error {
7920 invalidParams := request.ErrInvalidParams{Context: "CreateMultipartUploadInput"}
7921 if s.Bucket == nil {
7922 invalidParams.Add(request.NewErrParamRequired("Bucket"))
7925 invalidParams.Add(request.NewErrParamRequired("Key"))
7927 if s.Key != nil && len(*s.Key) < 1 {
7928 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
7931 if invalidParams.Len() > 0 {
7932 return invalidParams
7937 // SetACL sets the ACL field's value.
7938 func (s *CreateMultipartUploadInput) SetACL(v string) *CreateMultipartUploadInput {
7943 // SetBucket sets the Bucket field's value.
7944 func (s *CreateMultipartUploadInput) SetBucket(v string) *CreateMultipartUploadInput {
7949 // SetCacheControl sets the CacheControl field's value.
7950 func (s *CreateMultipartUploadInput) SetCacheControl(v string) *CreateMultipartUploadInput {
7955 // SetContentDisposition sets the ContentDisposition field's value.
7956 func (s *CreateMultipartUploadInput) SetContentDisposition(v string) *CreateMultipartUploadInput {
7957 s.ContentDisposition = &v
7961 // SetContentEncoding sets the ContentEncoding field's value.
7962 func (s *CreateMultipartUploadInput) SetContentEncoding(v string) *CreateMultipartUploadInput {
7963 s.ContentEncoding = &v
7967 // SetContentLanguage sets the ContentLanguage field's value.
7968 func (s *CreateMultipartUploadInput) SetContentLanguage(v string) *CreateMultipartUploadInput {
7969 s.ContentLanguage = &v
7973 // SetContentType sets the ContentType field's value.
7974 func (s *CreateMultipartUploadInput) SetContentType(v string) *CreateMultipartUploadInput {
7979 // SetExpires sets the Expires field's value.
7980 func (s *CreateMultipartUploadInput) SetExpires(v time.Time) *CreateMultipartUploadInput {
7985 // SetGrantFullControl sets the GrantFullControl field's value.
7986 func (s *CreateMultipartUploadInput) SetGrantFullControl(v string) *CreateMultipartUploadInput {
7987 s.GrantFullControl = &v
7991 // SetGrantRead sets the GrantRead field's value.
7992 func (s *CreateMultipartUploadInput) SetGrantRead(v string) *CreateMultipartUploadInput {
7997 // SetGrantReadACP sets the GrantReadACP field's value.
7998 func (s *CreateMultipartUploadInput) SetGrantReadACP(v string) *CreateMultipartUploadInput {
8003 // SetGrantWriteACP sets the GrantWriteACP field's value.
8004 func (s *CreateMultipartUploadInput) SetGrantWriteACP(v string) *CreateMultipartUploadInput {
8005 s.GrantWriteACP = &v
8009 // SetKey sets the Key field's value.
8010 func (s *CreateMultipartUploadInput) SetKey(v string) *CreateMultipartUploadInput {
8015 // SetMetadata sets the Metadata field's value.
8016 func (s *CreateMultipartUploadInput) SetMetadata(v map[string]*string) *CreateMultipartUploadInput {
8021 // SetRequestPayer sets the RequestPayer field's value.
8022 func (s *CreateMultipartUploadInput) SetRequestPayer(v string) *CreateMultipartUploadInput {
8027 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
8028 func (s *CreateMultipartUploadInput) SetSSECustomerAlgorithm(v string) *CreateMultipartUploadInput {
8029 s.SSECustomerAlgorithm = &v
8033 // SetSSECustomerKey sets the SSECustomerKey field's value.
8034 func (s *CreateMultipartUploadInput) SetSSECustomerKey(v string) *CreateMultipartUploadInput {
8035 s.SSECustomerKey = &v
8039 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
8040 func (s *CreateMultipartUploadInput) SetSSECustomerKeyMD5(v string) *CreateMultipartUploadInput {
8041 s.SSECustomerKeyMD5 = &v
8045 // SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
8046 func (s *CreateMultipartUploadInput) SetSSEKMSKeyId(v string) *CreateMultipartUploadInput {
8051 // SetServerSideEncryption sets the ServerSideEncryption field's value.
8052 func (s *CreateMultipartUploadInput) SetServerSideEncryption(v string) *CreateMultipartUploadInput {
8053 s.ServerSideEncryption = &v
8057 // SetStorageClass sets the StorageClass field's value.
8058 func (s *CreateMultipartUploadInput) SetStorageClass(v string) *CreateMultipartUploadInput {
8063 // SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.
8064 func (s *CreateMultipartUploadInput) SetWebsiteRedirectLocation(v string) *CreateMultipartUploadInput {
8065 s.WebsiteRedirectLocation = &v
8069 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateMultipartUploadOutput
8070 type CreateMultipartUploadOutput struct {
8071 _ struct{} `type:"structure"`
8073 // Date when multipart upload will become eligible for abort operation by lifecycle.
8074 AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp" timestampFormat:"rfc822"`
8076 // Id of the lifecycle rule that makes a multipart upload eligible for abort
8078 AbortRuleId *string `location:"header" locationName:"x-amz-abort-rule-id" type:"string"`
8080 // Name of the bucket to which the multipart upload was initiated.
8081 Bucket *string `locationName:"Bucket" type:"string"`
8083 // Object key for which the multipart upload was initiated.
8084 Key *string `min:"1" type:"string"`
8086 // If present, indicates that the requester was successfully charged for the
8088 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
8090 // If server-side encryption with a customer-provided encryption key was requested,
8091 // the response will include this header confirming the encryption algorithm
8093 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
8095 // If server-side encryption with a customer-provided encryption key was requested,
8096 // the response will include this header to provide round trip message integrity
8097 // verification of the customer-provided encryption key.
8098 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
8100 // If present, specifies the ID of the AWS Key Management Service (KMS) master
8101 // encryption key that was used for the object.
8102 SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
8104 // The Server-side encryption algorithm used when storing this object in S3
8105 // (e.g., AES256, aws:kms).
8106 ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
8108 // ID for the initiated multipart upload.
8109 UploadId *string `type:"string"`
8112 // String returns the string representation
8113 func (s CreateMultipartUploadOutput) String() string {
8114 return awsutil.Prettify(s)
8117 // GoString returns the string representation
8118 func (s CreateMultipartUploadOutput) GoString() string {
8122 // SetAbortDate sets the AbortDate field's value.
8123 func (s *CreateMultipartUploadOutput) SetAbortDate(v time.Time) *CreateMultipartUploadOutput {
8128 // SetAbortRuleId sets the AbortRuleId field's value.
8129 func (s *CreateMultipartUploadOutput) SetAbortRuleId(v string) *CreateMultipartUploadOutput {
8134 // SetBucket sets the Bucket field's value.
8135 func (s *CreateMultipartUploadOutput) SetBucket(v string) *CreateMultipartUploadOutput {
8140 // SetKey sets the Key field's value.
8141 func (s *CreateMultipartUploadOutput) SetKey(v string) *CreateMultipartUploadOutput {
8146 // SetRequestCharged sets the RequestCharged field's value.
8147 func (s *CreateMultipartUploadOutput) SetRequestCharged(v string) *CreateMultipartUploadOutput {
8148 s.RequestCharged = &v
8152 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
8153 func (s *CreateMultipartUploadOutput) SetSSECustomerAlgorithm(v string) *CreateMultipartUploadOutput {
8154 s.SSECustomerAlgorithm = &v
8158 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
8159 func (s *CreateMultipartUploadOutput) SetSSECustomerKeyMD5(v string) *CreateMultipartUploadOutput {
8160 s.SSECustomerKeyMD5 = &v
8164 // SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
8165 func (s *CreateMultipartUploadOutput) SetSSEKMSKeyId(v string) *CreateMultipartUploadOutput {
8170 // SetServerSideEncryption sets the ServerSideEncryption field's value.
8171 func (s *CreateMultipartUploadOutput) SetServerSideEncryption(v string) *CreateMultipartUploadOutput {
8172 s.ServerSideEncryption = &v
8176 // SetUploadId sets the UploadId field's value.
8177 func (s *CreateMultipartUploadOutput) SetUploadId(v string) *CreateMultipartUploadOutput {
8182 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Delete
8183 type Delete struct {
8184 _ struct{} `type:"structure"`
8186 // Objects is a required field
8187 Objects []*ObjectIdentifier `locationName:"Object" type:"list" flattened:"true" required:"true"`
8189 // Element to enable quiet mode for the request. When you add this element,
8190 // you must set its value to true.
8191 Quiet *bool `type:"boolean"`
8194 // String returns the string representation
8195 func (s Delete) String() string {
8196 return awsutil.Prettify(s)
8199 // GoString returns the string representation
8200 func (s Delete) GoString() string {
8204 // Validate inspects the fields of the type to determine if they are valid.
8205 func (s *Delete) Validate() error {
8206 invalidParams := request.ErrInvalidParams{Context: "Delete"}
8207 if s.Objects == nil {
8208 invalidParams.Add(request.NewErrParamRequired("Objects"))
8210 if s.Objects != nil {
8211 for i, v := range s.Objects {
8215 if err := v.Validate(); err != nil {
8216 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Objects", i), err.(request.ErrInvalidParams))
8221 if invalidParams.Len() > 0 {
8222 return invalidParams
8227 // SetObjects sets the Objects field's value.
8228 func (s *Delete) SetObjects(v []*ObjectIdentifier) *Delete {
8233 // SetQuiet sets the Quiet field's value.
8234 func (s *Delete) SetQuiet(v bool) *Delete {
8239 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketAnalyticsConfigurationRequest
8240 type DeleteBucketAnalyticsConfigurationInput struct {
8241 _ struct{} `type:"structure"`
8243 // The name of the bucket from which an analytics configuration is deleted.
8245 // Bucket is a required field
8246 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
8248 // The identifier used to represent an analytics configuration.
8250 // Id is a required field
8251 Id *string `location:"querystring" locationName:"id" type:"string" required:"true"`
8254 // String returns the string representation
8255 func (s DeleteBucketAnalyticsConfigurationInput) String() string {
8256 return awsutil.Prettify(s)
8259 // GoString returns the string representation
8260 func (s DeleteBucketAnalyticsConfigurationInput) GoString() string {
8264 // Validate inspects the fields of the type to determine if they are valid.
8265 func (s *DeleteBucketAnalyticsConfigurationInput) Validate() error {
8266 invalidParams := request.ErrInvalidParams{Context: "DeleteBucketAnalyticsConfigurationInput"}
8267 if s.Bucket == nil {
8268 invalidParams.Add(request.NewErrParamRequired("Bucket"))
8271 invalidParams.Add(request.NewErrParamRequired("Id"))
8274 if invalidParams.Len() > 0 {
8275 return invalidParams
8280 // SetBucket sets the Bucket field's value.
8281 func (s *DeleteBucketAnalyticsConfigurationInput) SetBucket(v string) *DeleteBucketAnalyticsConfigurationInput {
8286 // SetId sets the Id field's value.
8287 func (s *DeleteBucketAnalyticsConfigurationInput) SetId(v string) *DeleteBucketAnalyticsConfigurationInput {
8292 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketAnalyticsConfigurationOutput
8293 type DeleteBucketAnalyticsConfigurationOutput struct {
8294 _ struct{} `type:"structure"`
8297 // String returns the string representation
8298 func (s DeleteBucketAnalyticsConfigurationOutput) String() string {
8299 return awsutil.Prettify(s)
8302 // GoString returns the string representation
8303 func (s DeleteBucketAnalyticsConfigurationOutput) GoString() string {
8307 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketCorsRequest
8308 type DeleteBucketCorsInput struct {
8309 _ struct{} `type:"structure"`
8311 // Bucket is a required field
8312 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
8315 // String returns the string representation
8316 func (s DeleteBucketCorsInput) String() string {
8317 return awsutil.Prettify(s)
8320 // GoString returns the string representation
8321 func (s DeleteBucketCorsInput) GoString() string {
8325 // Validate inspects the fields of the type to determine if they are valid.
8326 func (s *DeleteBucketCorsInput) Validate() error {
8327 invalidParams := request.ErrInvalidParams{Context: "DeleteBucketCorsInput"}
8328 if s.Bucket == nil {
8329 invalidParams.Add(request.NewErrParamRequired("Bucket"))
8332 if invalidParams.Len() > 0 {
8333 return invalidParams
8338 // SetBucket sets the Bucket field's value.
8339 func (s *DeleteBucketCorsInput) SetBucket(v string) *DeleteBucketCorsInput {
8344 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketCorsOutput
8345 type DeleteBucketCorsOutput struct {
8346 _ struct{} `type:"structure"`
8349 // String returns the string representation
8350 func (s DeleteBucketCorsOutput) String() string {
8351 return awsutil.Prettify(s)
8354 // GoString returns the string representation
8355 func (s DeleteBucketCorsOutput) GoString() string {
8359 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketRequest
8360 type DeleteBucketInput struct {
8361 _ struct{} `type:"structure"`
8363 // Bucket is a required field
8364 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
8367 // String returns the string representation
8368 func (s DeleteBucketInput) String() string {
8369 return awsutil.Prettify(s)
8372 // GoString returns the string representation
8373 func (s DeleteBucketInput) GoString() string {
8377 // Validate inspects the fields of the type to determine if they are valid.
8378 func (s *DeleteBucketInput) Validate() error {
8379 invalidParams := request.ErrInvalidParams{Context: "DeleteBucketInput"}
8380 if s.Bucket == nil {
8381 invalidParams.Add(request.NewErrParamRequired("Bucket"))
8384 if invalidParams.Len() > 0 {
8385 return invalidParams
8390 // SetBucket sets the Bucket field's value.
8391 func (s *DeleteBucketInput) SetBucket(v string) *DeleteBucketInput {
8396 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketInventoryConfigurationRequest
8397 type DeleteBucketInventoryConfigurationInput struct {
8398 _ struct{} `type:"structure"`
8400 // The name of the bucket containing the inventory configuration to delete.
8402 // Bucket is a required field
8403 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
8405 // The ID used to identify the inventory configuration.
8407 // Id is a required field
8408 Id *string `location:"querystring" locationName:"id" type:"string" required:"true"`
8411 // String returns the string representation
8412 func (s DeleteBucketInventoryConfigurationInput) String() string {
8413 return awsutil.Prettify(s)
8416 // GoString returns the string representation
8417 func (s DeleteBucketInventoryConfigurationInput) GoString() string {
8421 // Validate inspects the fields of the type to determine if they are valid.
8422 func (s *DeleteBucketInventoryConfigurationInput) Validate() error {
8423 invalidParams := request.ErrInvalidParams{Context: "DeleteBucketInventoryConfigurationInput"}
8424 if s.Bucket == nil {
8425 invalidParams.Add(request.NewErrParamRequired("Bucket"))
8428 invalidParams.Add(request.NewErrParamRequired("Id"))
8431 if invalidParams.Len() > 0 {
8432 return invalidParams
8437 // SetBucket sets the Bucket field's value.
8438 func (s *DeleteBucketInventoryConfigurationInput) SetBucket(v string) *DeleteBucketInventoryConfigurationInput {
8443 // SetId sets the Id field's value.
8444 func (s *DeleteBucketInventoryConfigurationInput) SetId(v string) *DeleteBucketInventoryConfigurationInput {
8449 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketInventoryConfigurationOutput
8450 type DeleteBucketInventoryConfigurationOutput struct {
8451 _ struct{} `type:"structure"`
8454 // String returns the string representation
8455 func (s DeleteBucketInventoryConfigurationOutput) String() string {
8456 return awsutil.Prettify(s)
8459 // GoString returns the string representation
8460 func (s DeleteBucketInventoryConfigurationOutput) GoString() string {
8464 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketLifecycleRequest
8465 type DeleteBucketLifecycleInput struct {
8466 _ struct{} `type:"structure"`
8468 // Bucket is a required field
8469 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
8472 // String returns the string representation
8473 func (s DeleteBucketLifecycleInput) String() string {
8474 return awsutil.Prettify(s)
8477 // GoString returns the string representation
8478 func (s DeleteBucketLifecycleInput) GoString() string {
8482 // Validate inspects the fields of the type to determine if they are valid.
8483 func (s *DeleteBucketLifecycleInput) Validate() error {
8484 invalidParams := request.ErrInvalidParams{Context: "DeleteBucketLifecycleInput"}
8485 if s.Bucket == nil {
8486 invalidParams.Add(request.NewErrParamRequired("Bucket"))
8489 if invalidParams.Len() > 0 {
8490 return invalidParams
8495 // SetBucket sets the Bucket field's value.
8496 func (s *DeleteBucketLifecycleInput) SetBucket(v string) *DeleteBucketLifecycleInput {
8501 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketLifecycleOutput
8502 type DeleteBucketLifecycleOutput struct {
8503 _ struct{} `type:"structure"`
8506 // String returns the string representation
8507 func (s DeleteBucketLifecycleOutput) String() string {
8508 return awsutil.Prettify(s)
8511 // GoString returns the string representation
8512 func (s DeleteBucketLifecycleOutput) GoString() string {
8516 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketMetricsConfigurationRequest
8517 type DeleteBucketMetricsConfigurationInput struct {
8518 _ struct{} `type:"structure"`
8520 // The name of the bucket containing the metrics configuration to delete.
8522 // Bucket is a required field
8523 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
8525 // The ID used to identify the metrics configuration.
8527 // Id is a required field
8528 Id *string `location:"querystring" locationName:"id" type:"string" required:"true"`
8531 // String returns the string representation
8532 func (s DeleteBucketMetricsConfigurationInput) String() string {
8533 return awsutil.Prettify(s)
8536 // GoString returns the string representation
8537 func (s DeleteBucketMetricsConfigurationInput) GoString() string {
8541 // Validate inspects the fields of the type to determine if they are valid.
8542 func (s *DeleteBucketMetricsConfigurationInput) Validate() error {
8543 invalidParams := request.ErrInvalidParams{Context: "DeleteBucketMetricsConfigurationInput"}
8544 if s.Bucket == nil {
8545 invalidParams.Add(request.NewErrParamRequired("Bucket"))
8548 invalidParams.Add(request.NewErrParamRequired("Id"))
8551 if invalidParams.Len() > 0 {
8552 return invalidParams
8557 // SetBucket sets the Bucket field's value.
8558 func (s *DeleteBucketMetricsConfigurationInput) SetBucket(v string) *DeleteBucketMetricsConfigurationInput {
8563 // SetId sets the Id field's value.
8564 func (s *DeleteBucketMetricsConfigurationInput) SetId(v string) *DeleteBucketMetricsConfigurationInput {
8569 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketMetricsConfigurationOutput
8570 type DeleteBucketMetricsConfigurationOutput struct {
8571 _ struct{} `type:"structure"`
8574 // String returns the string representation
8575 func (s DeleteBucketMetricsConfigurationOutput) String() string {
8576 return awsutil.Prettify(s)
8579 // GoString returns the string representation
8580 func (s DeleteBucketMetricsConfigurationOutput) GoString() string {
8584 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketOutput
8585 type DeleteBucketOutput struct {
8586 _ struct{} `type:"structure"`
8589 // String returns the string representation
8590 func (s DeleteBucketOutput) String() string {
8591 return awsutil.Prettify(s)
8594 // GoString returns the string representation
8595 func (s DeleteBucketOutput) GoString() string {
8599 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketPolicyRequest
8600 type DeleteBucketPolicyInput struct {
8601 _ struct{} `type:"structure"`
8603 // Bucket is a required field
8604 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
8607 // String returns the string representation
8608 func (s DeleteBucketPolicyInput) String() string {
8609 return awsutil.Prettify(s)
8612 // GoString returns the string representation
8613 func (s DeleteBucketPolicyInput) GoString() string {
8617 // Validate inspects the fields of the type to determine if they are valid.
8618 func (s *DeleteBucketPolicyInput) Validate() error {
8619 invalidParams := request.ErrInvalidParams{Context: "DeleteBucketPolicyInput"}
8620 if s.Bucket == nil {
8621 invalidParams.Add(request.NewErrParamRequired("Bucket"))
8624 if invalidParams.Len() > 0 {
8625 return invalidParams
8630 // SetBucket sets the Bucket field's value.
8631 func (s *DeleteBucketPolicyInput) SetBucket(v string) *DeleteBucketPolicyInput {
8636 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketPolicyOutput
8637 type DeleteBucketPolicyOutput struct {
8638 _ struct{} `type:"structure"`
8641 // String returns the string representation
8642 func (s DeleteBucketPolicyOutput) String() string {
8643 return awsutil.Prettify(s)
8646 // GoString returns the string representation
8647 func (s DeleteBucketPolicyOutput) GoString() string {
8651 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketReplicationRequest
8652 type DeleteBucketReplicationInput struct {
8653 _ struct{} `type:"structure"`
8655 // Bucket is a required field
8656 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
8659 // String returns the string representation
8660 func (s DeleteBucketReplicationInput) String() string {
8661 return awsutil.Prettify(s)
8664 // GoString returns the string representation
8665 func (s DeleteBucketReplicationInput) GoString() string {
8669 // Validate inspects the fields of the type to determine if they are valid.
8670 func (s *DeleteBucketReplicationInput) Validate() error {
8671 invalidParams := request.ErrInvalidParams{Context: "DeleteBucketReplicationInput"}
8672 if s.Bucket == nil {
8673 invalidParams.Add(request.NewErrParamRequired("Bucket"))
8676 if invalidParams.Len() > 0 {
8677 return invalidParams
8682 // SetBucket sets the Bucket field's value.
8683 func (s *DeleteBucketReplicationInput) SetBucket(v string) *DeleteBucketReplicationInput {
8688 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketReplicationOutput
8689 type DeleteBucketReplicationOutput struct {
8690 _ struct{} `type:"structure"`
8693 // String returns the string representation
8694 func (s DeleteBucketReplicationOutput) String() string {
8695 return awsutil.Prettify(s)
8698 // GoString returns the string representation
8699 func (s DeleteBucketReplicationOutput) GoString() string {
8703 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketTaggingRequest
8704 type DeleteBucketTaggingInput struct {
8705 _ struct{} `type:"structure"`
8707 // Bucket is a required field
8708 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
8711 // String returns the string representation
8712 func (s DeleteBucketTaggingInput) String() string {
8713 return awsutil.Prettify(s)
8716 // GoString returns the string representation
8717 func (s DeleteBucketTaggingInput) GoString() string {
8721 // Validate inspects the fields of the type to determine if they are valid.
8722 func (s *DeleteBucketTaggingInput) Validate() error {
8723 invalidParams := request.ErrInvalidParams{Context: "DeleteBucketTaggingInput"}
8724 if s.Bucket == nil {
8725 invalidParams.Add(request.NewErrParamRequired("Bucket"))
8728 if invalidParams.Len() > 0 {
8729 return invalidParams
8734 // SetBucket sets the Bucket field's value.
8735 func (s *DeleteBucketTaggingInput) SetBucket(v string) *DeleteBucketTaggingInput {
8740 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketTaggingOutput
8741 type DeleteBucketTaggingOutput struct {
8742 _ struct{} `type:"structure"`
8745 // String returns the string representation
8746 func (s DeleteBucketTaggingOutput) String() string {
8747 return awsutil.Prettify(s)
8750 // GoString returns the string representation
8751 func (s DeleteBucketTaggingOutput) GoString() string {
8755 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketWebsiteRequest
8756 type DeleteBucketWebsiteInput struct {
8757 _ struct{} `type:"structure"`
8759 // Bucket is a required field
8760 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
8763 // String returns the string representation
8764 func (s DeleteBucketWebsiteInput) String() string {
8765 return awsutil.Prettify(s)
8768 // GoString returns the string representation
8769 func (s DeleteBucketWebsiteInput) GoString() string {
8773 // Validate inspects the fields of the type to determine if they are valid.
8774 func (s *DeleteBucketWebsiteInput) Validate() error {
8775 invalidParams := request.ErrInvalidParams{Context: "DeleteBucketWebsiteInput"}
8776 if s.Bucket == nil {
8777 invalidParams.Add(request.NewErrParamRequired("Bucket"))
8780 if invalidParams.Len() > 0 {
8781 return invalidParams
8786 // SetBucket sets the Bucket field's value.
8787 func (s *DeleteBucketWebsiteInput) SetBucket(v string) *DeleteBucketWebsiteInput {
8792 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketWebsiteOutput
8793 type DeleteBucketWebsiteOutput struct {
8794 _ struct{} `type:"structure"`
8797 // String returns the string representation
8798 func (s DeleteBucketWebsiteOutput) String() string {
8799 return awsutil.Prettify(s)
8802 // GoString returns the string representation
8803 func (s DeleteBucketWebsiteOutput) GoString() string {
8807 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteMarkerEntry
8808 type DeleteMarkerEntry struct {
8809 _ struct{} `type:"structure"`
8811 // Specifies whether the object is (true) or is not (false) the latest version
8813 IsLatest *bool `type:"boolean"`
8816 Key *string `min:"1" type:"string"`
8818 // Date and time the object was last modified.
8819 LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
8821 Owner *Owner `type:"structure"`
8823 // Version ID of an object.
8824 VersionId *string `type:"string"`
8827 // String returns the string representation
8828 func (s DeleteMarkerEntry) String() string {
8829 return awsutil.Prettify(s)
8832 // GoString returns the string representation
8833 func (s DeleteMarkerEntry) GoString() string {
8837 // SetIsLatest sets the IsLatest field's value.
8838 func (s *DeleteMarkerEntry) SetIsLatest(v bool) *DeleteMarkerEntry {
8843 // SetKey sets the Key field's value.
8844 func (s *DeleteMarkerEntry) SetKey(v string) *DeleteMarkerEntry {
8849 // SetLastModified sets the LastModified field's value.
8850 func (s *DeleteMarkerEntry) SetLastModified(v time.Time) *DeleteMarkerEntry {
8855 // SetOwner sets the Owner field's value.
8856 func (s *DeleteMarkerEntry) SetOwner(v *Owner) *DeleteMarkerEntry {
8861 // SetVersionId sets the VersionId field's value.
8862 func (s *DeleteMarkerEntry) SetVersionId(v string) *DeleteMarkerEntry {
8867 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectRequest
8868 type DeleteObjectInput struct {
8869 _ struct{} `type:"structure"`
8871 // Bucket is a required field
8872 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
8874 // Key is a required field
8875 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
8877 // The concatenation of the authentication device's serial number, a space,
8878 // and the value that is displayed on your authentication device.
8879 MFA *string `location:"header" locationName:"x-amz-mfa" type:"string"`
8881 // Confirms that the requester knows that she or he will be charged for the
8882 // request. Bucket owners need not specify this parameter in their requests.
8883 // Documentation on downloading objects from requester pays buckets can be found
8884 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
8885 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
8887 // VersionId used to reference a specific version of the object.
8888 VersionId *string `location:"querystring" locationName:"versionId" type:"string"`
8891 // String returns the string representation
8892 func (s DeleteObjectInput) String() string {
8893 return awsutil.Prettify(s)
8896 // GoString returns the string representation
8897 func (s DeleteObjectInput) GoString() string {
8901 // Validate inspects the fields of the type to determine if they are valid.
8902 func (s *DeleteObjectInput) Validate() error {
8903 invalidParams := request.ErrInvalidParams{Context: "DeleteObjectInput"}
8904 if s.Bucket == nil {
8905 invalidParams.Add(request.NewErrParamRequired("Bucket"))
8908 invalidParams.Add(request.NewErrParamRequired("Key"))
8910 if s.Key != nil && len(*s.Key) < 1 {
8911 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
8914 if invalidParams.Len() > 0 {
8915 return invalidParams
8920 // SetBucket sets the Bucket field's value.
8921 func (s *DeleteObjectInput) SetBucket(v string) *DeleteObjectInput {
8926 // SetKey sets the Key field's value.
8927 func (s *DeleteObjectInput) SetKey(v string) *DeleteObjectInput {
8932 // SetMFA sets the MFA field's value.
8933 func (s *DeleteObjectInput) SetMFA(v string) *DeleteObjectInput {
8938 // SetRequestPayer sets the RequestPayer field's value.
8939 func (s *DeleteObjectInput) SetRequestPayer(v string) *DeleteObjectInput {
8944 // SetVersionId sets the VersionId field's value.
8945 func (s *DeleteObjectInput) SetVersionId(v string) *DeleteObjectInput {
8950 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectOutput
8951 type DeleteObjectOutput struct {
8952 _ struct{} `type:"structure"`
8954 // Specifies whether the versioned object that was permanently deleted was (true)
8955 // or was not (false) a delete marker.
8956 DeleteMarker *bool `location:"header" locationName:"x-amz-delete-marker" type:"boolean"`
8958 // If present, indicates that the requester was successfully charged for the
8960 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
8962 // Returns the version ID of the delete marker created as a result of the DELETE
8964 VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
8967 // String returns the string representation
8968 func (s DeleteObjectOutput) String() string {
8969 return awsutil.Prettify(s)
8972 // GoString returns the string representation
8973 func (s DeleteObjectOutput) GoString() string {
8977 // SetDeleteMarker sets the DeleteMarker field's value.
8978 func (s *DeleteObjectOutput) SetDeleteMarker(v bool) *DeleteObjectOutput {
8983 // SetRequestCharged sets the RequestCharged field's value.
8984 func (s *DeleteObjectOutput) SetRequestCharged(v string) *DeleteObjectOutput {
8985 s.RequestCharged = &v
8989 // SetVersionId sets the VersionId field's value.
8990 func (s *DeleteObjectOutput) SetVersionId(v string) *DeleteObjectOutput {
8995 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectTaggingRequest
8996 type DeleteObjectTaggingInput struct {
8997 _ struct{} `type:"structure"`
8999 // Bucket is a required field
9000 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
9002 // Key is a required field
9003 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
9005 // The versionId of the object that the tag-set will be removed from.
9006 VersionId *string `location:"querystring" locationName:"versionId" type:"string"`
9009 // String returns the string representation
9010 func (s DeleteObjectTaggingInput) String() string {
9011 return awsutil.Prettify(s)
9014 // GoString returns the string representation
9015 func (s DeleteObjectTaggingInput) GoString() string {
9019 // Validate inspects the fields of the type to determine if they are valid.
9020 func (s *DeleteObjectTaggingInput) Validate() error {
9021 invalidParams := request.ErrInvalidParams{Context: "DeleteObjectTaggingInput"}
9022 if s.Bucket == nil {
9023 invalidParams.Add(request.NewErrParamRequired("Bucket"))
9026 invalidParams.Add(request.NewErrParamRequired("Key"))
9028 if s.Key != nil && len(*s.Key) < 1 {
9029 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
9032 if invalidParams.Len() > 0 {
9033 return invalidParams
9038 // SetBucket sets the Bucket field's value.
9039 func (s *DeleteObjectTaggingInput) SetBucket(v string) *DeleteObjectTaggingInput {
9044 // SetKey sets the Key field's value.
9045 func (s *DeleteObjectTaggingInput) SetKey(v string) *DeleteObjectTaggingInput {
9050 // SetVersionId sets the VersionId field's value.
9051 func (s *DeleteObjectTaggingInput) SetVersionId(v string) *DeleteObjectTaggingInput {
9056 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectTaggingOutput
9057 type DeleteObjectTaggingOutput struct {
9058 _ struct{} `type:"structure"`
9060 // The versionId of the object the tag-set was removed from.
9061 VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
9064 // String returns the string representation
9065 func (s DeleteObjectTaggingOutput) String() string {
9066 return awsutil.Prettify(s)
9069 // GoString returns the string representation
9070 func (s DeleteObjectTaggingOutput) GoString() string {
9074 // SetVersionId sets the VersionId field's value.
9075 func (s *DeleteObjectTaggingOutput) SetVersionId(v string) *DeleteObjectTaggingOutput {
9080 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectsRequest
9081 type DeleteObjectsInput struct {
9082 _ struct{} `type:"structure" payload:"Delete"`
9084 // Bucket is a required field
9085 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
9087 // Delete is a required field
9088 Delete *Delete `locationName:"Delete" type:"structure" required:"true"`
9090 // The concatenation of the authentication device's serial number, a space,
9091 // and the value that is displayed on your authentication device.
9092 MFA *string `location:"header" locationName:"x-amz-mfa" type:"string"`
9094 // Confirms that the requester knows that she or he will be charged for the
9095 // request. Bucket owners need not specify this parameter in their requests.
9096 // Documentation on downloading objects from requester pays buckets can be found
9097 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
9098 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
9101 // String returns the string representation
9102 func (s DeleteObjectsInput) String() string {
9103 return awsutil.Prettify(s)
9106 // GoString returns the string representation
9107 func (s DeleteObjectsInput) GoString() string {
9111 // Validate inspects the fields of the type to determine if they are valid.
9112 func (s *DeleteObjectsInput) Validate() error {
9113 invalidParams := request.ErrInvalidParams{Context: "DeleteObjectsInput"}
9114 if s.Bucket == nil {
9115 invalidParams.Add(request.NewErrParamRequired("Bucket"))
9117 if s.Delete == nil {
9118 invalidParams.Add(request.NewErrParamRequired("Delete"))
9120 if s.Delete != nil {
9121 if err := s.Delete.Validate(); err != nil {
9122 invalidParams.AddNested("Delete", err.(request.ErrInvalidParams))
9126 if invalidParams.Len() > 0 {
9127 return invalidParams
9132 // SetBucket sets the Bucket field's value.
9133 func (s *DeleteObjectsInput) SetBucket(v string) *DeleteObjectsInput {
9138 // SetDelete sets the Delete field's value.
9139 func (s *DeleteObjectsInput) SetDelete(v *Delete) *DeleteObjectsInput {
9144 // SetMFA sets the MFA field's value.
9145 func (s *DeleteObjectsInput) SetMFA(v string) *DeleteObjectsInput {
9150 // SetRequestPayer sets the RequestPayer field's value.
9151 func (s *DeleteObjectsInput) SetRequestPayer(v string) *DeleteObjectsInput {
9156 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectsOutput
9157 type DeleteObjectsOutput struct {
9158 _ struct{} `type:"structure"`
9160 Deleted []*DeletedObject `type:"list" flattened:"true"`
9162 Errors []*Error `locationName:"Error" type:"list" flattened:"true"`
9164 // If present, indicates that the requester was successfully charged for the
9166 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
9169 // String returns the string representation
9170 func (s DeleteObjectsOutput) String() string {
9171 return awsutil.Prettify(s)
9174 // GoString returns the string representation
9175 func (s DeleteObjectsOutput) GoString() string {
9179 // SetDeleted sets the Deleted field's value.
9180 func (s *DeleteObjectsOutput) SetDeleted(v []*DeletedObject) *DeleteObjectsOutput {
9185 // SetErrors sets the Errors field's value.
9186 func (s *DeleteObjectsOutput) SetErrors(v []*Error) *DeleteObjectsOutput {
9191 // SetRequestCharged sets the RequestCharged field's value.
9192 func (s *DeleteObjectsOutput) SetRequestCharged(v string) *DeleteObjectsOutput {
9193 s.RequestCharged = &v
9197 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeletedObject
9198 type DeletedObject struct {
9199 _ struct{} `type:"structure"`
9201 DeleteMarker *bool `type:"boolean"`
9203 DeleteMarkerVersionId *string `type:"string"`
9205 Key *string `min:"1" type:"string"`
9207 VersionId *string `type:"string"`
9210 // String returns the string representation
9211 func (s DeletedObject) String() string {
9212 return awsutil.Prettify(s)
9215 // GoString returns the string representation
9216 func (s DeletedObject) GoString() string {
9220 // SetDeleteMarker sets the DeleteMarker field's value.
9221 func (s *DeletedObject) SetDeleteMarker(v bool) *DeletedObject {
9226 // SetDeleteMarkerVersionId sets the DeleteMarkerVersionId field's value.
9227 func (s *DeletedObject) SetDeleteMarkerVersionId(v string) *DeletedObject {
9228 s.DeleteMarkerVersionId = &v
9232 // SetKey sets the Key field's value.
9233 func (s *DeletedObject) SetKey(v string) *DeletedObject {
9238 // SetVersionId sets the VersionId field's value.
9239 func (s *DeletedObject) SetVersionId(v string) *DeletedObject {
9244 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Destination
9245 type Destination struct {
9246 _ struct{} `type:"structure"`
9248 // Amazon resource name (ARN) of the bucket where you want Amazon S3 to store
9249 // replicas of the object identified by the rule.
9251 // Bucket is a required field
9252 Bucket *string `type:"string" required:"true"`
9254 // The class of storage used to store the object.
9255 StorageClass *string `type:"string" enum:"StorageClass"`
9258 // String returns the string representation
9259 func (s Destination) String() string {
9260 return awsutil.Prettify(s)
9263 // GoString returns the string representation
9264 func (s Destination) GoString() string {
9268 // Validate inspects the fields of the type to determine if they are valid.
9269 func (s *Destination) Validate() error {
9270 invalidParams := request.ErrInvalidParams{Context: "Destination"}
9271 if s.Bucket == nil {
9272 invalidParams.Add(request.NewErrParamRequired("Bucket"))
9275 if invalidParams.Len() > 0 {
9276 return invalidParams
9281 // SetBucket sets the Bucket field's value.
9282 func (s *Destination) SetBucket(v string) *Destination {
9287 // SetStorageClass sets the StorageClass field's value.
9288 func (s *Destination) SetStorageClass(v string) *Destination {
9293 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Error
9295 _ struct{} `type:"structure"`
9297 Code *string `type:"string"`
9299 Key *string `min:"1" type:"string"`
9301 Message *string `type:"string"`
9303 VersionId *string `type:"string"`
9306 // String returns the string representation
9307 func (s Error) String() string {
9308 return awsutil.Prettify(s)
9311 // GoString returns the string representation
9312 func (s Error) GoString() string {
9316 // SetCode sets the Code field's value.
9317 func (s *Error) SetCode(v string) *Error {
9322 // SetKey sets the Key field's value.
9323 func (s *Error) SetKey(v string) *Error {
9328 // SetMessage sets the Message field's value.
9329 func (s *Error) SetMessage(v string) *Error {
9334 // SetVersionId sets the VersionId field's value.
9335 func (s *Error) SetVersionId(v string) *Error {
9340 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ErrorDocument
9341 type ErrorDocument struct {
9342 _ struct{} `type:"structure"`
9344 // The object key name to use when a 4XX class error occurs.
9346 // Key is a required field
9347 Key *string `min:"1" type:"string" required:"true"`
9350 // String returns the string representation
9351 func (s ErrorDocument) String() string {
9352 return awsutil.Prettify(s)
9355 // GoString returns the string representation
9356 func (s ErrorDocument) GoString() string {
9360 // Validate inspects the fields of the type to determine if they are valid.
9361 func (s *ErrorDocument) Validate() error {
9362 invalidParams := request.ErrInvalidParams{Context: "ErrorDocument"}
9364 invalidParams.Add(request.NewErrParamRequired("Key"))
9366 if s.Key != nil && len(*s.Key) < 1 {
9367 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
9370 if invalidParams.Len() > 0 {
9371 return invalidParams
9376 // SetKey sets the Key field's value.
9377 func (s *ErrorDocument) SetKey(v string) *ErrorDocument {
9382 // Container for key value pair that defines the criteria for the filter rule.
9383 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/FilterRule
9384 type FilterRule struct {
9385 _ struct{} `type:"structure"`
9387 // Object key name prefix or suffix identifying one or more objects to which
9388 // the filtering rule applies. Maximum prefix length can be up to 1,024 characters.
9389 // Overlapping prefixes and suffixes are not supported. For more information,
9390 // go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html)
9391 Name *string `type:"string" enum:"FilterRuleName"`
9393 Value *string `type:"string"`
9396 // String returns the string representation
9397 func (s FilterRule) String() string {
9398 return awsutil.Prettify(s)
9401 // GoString returns the string representation
9402 func (s FilterRule) GoString() string {
9406 // SetName sets the Name field's value.
9407 func (s *FilterRule) SetName(v string) *FilterRule {
9412 // SetValue sets the Value field's value.
9413 func (s *FilterRule) SetValue(v string) *FilterRule {
9418 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAccelerateConfigurationRequest
9419 type GetBucketAccelerateConfigurationInput struct {
9420 _ struct{} `type:"structure"`
9422 // Name of the bucket for which the accelerate configuration is retrieved.
9424 // Bucket is a required field
9425 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
9428 // String returns the string representation
9429 func (s GetBucketAccelerateConfigurationInput) String() string {
9430 return awsutil.Prettify(s)
9433 // GoString returns the string representation
9434 func (s GetBucketAccelerateConfigurationInput) GoString() string {
9438 // Validate inspects the fields of the type to determine if they are valid.
9439 func (s *GetBucketAccelerateConfigurationInput) Validate() error {
9440 invalidParams := request.ErrInvalidParams{Context: "GetBucketAccelerateConfigurationInput"}
9441 if s.Bucket == nil {
9442 invalidParams.Add(request.NewErrParamRequired("Bucket"))
9445 if invalidParams.Len() > 0 {
9446 return invalidParams
9451 // SetBucket sets the Bucket field's value.
9452 func (s *GetBucketAccelerateConfigurationInput) SetBucket(v string) *GetBucketAccelerateConfigurationInput {
9457 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAccelerateConfigurationOutput
9458 type GetBucketAccelerateConfigurationOutput struct {
9459 _ struct{} `type:"structure"`
9461 // The accelerate configuration of the bucket.
9462 Status *string `type:"string" enum:"BucketAccelerateStatus"`
9465 // String returns the string representation
9466 func (s GetBucketAccelerateConfigurationOutput) String() string {
9467 return awsutil.Prettify(s)
9470 // GoString returns the string representation
9471 func (s GetBucketAccelerateConfigurationOutput) GoString() string {
9475 // SetStatus sets the Status field's value.
9476 func (s *GetBucketAccelerateConfigurationOutput) SetStatus(v string) *GetBucketAccelerateConfigurationOutput {
9481 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAclRequest
9482 type GetBucketAclInput struct {
9483 _ struct{} `type:"structure"`
9485 // Bucket is a required field
9486 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
9489 // String returns the string representation
9490 func (s GetBucketAclInput) String() string {
9491 return awsutil.Prettify(s)
9494 // GoString returns the string representation
9495 func (s GetBucketAclInput) GoString() string {
9499 // Validate inspects the fields of the type to determine if they are valid.
9500 func (s *GetBucketAclInput) Validate() error {
9501 invalidParams := request.ErrInvalidParams{Context: "GetBucketAclInput"}
9502 if s.Bucket == nil {
9503 invalidParams.Add(request.NewErrParamRequired("Bucket"))
9506 if invalidParams.Len() > 0 {
9507 return invalidParams
9512 // SetBucket sets the Bucket field's value.
9513 func (s *GetBucketAclInput) SetBucket(v string) *GetBucketAclInput {
9518 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAclOutput
9519 type GetBucketAclOutput struct {
9520 _ struct{} `type:"structure"`
9522 // A list of grants.
9523 Grants []*Grant `locationName:"AccessControlList" locationNameList:"Grant" type:"list"`
9525 Owner *Owner `type:"structure"`
9528 // String returns the string representation
9529 func (s GetBucketAclOutput) String() string {
9530 return awsutil.Prettify(s)
9533 // GoString returns the string representation
9534 func (s GetBucketAclOutput) GoString() string {
9538 // SetGrants sets the Grants field's value.
9539 func (s *GetBucketAclOutput) SetGrants(v []*Grant) *GetBucketAclOutput {
9544 // SetOwner sets the Owner field's value.
9545 func (s *GetBucketAclOutput) SetOwner(v *Owner) *GetBucketAclOutput {
9550 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAnalyticsConfigurationRequest
9551 type GetBucketAnalyticsConfigurationInput struct {
9552 _ struct{} `type:"structure"`
9554 // The name of the bucket from which an analytics configuration is retrieved.
9556 // Bucket is a required field
9557 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
9559 // The identifier used to represent an analytics configuration.
9561 // Id is a required field
9562 Id *string `location:"querystring" locationName:"id" type:"string" required:"true"`
9565 // String returns the string representation
9566 func (s GetBucketAnalyticsConfigurationInput) String() string {
9567 return awsutil.Prettify(s)
9570 // GoString returns the string representation
9571 func (s GetBucketAnalyticsConfigurationInput) GoString() string {
9575 // Validate inspects the fields of the type to determine if they are valid.
9576 func (s *GetBucketAnalyticsConfigurationInput) Validate() error {
9577 invalidParams := request.ErrInvalidParams{Context: "GetBucketAnalyticsConfigurationInput"}
9578 if s.Bucket == nil {
9579 invalidParams.Add(request.NewErrParamRequired("Bucket"))
9582 invalidParams.Add(request.NewErrParamRequired("Id"))
9585 if invalidParams.Len() > 0 {
9586 return invalidParams
9591 // SetBucket sets the Bucket field's value.
9592 func (s *GetBucketAnalyticsConfigurationInput) SetBucket(v string) *GetBucketAnalyticsConfigurationInput {
9597 // SetId sets the Id field's value.
9598 func (s *GetBucketAnalyticsConfigurationInput) SetId(v string) *GetBucketAnalyticsConfigurationInput {
9603 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketAnalyticsConfigurationOutput
9604 type GetBucketAnalyticsConfigurationOutput struct {
9605 _ struct{} `type:"structure" payload:"AnalyticsConfiguration"`
9607 // The configuration and any analyses for the analytics filter.
9608 AnalyticsConfiguration *AnalyticsConfiguration `type:"structure"`
9611 // String returns the string representation
9612 func (s GetBucketAnalyticsConfigurationOutput) String() string {
9613 return awsutil.Prettify(s)
9616 // GoString returns the string representation
9617 func (s GetBucketAnalyticsConfigurationOutput) GoString() string {
9621 // SetAnalyticsConfiguration sets the AnalyticsConfiguration field's value.
9622 func (s *GetBucketAnalyticsConfigurationOutput) SetAnalyticsConfiguration(v *AnalyticsConfiguration) *GetBucketAnalyticsConfigurationOutput {
9623 s.AnalyticsConfiguration = v
9627 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketCorsRequest
9628 type GetBucketCorsInput struct {
9629 _ struct{} `type:"structure"`
9631 // Bucket is a required field
9632 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
9635 // String returns the string representation
9636 func (s GetBucketCorsInput) String() string {
9637 return awsutil.Prettify(s)
9640 // GoString returns the string representation
9641 func (s GetBucketCorsInput) GoString() string {
9645 // Validate inspects the fields of the type to determine if they are valid.
9646 func (s *GetBucketCorsInput) Validate() error {
9647 invalidParams := request.ErrInvalidParams{Context: "GetBucketCorsInput"}
9648 if s.Bucket == nil {
9649 invalidParams.Add(request.NewErrParamRequired("Bucket"))
9652 if invalidParams.Len() > 0 {
9653 return invalidParams
9658 // SetBucket sets the Bucket field's value.
9659 func (s *GetBucketCorsInput) SetBucket(v string) *GetBucketCorsInput {
9664 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketCorsOutput
9665 type GetBucketCorsOutput struct {
9666 _ struct{} `type:"structure"`
9668 CORSRules []*CORSRule `locationName:"CORSRule" type:"list" flattened:"true"`
9671 // String returns the string representation
9672 func (s GetBucketCorsOutput) String() string {
9673 return awsutil.Prettify(s)
9676 // GoString returns the string representation
9677 func (s GetBucketCorsOutput) GoString() string {
9681 // SetCORSRules sets the CORSRules field's value.
9682 func (s *GetBucketCorsOutput) SetCORSRules(v []*CORSRule) *GetBucketCorsOutput {
9687 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketInventoryConfigurationRequest
9688 type GetBucketInventoryConfigurationInput struct {
9689 _ struct{} `type:"structure"`
9691 // The name of the bucket containing the inventory configuration to retrieve.
9693 // Bucket is a required field
9694 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
9696 // The ID used to identify the inventory configuration.
9698 // Id is a required field
9699 Id *string `location:"querystring" locationName:"id" type:"string" required:"true"`
9702 // String returns the string representation
9703 func (s GetBucketInventoryConfigurationInput) String() string {
9704 return awsutil.Prettify(s)
9707 // GoString returns the string representation
9708 func (s GetBucketInventoryConfigurationInput) GoString() string {
9712 // Validate inspects the fields of the type to determine if they are valid.
9713 func (s *GetBucketInventoryConfigurationInput) Validate() error {
9714 invalidParams := request.ErrInvalidParams{Context: "GetBucketInventoryConfigurationInput"}
9715 if s.Bucket == nil {
9716 invalidParams.Add(request.NewErrParamRequired("Bucket"))
9719 invalidParams.Add(request.NewErrParamRequired("Id"))
9722 if invalidParams.Len() > 0 {
9723 return invalidParams
9728 // SetBucket sets the Bucket field's value.
9729 func (s *GetBucketInventoryConfigurationInput) SetBucket(v string) *GetBucketInventoryConfigurationInput {
9734 // SetId sets the Id field's value.
9735 func (s *GetBucketInventoryConfigurationInput) SetId(v string) *GetBucketInventoryConfigurationInput {
9740 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketInventoryConfigurationOutput
9741 type GetBucketInventoryConfigurationOutput struct {
9742 _ struct{} `type:"structure" payload:"InventoryConfiguration"`
9744 // Specifies the inventory configuration.
9745 InventoryConfiguration *InventoryConfiguration `type:"structure"`
9748 // String returns the string representation
9749 func (s GetBucketInventoryConfigurationOutput) String() string {
9750 return awsutil.Prettify(s)
9753 // GoString returns the string representation
9754 func (s GetBucketInventoryConfigurationOutput) GoString() string {
9758 // SetInventoryConfiguration sets the InventoryConfiguration field's value.
9759 func (s *GetBucketInventoryConfigurationOutput) SetInventoryConfiguration(v *InventoryConfiguration) *GetBucketInventoryConfigurationOutput {
9760 s.InventoryConfiguration = v
9764 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleConfigurationRequest
9765 type GetBucketLifecycleConfigurationInput struct {
9766 _ struct{} `type:"structure"`
9768 // Bucket is a required field
9769 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
9772 // String returns the string representation
9773 func (s GetBucketLifecycleConfigurationInput) String() string {
9774 return awsutil.Prettify(s)
9777 // GoString returns the string representation
9778 func (s GetBucketLifecycleConfigurationInput) GoString() string {
9782 // Validate inspects the fields of the type to determine if they are valid.
9783 func (s *GetBucketLifecycleConfigurationInput) Validate() error {
9784 invalidParams := request.ErrInvalidParams{Context: "GetBucketLifecycleConfigurationInput"}
9785 if s.Bucket == nil {
9786 invalidParams.Add(request.NewErrParamRequired("Bucket"))
9789 if invalidParams.Len() > 0 {
9790 return invalidParams
9795 // SetBucket sets the Bucket field's value.
9796 func (s *GetBucketLifecycleConfigurationInput) SetBucket(v string) *GetBucketLifecycleConfigurationInput {
9801 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleConfigurationOutput
9802 type GetBucketLifecycleConfigurationOutput struct {
9803 _ struct{} `type:"structure"`
9805 Rules []*LifecycleRule `locationName:"Rule" type:"list" flattened:"true"`
9808 // String returns the string representation
9809 func (s GetBucketLifecycleConfigurationOutput) String() string {
9810 return awsutil.Prettify(s)
9813 // GoString returns the string representation
9814 func (s GetBucketLifecycleConfigurationOutput) GoString() string {
9818 // SetRules sets the Rules field's value.
9819 func (s *GetBucketLifecycleConfigurationOutput) SetRules(v []*LifecycleRule) *GetBucketLifecycleConfigurationOutput {
9824 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleRequest
9825 type GetBucketLifecycleInput struct {
9826 _ struct{} `type:"structure"`
9828 // Bucket is a required field
9829 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
9832 // String returns the string representation
9833 func (s GetBucketLifecycleInput) String() string {
9834 return awsutil.Prettify(s)
9837 // GoString returns the string representation
9838 func (s GetBucketLifecycleInput) GoString() string {
9842 // Validate inspects the fields of the type to determine if they are valid.
9843 func (s *GetBucketLifecycleInput) Validate() error {
9844 invalidParams := request.ErrInvalidParams{Context: "GetBucketLifecycleInput"}
9845 if s.Bucket == nil {
9846 invalidParams.Add(request.NewErrParamRequired("Bucket"))
9849 if invalidParams.Len() > 0 {
9850 return invalidParams
9855 // SetBucket sets the Bucket field's value.
9856 func (s *GetBucketLifecycleInput) SetBucket(v string) *GetBucketLifecycleInput {
9861 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleOutput
9862 type GetBucketLifecycleOutput struct {
9863 _ struct{} `type:"structure"`
9865 Rules []*Rule `locationName:"Rule" type:"list" flattened:"true"`
9868 // String returns the string representation
9869 func (s GetBucketLifecycleOutput) String() string {
9870 return awsutil.Prettify(s)
9873 // GoString returns the string representation
9874 func (s GetBucketLifecycleOutput) GoString() string {
9878 // SetRules sets the Rules field's value.
9879 func (s *GetBucketLifecycleOutput) SetRules(v []*Rule) *GetBucketLifecycleOutput {
9884 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLocationRequest
9885 type GetBucketLocationInput struct {
9886 _ struct{} `type:"structure"`
9888 // Bucket is a required field
9889 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
9892 // String returns the string representation
9893 func (s GetBucketLocationInput) String() string {
9894 return awsutil.Prettify(s)
9897 // GoString returns the string representation
9898 func (s GetBucketLocationInput) GoString() string {
9902 // Validate inspects the fields of the type to determine if they are valid.
9903 func (s *GetBucketLocationInput) Validate() error {
9904 invalidParams := request.ErrInvalidParams{Context: "GetBucketLocationInput"}
9905 if s.Bucket == nil {
9906 invalidParams.Add(request.NewErrParamRequired("Bucket"))
9909 if invalidParams.Len() > 0 {
9910 return invalidParams
9915 // SetBucket sets the Bucket field's value.
9916 func (s *GetBucketLocationInput) SetBucket(v string) *GetBucketLocationInput {
9921 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLocationOutput
9922 type GetBucketLocationOutput struct {
9923 _ struct{} `type:"structure"`
9925 LocationConstraint *string `type:"string" enum:"BucketLocationConstraint"`
9928 // String returns the string representation
9929 func (s GetBucketLocationOutput) String() string {
9930 return awsutil.Prettify(s)
9933 // GoString returns the string representation
9934 func (s GetBucketLocationOutput) GoString() string {
9938 // SetLocationConstraint sets the LocationConstraint field's value.
9939 func (s *GetBucketLocationOutput) SetLocationConstraint(v string) *GetBucketLocationOutput {
9940 s.LocationConstraint = &v
9944 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLoggingRequest
9945 type GetBucketLoggingInput struct {
9946 _ struct{} `type:"structure"`
9948 // Bucket is a required field
9949 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
9952 // String returns the string representation
9953 func (s GetBucketLoggingInput) String() string {
9954 return awsutil.Prettify(s)
9957 // GoString returns the string representation
9958 func (s GetBucketLoggingInput) GoString() string {
9962 // Validate inspects the fields of the type to determine if they are valid.
9963 func (s *GetBucketLoggingInput) Validate() error {
9964 invalidParams := request.ErrInvalidParams{Context: "GetBucketLoggingInput"}
9965 if s.Bucket == nil {
9966 invalidParams.Add(request.NewErrParamRequired("Bucket"))
9969 if invalidParams.Len() > 0 {
9970 return invalidParams
9975 // SetBucket sets the Bucket field's value.
9976 func (s *GetBucketLoggingInput) SetBucket(v string) *GetBucketLoggingInput {
9981 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLoggingOutput
9982 type GetBucketLoggingOutput struct {
9983 _ struct{} `type:"structure"`
9985 LoggingEnabled *LoggingEnabled `type:"structure"`
9988 // String returns the string representation
9989 func (s GetBucketLoggingOutput) String() string {
9990 return awsutil.Prettify(s)
9993 // GoString returns the string representation
9994 func (s GetBucketLoggingOutput) GoString() string {
9998 // SetLoggingEnabled sets the LoggingEnabled field's value.
9999 func (s *GetBucketLoggingOutput) SetLoggingEnabled(v *LoggingEnabled) *GetBucketLoggingOutput {
10000 s.LoggingEnabled = v
10004 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketMetricsConfigurationRequest
10005 type GetBucketMetricsConfigurationInput struct {
10006 _ struct{} `type:"structure"`
10008 // The name of the bucket containing the metrics configuration to retrieve.
10010 // Bucket is a required field
10011 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
10013 // The ID used to identify the metrics configuration.
10015 // Id is a required field
10016 Id *string `location:"querystring" locationName:"id" type:"string" required:"true"`
10019 // String returns the string representation
10020 func (s GetBucketMetricsConfigurationInput) String() string {
10021 return awsutil.Prettify(s)
10024 // GoString returns the string representation
10025 func (s GetBucketMetricsConfigurationInput) GoString() string {
10029 // Validate inspects the fields of the type to determine if they are valid.
10030 func (s *GetBucketMetricsConfigurationInput) Validate() error {
10031 invalidParams := request.ErrInvalidParams{Context: "GetBucketMetricsConfigurationInput"}
10032 if s.Bucket == nil {
10033 invalidParams.Add(request.NewErrParamRequired("Bucket"))
10036 invalidParams.Add(request.NewErrParamRequired("Id"))
10039 if invalidParams.Len() > 0 {
10040 return invalidParams
10045 // SetBucket sets the Bucket field's value.
10046 func (s *GetBucketMetricsConfigurationInput) SetBucket(v string) *GetBucketMetricsConfigurationInput {
10051 // SetId sets the Id field's value.
10052 func (s *GetBucketMetricsConfigurationInput) SetId(v string) *GetBucketMetricsConfigurationInput {
10057 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketMetricsConfigurationOutput
10058 type GetBucketMetricsConfigurationOutput struct {
10059 _ struct{} `type:"structure" payload:"MetricsConfiguration"`
10061 // Specifies the metrics configuration.
10062 MetricsConfiguration *MetricsConfiguration `type:"structure"`
10065 // String returns the string representation
10066 func (s GetBucketMetricsConfigurationOutput) String() string {
10067 return awsutil.Prettify(s)
10070 // GoString returns the string representation
10071 func (s GetBucketMetricsConfigurationOutput) GoString() string {
10075 // SetMetricsConfiguration sets the MetricsConfiguration field's value.
10076 func (s *GetBucketMetricsConfigurationOutput) SetMetricsConfiguration(v *MetricsConfiguration) *GetBucketMetricsConfigurationOutput {
10077 s.MetricsConfiguration = v
10081 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketNotificationConfigurationRequest
10082 type GetBucketNotificationConfigurationRequest struct {
10083 _ struct{} `type:"structure"`
10085 // Name of the bucket to get the notification configuration for.
10087 // Bucket is a required field
10088 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
10091 // String returns the string representation
10092 func (s GetBucketNotificationConfigurationRequest) String() string {
10093 return awsutil.Prettify(s)
10096 // GoString returns the string representation
10097 func (s GetBucketNotificationConfigurationRequest) GoString() string {
10101 // Validate inspects the fields of the type to determine if they are valid.
10102 func (s *GetBucketNotificationConfigurationRequest) Validate() error {
10103 invalidParams := request.ErrInvalidParams{Context: "GetBucketNotificationConfigurationRequest"}
10104 if s.Bucket == nil {
10105 invalidParams.Add(request.NewErrParamRequired("Bucket"))
10108 if invalidParams.Len() > 0 {
10109 return invalidParams
10114 // SetBucket sets the Bucket field's value.
10115 func (s *GetBucketNotificationConfigurationRequest) SetBucket(v string) *GetBucketNotificationConfigurationRequest {
10120 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicyRequest
10121 type GetBucketPolicyInput struct {
10122 _ struct{} `type:"structure"`
10124 // Bucket is a required field
10125 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
10128 // String returns the string representation
10129 func (s GetBucketPolicyInput) String() string {
10130 return awsutil.Prettify(s)
10133 // GoString returns the string representation
10134 func (s GetBucketPolicyInput) GoString() string {
10138 // Validate inspects the fields of the type to determine if they are valid.
10139 func (s *GetBucketPolicyInput) Validate() error {
10140 invalidParams := request.ErrInvalidParams{Context: "GetBucketPolicyInput"}
10141 if s.Bucket == nil {
10142 invalidParams.Add(request.NewErrParamRequired("Bucket"))
10145 if invalidParams.Len() > 0 {
10146 return invalidParams
10151 // SetBucket sets the Bucket field's value.
10152 func (s *GetBucketPolicyInput) SetBucket(v string) *GetBucketPolicyInput {
10157 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketPolicyOutput
10158 type GetBucketPolicyOutput struct {
10159 _ struct{} `type:"structure" payload:"Policy"`
10161 // The bucket policy as a JSON document.
10162 Policy *string `type:"string"`
10165 // String returns the string representation
10166 func (s GetBucketPolicyOutput) String() string {
10167 return awsutil.Prettify(s)
10170 // GoString returns the string representation
10171 func (s GetBucketPolicyOutput) GoString() string {
10175 // SetPolicy sets the Policy field's value.
10176 func (s *GetBucketPolicyOutput) SetPolicy(v string) *GetBucketPolicyOutput {
10181 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketReplicationRequest
10182 type GetBucketReplicationInput struct {
10183 _ struct{} `type:"structure"`
10185 // Bucket is a required field
10186 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
10189 // String returns the string representation
10190 func (s GetBucketReplicationInput) String() string {
10191 return awsutil.Prettify(s)
10194 // GoString returns the string representation
10195 func (s GetBucketReplicationInput) GoString() string {
10199 // Validate inspects the fields of the type to determine if they are valid.
10200 func (s *GetBucketReplicationInput) Validate() error {
10201 invalidParams := request.ErrInvalidParams{Context: "GetBucketReplicationInput"}
10202 if s.Bucket == nil {
10203 invalidParams.Add(request.NewErrParamRequired("Bucket"))
10206 if invalidParams.Len() > 0 {
10207 return invalidParams
10212 // SetBucket sets the Bucket field's value.
10213 func (s *GetBucketReplicationInput) SetBucket(v string) *GetBucketReplicationInput {
10218 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketReplicationOutput
10219 type GetBucketReplicationOutput struct {
10220 _ struct{} `type:"structure" payload:"ReplicationConfiguration"`
10222 // Container for replication rules. You can add as many as 1,000 rules. Total
10223 // replication configuration size can be up to 2 MB.
10224 ReplicationConfiguration *ReplicationConfiguration `type:"structure"`
10227 // String returns the string representation
10228 func (s GetBucketReplicationOutput) String() string {
10229 return awsutil.Prettify(s)
10232 // GoString returns the string representation
10233 func (s GetBucketReplicationOutput) GoString() string {
10237 // SetReplicationConfiguration sets the ReplicationConfiguration field's value.
10238 func (s *GetBucketReplicationOutput) SetReplicationConfiguration(v *ReplicationConfiguration) *GetBucketReplicationOutput {
10239 s.ReplicationConfiguration = v
10243 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketRequestPaymentRequest
10244 type GetBucketRequestPaymentInput struct {
10245 _ struct{} `type:"structure"`
10247 // Bucket is a required field
10248 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
10251 // String returns the string representation
10252 func (s GetBucketRequestPaymentInput) String() string {
10253 return awsutil.Prettify(s)
10256 // GoString returns the string representation
10257 func (s GetBucketRequestPaymentInput) GoString() string {
10261 // Validate inspects the fields of the type to determine if they are valid.
10262 func (s *GetBucketRequestPaymentInput) Validate() error {
10263 invalidParams := request.ErrInvalidParams{Context: "GetBucketRequestPaymentInput"}
10264 if s.Bucket == nil {
10265 invalidParams.Add(request.NewErrParamRequired("Bucket"))
10268 if invalidParams.Len() > 0 {
10269 return invalidParams
10274 // SetBucket sets the Bucket field's value.
10275 func (s *GetBucketRequestPaymentInput) SetBucket(v string) *GetBucketRequestPaymentInput {
10280 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketRequestPaymentOutput
10281 type GetBucketRequestPaymentOutput struct {
10282 _ struct{} `type:"structure"`
10284 // Specifies who pays for the download and request fees.
10285 Payer *string `type:"string" enum:"Payer"`
10288 // String returns the string representation
10289 func (s GetBucketRequestPaymentOutput) String() string {
10290 return awsutil.Prettify(s)
10293 // GoString returns the string representation
10294 func (s GetBucketRequestPaymentOutput) GoString() string {
10298 // SetPayer sets the Payer field's value.
10299 func (s *GetBucketRequestPaymentOutput) SetPayer(v string) *GetBucketRequestPaymentOutput {
10304 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketTaggingRequest
10305 type GetBucketTaggingInput struct {
10306 _ struct{} `type:"structure"`
10308 // Bucket is a required field
10309 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
10312 // String returns the string representation
10313 func (s GetBucketTaggingInput) String() string {
10314 return awsutil.Prettify(s)
10317 // GoString returns the string representation
10318 func (s GetBucketTaggingInput) GoString() string {
10322 // Validate inspects the fields of the type to determine if they are valid.
10323 func (s *GetBucketTaggingInput) Validate() error {
10324 invalidParams := request.ErrInvalidParams{Context: "GetBucketTaggingInput"}
10325 if s.Bucket == nil {
10326 invalidParams.Add(request.NewErrParamRequired("Bucket"))
10329 if invalidParams.Len() > 0 {
10330 return invalidParams
10335 // SetBucket sets the Bucket field's value.
10336 func (s *GetBucketTaggingInput) SetBucket(v string) *GetBucketTaggingInput {
10341 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketTaggingOutput
10342 type GetBucketTaggingOutput struct {
10343 _ struct{} `type:"structure"`
10345 // TagSet is a required field
10346 TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"`
10349 // String returns the string representation
10350 func (s GetBucketTaggingOutput) String() string {
10351 return awsutil.Prettify(s)
10354 // GoString returns the string representation
10355 func (s GetBucketTaggingOutput) GoString() string {
10359 // SetTagSet sets the TagSet field's value.
10360 func (s *GetBucketTaggingOutput) SetTagSet(v []*Tag) *GetBucketTaggingOutput {
10365 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketVersioningRequest
10366 type GetBucketVersioningInput struct {
10367 _ struct{} `type:"structure"`
10369 // Bucket is a required field
10370 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
10373 // String returns the string representation
10374 func (s GetBucketVersioningInput) String() string {
10375 return awsutil.Prettify(s)
10378 // GoString returns the string representation
10379 func (s GetBucketVersioningInput) GoString() string {
10383 // Validate inspects the fields of the type to determine if they are valid.
10384 func (s *GetBucketVersioningInput) Validate() error {
10385 invalidParams := request.ErrInvalidParams{Context: "GetBucketVersioningInput"}
10386 if s.Bucket == nil {
10387 invalidParams.Add(request.NewErrParamRequired("Bucket"))
10390 if invalidParams.Len() > 0 {
10391 return invalidParams
10396 // SetBucket sets the Bucket field's value.
10397 func (s *GetBucketVersioningInput) SetBucket(v string) *GetBucketVersioningInput {
10402 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketVersioningOutput
10403 type GetBucketVersioningOutput struct {
10404 _ struct{} `type:"structure"`
10406 // Specifies whether MFA delete is enabled in the bucket versioning configuration.
10407 // This element is only returned if the bucket has been configured with MFA
10408 // delete. If the bucket has never been so configured, this element is not returned.
10409 MFADelete *string `locationName:"MfaDelete" type:"string" enum:"MFADeleteStatus"`
10411 // The versioning state of the bucket.
10412 Status *string `type:"string" enum:"BucketVersioningStatus"`
10415 // String returns the string representation
10416 func (s GetBucketVersioningOutput) String() string {
10417 return awsutil.Prettify(s)
10420 // GoString returns the string representation
10421 func (s GetBucketVersioningOutput) GoString() string {
10425 // SetMFADelete sets the MFADelete field's value.
10426 func (s *GetBucketVersioningOutput) SetMFADelete(v string) *GetBucketVersioningOutput {
10431 // SetStatus sets the Status field's value.
10432 func (s *GetBucketVersioningOutput) SetStatus(v string) *GetBucketVersioningOutput {
10437 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketWebsiteRequest
10438 type GetBucketWebsiteInput struct {
10439 _ struct{} `type:"structure"`
10441 // Bucket is a required field
10442 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
10445 // String returns the string representation
10446 func (s GetBucketWebsiteInput) String() string {
10447 return awsutil.Prettify(s)
10450 // GoString returns the string representation
10451 func (s GetBucketWebsiteInput) GoString() string {
10455 // Validate inspects the fields of the type to determine if they are valid.
10456 func (s *GetBucketWebsiteInput) Validate() error {
10457 invalidParams := request.ErrInvalidParams{Context: "GetBucketWebsiteInput"}
10458 if s.Bucket == nil {
10459 invalidParams.Add(request.NewErrParamRequired("Bucket"))
10462 if invalidParams.Len() > 0 {
10463 return invalidParams
10468 // SetBucket sets the Bucket field's value.
10469 func (s *GetBucketWebsiteInput) SetBucket(v string) *GetBucketWebsiteInput {
10474 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketWebsiteOutput
10475 type GetBucketWebsiteOutput struct {
10476 _ struct{} `type:"structure"`
10478 ErrorDocument *ErrorDocument `type:"structure"`
10480 IndexDocument *IndexDocument `type:"structure"`
10482 RedirectAllRequestsTo *RedirectAllRequestsTo `type:"structure"`
10484 RoutingRules []*RoutingRule `locationNameList:"RoutingRule" type:"list"`
10487 // String returns the string representation
10488 func (s GetBucketWebsiteOutput) String() string {
10489 return awsutil.Prettify(s)
10492 // GoString returns the string representation
10493 func (s GetBucketWebsiteOutput) GoString() string {
10497 // SetErrorDocument sets the ErrorDocument field's value.
10498 func (s *GetBucketWebsiteOutput) SetErrorDocument(v *ErrorDocument) *GetBucketWebsiteOutput {
10499 s.ErrorDocument = v
10503 // SetIndexDocument sets the IndexDocument field's value.
10504 func (s *GetBucketWebsiteOutput) SetIndexDocument(v *IndexDocument) *GetBucketWebsiteOutput {
10505 s.IndexDocument = v
10509 // SetRedirectAllRequestsTo sets the RedirectAllRequestsTo field's value.
10510 func (s *GetBucketWebsiteOutput) SetRedirectAllRequestsTo(v *RedirectAllRequestsTo) *GetBucketWebsiteOutput {
10511 s.RedirectAllRequestsTo = v
10515 // SetRoutingRules sets the RoutingRules field's value.
10516 func (s *GetBucketWebsiteOutput) SetRoutingRules(v []*RoutingRule) *GetBucketWebsiteOutput {
10521 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectAclRequest
10522 type GetObjectAclInput struct {
10523 _ struct{} `type:"structure"`
10525 // Bucket is a required field
10526 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
10528 // Key is a required field
10529 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
10531 // Confirms that the requester knows that she or he will be charged for the
10532 // request. Bucket owners need not specify this parameter in their requests.
10533 // Documentation on downloading objects from requester pays buckets can be found
10534 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
10535 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
10537 // VersionId used to reference a specific version of the object.
10538 VersionId *string `location:"querystring" locationName:"versionId" type:"string"`
10541 // String returns the string representation
10542 func (s GetObjectAclInput) String() string {
10543 return awsutil.Prettify(s)
10546 // GoString returns the string representation
10547 func (s GetObjectAclInput) GoString() string {
10551 // Validate inspects the fields of the type to determine if they are valid.
10552 func (s *GetObjectAclInput) Validate() error {
10553 invalidParams := request.ErrInvalidParams{Context: "GetObjectAclInput"}
10554 if s.Bucket == nil {
10555 invalidParams.Add(request.NewErrParamRequired("Bucket"))
10558 invalidParams.Add(request.NewErrParamRequired("Key"))
10560 if s.Key != nil && len(*s.Key) < 1 {
10561 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
10564 if invalidParams.Len() > 0 {
10565 return invalidParams
10570 // SetBucket sets the Bucket field's value.
10571 func (s *GetObjectAclInput) SetBucket(v string) *GetObjectAclInput {
10576 // SetKey sets the Key field's value.
10577 func (s *GetObjectAclInput) SetKey(v string) *GetObjectAclInput {
10582 // SetRequestPayer sets the RequestPayer field's value.
10583 func (s *GetObjectAclInput) SetRequestPayer(v string) *GetObjectAclInput {
10584 s.RequestPayer = &v
10588 // SetVersionId sets the VersionId field's value.
10589 func (s *GetObjectAclInput) SetVersionId(v string) *GetObjectAclInput {
10594 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectAclOutput
10595 type GetObjectAclOutput struct {
10596 _ struct{} `type:"structure"`
10598 // A list of grants.
10599 Grants []*Grant `locationName:"AccessControlList" locationNameList:"Grant" type:"list"`
10601 Owner *Owner `type:"structure"`
10603 // If present, indicates that the requester was successfully charged for the
10605 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
10608 // String returns the string representation
10609 func (s GetObjectAclOutput) String() string {
10610 return awsutil.Prettify(s)
10613 // GoString returns the string representation
10614 func (s GetObjectAclOutput) GoString() string {
10618 // SetGrants sets the Grants field's value.
10619 func (s *GetObjectAclOutput) SetGrants(v []*Grant) *GetObjectAclOutput {
10624 // SetOwner sets the Owner field's value.
10625 func (s *GetObjectAclOutput) SetOwner(v *Owner) *GetObjectAclOutput {
10630 // SetRequestCharged sets the RequestCharged field's value.
10631 func (s *GetObjectAclOutput) SetRequestCharged(v string) *GetObjectAclOutput {
10632 s.RequestCharged = &v
10636 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectRequest
10637 type GetObjectInput struct {
10638 _ struct{} `type:"structure"`
10640 // Bucket is a required field
10641 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
10643 // Return the object only if its entity tag (ETag) is the same as the one specified,
10644 // otherwise return a 412 (precondition failed).
10645 IfMatch *string `location:"header" locationName:"If-Match" type:"string"`
10647 // Return the object only if it has been modified since the specified time,
10648 // otherwise return a 304 (not modified).
10649 IfModifiedSince *time.Time `location:"header" locationName:"If-Modified-Since" type:"timestamp" timestampFormat:"rfc822"`
10651 // Return the object only if its entity tag (ETag) is different from the one
10652 // specified, otherwise return a 304 (not modified).
10653 IfNoneMatch *string `location:"header" locationName:"If-None-Match" type:"string"`
10655 // Return the object only if it has not been modified since the specified time,
10656 // otherwise return a 412 (precondition failed).
10657 IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp" timestampFormat:"rfc822"`
10659 // Key is a required field
10660 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
10662 // Part number of the object being read. This is a positive integer between
10663 // 1 and 10,000. Effectively performs a 'ranged' GET request for the part specified.
10664 // Useful for downloading just a part of an object.
10665 PartNumber *int64 `location:"querystring" locationName:"partNumber" type:"integer"`
10667 // Downloads the specified range bytes of an object. For more information about
10668 // the HTTP Range header, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.
10669 Range *string `location:"header" locationName:"Range" type:"string"`
10671 // Confirms that the requester knows that she or he will be charged for the
10672 // request. Bucket owners need not specify this parameter in their requests.
10673 // Documentation on downloading objects from requester pays buckets can be found
10674 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
10675 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
10677 // Sets the Cache-Control header of the response.
10678 ResponseCacheControl *string `location:"querystring" locationName:"response-cache-control" type:"string"`
10680 // Sets the Content-Disposition header of the response
10681 ResponseContentDisposition *string `location:"querystring" locationName:"response-content-disposition" type:"string"`
10683 // Sets the Content-Encoding header of the response.
10684 ResponseContentEncoding *string `location:"querystring" locationName:"response-content-encoding" type:"string"`
10686 // Sets the Content-Language header of the response.
10687 ResponseContentLanguage *string `location:"querystring" locationName:"response-content-language" type:"string"`
10689 // Sets the Content-Type header of the response.
10690 ResponseContentType *string `location:"querystring" locationName:"response-content-type" type:"string"`
10692 // Sets the Expires header of the response.
10693 ResponseExpires *time.Time `location:"querystring" locationName:"response-expires" type:"timestamp" timestampFormat:"iso8601"`
10695 // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
10696 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
10698 // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
10699 // data. This value is used to store the object and then it is discarded; Amazon
10700 // does not store the encryption key. The key must be appropriate for use with
10701 // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
10703 SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"`
10705 // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
10706 // Amazon S3 uses this header for a message integrity check to ensure the encryption
10707 // key was transmitted without error.
10708 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
10710 // VersionId used to reference a specific version of the object.
10711 VersionId *string `location:"querystring" locationName:"versionId" type:"string"`
10714 // String returns the string representation
10715 func (s GetObjectInput) String() string {
10716 return awsutil.Prettify(s)
10719 // GoString returns the string representation
10720 func (s GetObjectInput) GoString() string {
10724 // Validate inspects the fields of the type to determine if they are valid.
10725 func (s *GetObjectInput) Validate() error {
10726 invalidParams := request.ErrInvalidParams{Context: "GetObjectInput"}
10727 if s.Bucket == nil {
10728 invalidParams.Add(request.NewErrParamRequired("Bucket"))
10731 invalidParams.Add(request.NewErrParamRequired("Key"))
10733 if s.Key != nil && len(*s.Key) < 1 {
10734 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
10737 if invalidParams.Len() > 0 {
10738 return invalidParams
10743 // SetBucket sets the Bucket field's value.
10744 func (s *GetObjectInput) SetBucket(v string) *GetObjectInput {
10749 // SetIfMatch sets the IfMatch field's value.
10750 func (s *GetObjectInput) SetIfMatch(v string) *GetObjectInput {
10755 // SetIfModifiedSince sets the IfModifiedSince field's value.
10756 func (s *GetObjectInput) SetIfModifiedSince(v time.Time) *GetObjectInput {
10757 s.IfModifiedSince = &v
10761 // SetIfNoneMatch sets the IfNoneMatch field's value.
10762 func (s *GetObjectInput) SetIfNoneMatch(v string) *GetObjectInput {
10767 // SetIfUnmodifiedSince sets the IfUnmodifiedSince field's value.
10768 func (s *GetObjectInput) SetIfUnmodifiedSince(v time.Time) *GetObjectInput {
10769 s.IfUnmodifiedSince = &v
10773 // SetKey sets the Key field's value.
10774 func (s *GetObjectInput) SetKey(v string) *GetObjectInput {
10779 // SetPartNumber sets the PartNumber field's value.
10780 func (s *GetObjectInput) SetPartNumber(v int64) *GetObjectInput {
10785 // SetRange sets the Range field's value.
10786 func (s *GetObjectInput) SetRange(v string) *GetObjectInput {
10791 // SetRequestPayer sets the RequestPayer field's value.
10792 func (s *GetObjectInput) SetRequestPayer(v string) *GetObjectInput {
10793 s.RequestPayer = &v
10797 // SetResponseCacheControl sets the ResponseCacheControl field's value.
10798 func (s *GetObjectInput) SetResponseCacheControl(v string) *GetObjectInput {
10799 s.ResponseCacheControl = &v
10803 // SetResponseContentDisposition sets the ResponseContentDisposition field's value.
10804 func (s *GetObjectInput) SetResponseContentDisposition(v string) *GetObjectInput {
10805 s.ResponseContentDisposition = &v
10809 // SetResponseContentEncoding sets the ResponseContentEncoding field's value.
10810 func (s *GetObjectInput) SetResponseContentEncoding(v string) *GetObjectInput {
10811 s.ResponseContentEncoding = &v
10815 // SetResponseContentLanguage sets the ResponseContentLanguage field's value.
10816 func (s *GetObjectInput) SetResponseContentLanguage(v string) *GetObjectInput {
10817 s.ResponseContentLanguage = &v
10821 // SetResponseContentType sets the ResponseContentType field's value.
10822 func (s *GetObjectInput) SetResponseContentType(v string) *GetObjectInput {
10823 s.ResponseContentType = &v
10827 // SetResponseExpires sets the ResponseExpires field's value.
10828 func (s *GetObjectInput) SetResponseExpires(v time.Time) *GetObjectInput {
10829 s.ResponseExpires = &v
10833 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
10834 func (s *GetObjectInput) SetSSECustomerAlgorithm(v string) *GetObjectInput {
10835 s.SSECustomerAlgorithm = &v
10839 // SetSSECustomerKey sets the SSECustomerKey field's value.
10840 func (s *GetObjectInput) SetSSECustomerKey(v string) *GetObjectInput {
10841 s.SSECustomerKey = &v
10845 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
10846 func (s *GetObjectInput) SetSSECustomerKeyMD5(v string) *GetObjectInput {
10847 s.SSECustomerKeyMD5 = &v
10851 // SetVersionId sets the VersionId field's value.
10852 func (s *GetObjectInput) SetVersionId(v string) *GetObjectInput {
10857 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectOutput
10858 type GetObjectOutput struct {
10859 _ struct{} `type:"structure" payload:"Body"`
10861 AcceptRanges *string `location:"header" locationName:"accept-ranges" type:"string"`
10864 Body io.ReadCloser `type:"blob"`
10866 // Specifies caching behavior along the request/reply chain.
10867 CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"`
10869 // Specifies presentational information for the object.
10870 ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`
10872 // Specifies what content encodings have been applied to the object and thus
10873 // what decoding mechanisms must be applied to obtain the media-type referenced
10874 // by the Content-Type header field.
10875 ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"`
10877 // The language the content is in.
10878 ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`
10880 // Size of the body in bytes.
10881 ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"`
10883 // The portion of the object returned in the response.
10884 ContentRange *string `location:"header" locationName:"Content-Range" type:"string"`
10886 // A standard MIME type describing the format of the object data.
10887 ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
10889 // Specifies whether the object retrieved was (true) or was not (false) a Delete
10890 // Marker. If false, this response header does not appear in the response.
10891 DeleteMarker *bool `location:"header" locationName:"x-amz-delete-marker" type:"boolean"`
10893 // An ETag is an opaque identifier assigned by a web server to a specific version
10894 // of a resource found at a URL
10895 ETag *string `location:"header" locationName:"ETag" type:"string"`
10897 // If the object expiration is configured (see PUT Bucket lifecycle), the response
10898 // includes this header. It includes the expiry-date and rule-id key value pairs
10899 // providing object expiration information. The value of the rule-id is URL
10901 Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"`
10903 // The date and time at which the object is no longer cacheable.
10904 Expires *string `location:"header" locationName:"Expires" type:"string"`
10906 // Last modified date of the object
10907 LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp" timestampFormat:"rfc822"`
10909 // A map of metadata to store with the object in S3.
10910 Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
10912 // This is set to the number of metadata entries not returned in x-amz-meta
10913 // headers. This can happen if you create metadata using an API like SOAP that
10914 // supports more flexible metadata than the REST API. For example, using SOAP,
10915 // you can create metadata whose values are not legal HTTP headers.
10916 MissingMeta *int64 `location:"header" locationName:"x-amz-missing-meta" type:"integer"`
10918 // The count of parts this object has.
10919 PartsCount *int64 `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"`
10921 ReplicationStatus *string `location:"header" locationName:"x-amz-replication-status" type:"string" enum:"ReplicationStatus"`
10923 // If present, indicates that the requester was successfully charged for the
10925 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
10927 // Provides information about object restoration operation and expiration time
10928 // of the restored object copy.
10929 Restore *string `location:"header" locationName:"x-amz-restore" type:"string"`
10931 // If server-side encryption with a customer-provided encryption key was requested,
10932 // the response will include this header confirming the encryption algorithm
10934 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
10936 // If server-side encryption with a customer-provided encryption key was requested,
10937 // the response will include this header to provide round trip message integrity
10938 // verification of the customer-provided encryption key.
10939 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
10941 // If present, specifies the ID of the AWS Key Management Service (KMS) master
10942 // encryption key that was used for the object.
10943 SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
10945 // The Server-side encryption algorithm used when storing this object in S3
10946 // (e.g., AES256, aws:kms).
10947 ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
10949 StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
10951 // The number of tags, if any, on the object.
10952 TagCount *int64 `location:"header" locationName:"x-amz-tagging-count" type:"integer"`
10954 // Version of the object.
10955 VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
10957 // If the bucket is configured as a website, redirects requests for this object
10958 // to another object in the same bucket or to an external URL. Amazon S3 stores
10959 // the value of this header in the object metadata.
10960 WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"`
10963 // String returns the string representation
10964 func (s GetObjectOutput) String() string {
10965 return awsutil.Prettify(s)
10968 // GoString returns the string representation
10969 func (s GetObjectOutput) GoString() string {
10973 // SetAcceptRanges sets the AcceptRanges field's value.
10974 func (s *GetObjectOutput) SetAcceptRanges(v string) *GetObjectOutput {
10975 s.AcceptRanges = &v
10979 // SetBody sets the Body field's value.
10980 func (s *GetObjectOutput) SetBody(v io.ReadCloser) *GetObjectOutput {
10985 // SetCacheControl sets the CacheControl field's value.
10986 func (s *GetObjectOutput) SetCacheControl(v string) *GetObjectOutput {
10987 s.CacheControl = &v
10991 // SetContentDisposition sets the ContentDisposition field's value.
10992 func (s *GetObjectOutput) SetContentDisposition(v string) *GetObjectOutput {
10993 s.ContentDisposition = &v
10997 // SetContentEncoding sets the ContentEncoding field's value.
10998 func (s *GetObjectOutput) SetContentEncoding(v string) *GetObjectOutput {
10999 s.ContentEncoding = &v
11003 // SetContentLanguage sets the ContentLanguage field's value.
11004 func (s *GetObjectOutput) SetContentLanguage(v string) *GetObjectOutput {
11005 s.ContentLanguage = &v
11009 // SetContentLength sets the ContentLength field's value.
11010 func (s *GetObjectOutput) SetContentLength(v int64) *GetObjectOutput {
11011 s.ContentLength = &v
11015 // SetContentRange sets the ContentRange field's value.
11016 func (s *GetObjectOutput) SetContentRange(v string) *GetObjectOutput {
11017 s.ContentRange = &v
11021 // SetContentType sets the ContentType field's value.
11022 func (s *GetObjectOutput) SetContentType(v string) *GetObjectOutput {
11027 // SetDeleteMarker sets the DeleteMarker field's value.
11028 func (s *GetObjectOutput) SetDeleteMarker(v bool) *GetObjectOutput {
11029 s.DeleteMarker = &v
11033 // SetETag sets the ETag field's value.
11034 func (s *GetObjectOutput) SetETag(v string) *GetObjectOutput {
11039 // SetExpiration sets the Expiration field's value.
11040 func (s *GetObjectOutput) SetExpiration(v string) *GetObjectOutput {
11045 // SetExpires sets the Expires field's value.
11046 func (s *GetObjectOutput) SetExpires(v string) *GetObjectOutput {
11051 // SetLastModified sets the LastModified field's value.
11052 func (s *GetObjectOutput) SetLastModified(v time.Time) *GetObjectOutput {
11053 s.LastModified = &v
11057 // SetMetadata sets the Metadata field's value.
11058 func (s *GetObjectOutput) SetMetadata(v map[string]*string) *GetObjectOutput {
11063 // SetMissingMeta sets the MissingMeta field's value.
11064 func (s *GetObjectOutput) SetMissingMeta(v int64) *GetObjectOutput {
11069 // SetPartsCount sets the PartsCount field's value.
11070 func (s *GetObjectOutput) SetPartsCount(v int64) *GetObjectOutput {
11075 // SetReplicationStatus sets the ReplicationStatus field's value.
11076 func (s *GetObjectOutput) SetReplicationStatus(v string) *GetObjectOutput {
11077 s.ReplicationStatus = &v
11081 // SetRequestCharged sets the RequestCharged field's value.
11082 func (s *GetObjectOutput) SetRequestCharged(v string) *GetObjectOutput {
11083 s.RequestCharged = &v
11087 // SetRestore sets the Restore field's value.
11088 func (s *GetObjectOutput) SetRestore(v string) *GetObjectOutput {
11093 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
11094 func (s *GetObjectOutput) SetSSECustomerAlgorithm(v string) *GetObjectOutput {
11095 s.SSECustomerAlgorithm = &v
11099 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
11100 func (s *GetObjectOutput) SetSSECustomerKeyMD5(v string) *GetObjectOutput {
11101 s.SSECustomerKeyMD5 = &v
11105 // SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
11106 func (s *GetObjectOutput) SetSSEKMSKeyId(v string) *GetObjectOutput {
11111 // SetServerSideEncryption sets the ServerSideEncryption field's value.
11112 func (s *GetObjectOutput) SetServerSideEncryption(v string) *GetObjectOutput {
11113 s.ServerSideEncryption = &v
11117 // SetStorageClass sets the StorageClass field's value.
11118 func (s *GetObjectOutput) SetStorageClass(v string) *GetObjectOutput {
11119 s.StorageClass = &v
11123 // SetTagCount sets the TagCount field's value.
11124 func (s *GetObjectOutput) SetTagCount(v int64) *GetObjectOutput {
11129 // SetVersionId sets the VersionId field's value.
11130 func (s *GetObjectOutput) SetVersionId(v string) *GetObjectOutput {
11135 // SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.
11136 func (s *GetObjectOutput) SetWebsiteRedirectLocation(v string) *GetObjectOutput {
11137 s.WebsiteRedirectLocation = &v
11141 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTaggingRequest
11142 type GetObjectTaggingInput struct {
11143 _ struct{} `type:"structure"`
11145 // Bucket is a required field
11146 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
11148 // Key is a required field
11149 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
11151 VersionId *string `location:"querystring" locationName:"versionId" type:"string"`
11154 // String returns the string representation
11155 func (s GetObjectTaggingInput) String() string {
11156 return awsutil.Prettify(s)
11159 // GoString returns the string representation
11160 func (s GetObjectTaggingInput) GoString() string {
11164 // Validate inspects the fields of the type to determine if they are valid.
11165 func (s *GetObjectTaggingInput) Validate() error {
11166 invalidParams := request.ErrInvalidParams{Context: "GetObjectTaggingInput"}
11167 if s.Bucket == nil {
11168 invalidParams.Add(request.NewErrParamRequired("Bucket"))
11171 invalidParams.Add(request.NewErrParamRequired("Key"))
11173 if s.Key != nil && len(*s.Key) < 1 {
11174 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
11177 if invalidParams.Len() > 0 {
11178 return invalidParams
11183 // SetBucket sets the Bucket field's value.
11184 func (s *GetObjectTaggingInput) SetBucket(v string) *GetObjectTaggingInput {
11189 // SetKey sets the Key field's value.
11190 func (s *GetObjectTaggingInput) SetKey(v string) *GetObjectTaggingInput {
11195 // SetVersionId sets the VersionId field's value.
11196 func (s *GetObjectTaggingInput) SetVersionId(v string) *GetObjectTaggingInput {
11201 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTaggingOutput
11202 type GetObjectTaggingOutput struct {
11203 _ struct{} `type:"structure"`
11205 // TagSet is a required field
11206 TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"`
11208 VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
11211 // String returns the string representation
11212 func (s GetObjectTaggingOutput) String() string {
11213 return awsutil.Prettify(s)
11216 // GoString returns the string representation
11217 func (s GetObjectTaggingOutput) GoString() string {
11221 // SetTagSet sets the TagSet field's value.
11222 func (s *GetObjectTaggingOutput) SetTagSet(v []*Tag) *GetObjectTaggingOutput {
11227 // SetVersionId sets the VersionId field's value.
11228 func (s *GetObjectTaggingOutput) SetVersionId(v string) *GetObjectTaggingOutput {
11233 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTorrentRequest
11234 type GetObjectTorrentInput struct {
11235 _ struct{} `type:"structure"`
11237 // Bucket is a required field
11238 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
11240 // Key is a required field
11241 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
11243 // Confirms that the requester knows that she or he will be charged for the
11244 // request. Bucket owners need not specify this parameter in their requests.
11245 // Documentation on downloading objects from requester pays buckets can be found
11246 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
11247 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
11250 // String returns the string representation
11251 func (s GetObjectTorrentInput) String() string {
11252 return awsutil.Prettify(s)
11255 // GoString returns the string representation
11256 func (s GetObjectTorrentInput) GoString() string {
11260 // Validate inspects the fields of the type to determine if they are valid.
11261 func (s *GetObjectTorrentInput) Validate() error {
11262 invalidParams := request.ErrInvalidParams{Context: "GetObjectTorrentInput"}
11263 if s.Bucket == nil {
11264 invalidParams.Add(request.NewErrParamRequired("Bucket"))
11267 invalidParams.Add(request.NewErrParamRequired("Key"))
11269 if s.Key != nil && len(*s.Key) < 1 {
11270 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
11273 if invalidParams.Len() > 0 {
11274 return invalidParams
11279 // SetBucket sets the Bucket field's value.
11280 func (s *GetObjectTorrentInput) SetBucket(v string) *GetObjectTorrentInput {
11285 // SetKey sets the Key field's value.
11286 func (s *GetObjectTorrentInput) SetKey(v string) *GetObjectTorrentInput {
11291 // SetRequestPayer sets the RequestPayer field's value.
11292 func (s *GetObjectTorrentInput) SetRequestPayer(v string) *GetObjectTorrentInput {
11293 s.RequestPayer = &v
11297 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetObjectTorrentOutput
11298 type GetObjectTorrentOutput struct {
11299 _ struct{} `type:"structure" payload:"Body"`
11301 Body io.ReadCloser `type:"blob"`
11303 // If present, indicates that the requester was successfully charged for the
11305 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
11308 // String returns the string representation
11309 func (s GetObjectTorrentOutput) String() string {
11310 return awsutil.Prettify(s)
11313 // GoString returns the string representation
11314 func (s GetObjectTorrentOutput) GoString() string {
11318 // SetBody sets the Body field's value.
11319 func (s *GetObjectTorrentOutput) SetBody(v io.ReadCloser) *GetObjectTorrentOutput {
11324 // SetRequestCharged sets the RequestCharged field's value.
11325 func (s *GetObjectTorrentOutput) SetRequestCharged(v string) *GetObjectTorrentOutput {
11326 s.RequestCharged = &v
11330 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GlacierJobParameters
11331 type GlacierJobParameters struct {
11332 _ struct{} `type:"structure"`
11334 // Glacier retrieval tier at which the restore will be processed.
11336 // Tier is a required field
11337 Tier *string `type:"string" required:"true" enum:"Tier"`
11340 // String returns the string representation
11341 func (s GlacierJobParameters) String() string {
11342 return awsutil.Prettify(s)
11345 // GoString returns the string representation
11346 func (s GlacierJobParameters) GoString() string {
11350 // Validate inspects the fields of the type to determine if they are valid.
11351 func (s *GlacierJobParameters) Validate() error {
11352 invalidParams := request.ErrInvalidParams{Context: "GlacierJobParameters"}
11354 invalidParams.Add(request.NewErrParamRequired("Tier"))
11357 if invalidParams.Len() > 0 {
11358 return invalidParams
11363 // SetTier sets the Tier field's value.
11364 func (s *GlacierJobParameters) SetTier(v string) *GlacierJobParameters {
11369 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Grant
11370 type Grant struct {
11371 _ struct{} `type:"structure"`
11373 Grantee *Grantee `type:"structure"`
11375 // Specifies the permission given to the grantee.
11376 Permission *string `type:"string" enum:"Permission"`
11379 // String returns the string representation
11380 func (s Grant) String() string {
11381 return awsutil.Prettify(s)
11384 // GoString returns the string representation
11385 func (s Grant) GoString() string {
11389 // Validate inspects the fields of the type to determine if they are valid.
11390 func (s *Grant) Validate() error {
11391 invalidParams := request.ErrInvalidParams{Context: "Grant"}
11392 if s.Grantee != nil {
11393 if err := s.Grantee.Validate(); err != nil {
11394 invalidParams.AddNested("Grantee", err.(request.ErrInvalidParams))
11398 if invalidParams.Len() > 0 {
11399 return invalidParams
11404 // SetGrantee sets the Grantee field's value.
11405 func (s *Grant) SetGrantee(v *Grantee) *Grant {
11410 // SetPermission sets the Permission field's value.
11411 func (s *Grant) SetPermission(v string) *Grant {
11416 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Grantee
11417 type Grantee struct {
11418 _ struct{} `type:"structure" xmlPrefix:"xsi" xmlURI:"http://www.w3.org/2001/XMLSchema-instance"`
11420 // Screen name of the grantee.
11421 DisplayName *string `type:"string"`
11423 // Email address of the grantee.
11424 EmailAddress *string `type:"string"`
11426 // The canonical user ID of the grantee.
11427 ID *string `type:"string"`
11431 // Type is a required field
11432 Type *string `locationName:"xsi:type" type:"string" xmlAttribute:"true" required:"true" enum:"Type"`
11434 // URI of the grantee group.
11435 URI *string `type:"string"`
11438 // String returns the string representation
11439 func (s Grantee) String() string {
11440 return awsutil.Prettify(s)
11443 // GoString returns the string representation
11444 func (s Grantee) GoString() string {
11448 // Validate inspects the fields of the type to determine if they are valid.
11449 func (s *Grantee) Validate() error {
11450 invalidParams := request.ErrInvalidParams{Context: "Grantee"}
11452 invalidParams.Add(request.NewErrParamRequired("Type"))
11455 if invalidParams.Len() > 0 {
11456 return invalidParams
11461 // SetDisplayName sets the DisplayName field's value.
11462 func (s *Grantee) SetDisplayName(v string) *Grantee {
11467 // SetEmailAddress sets the EmailAddress field's value.
11468 func (s *Grantee) SetEmailAddress(v string) *Grantee {
11469 s.EmailAddress = &v
11473 // SetID sets the ID field's value.
11474 func (s *Grantee) SetID(v string) *Grantee {
11479 // SetType sets the Type field's value.
11480 func (s *Grantee) SetType(v string) *Grantee {
11485 // SetURI sets the URI field's value.
11486 func (s *Grantee) SetURI(v string) *Grantee {
11491 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucketRequest
11492 type HeadBucketInput struct {
11493 _ struct{} `type:"structure"`
11495 // Bucket is a required field
11496 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
11499 // String returns the string representation
11500 func (s HeadBucketInput) String() string {
11501 return awsutil.Prettify(s)
11504 // GoString returns the string representation
11505 func (s HeadBucketInput) GoString() string {
11509 // Validate inspects the fields of the type to determine if they are valid.
11510 func (s *HeadBucketInput) Validate() error {
11511 invalidParams := request.ErrInvalidParams{Context: "HeadBucketInput"}
11512 if s.Bucket == nil {
11513 invalidParams.Add(request.NewErrParamRequired("Bucket"))
11516 if invalidParams.Len() > 0 {
11517 return invalidParams
11522 // SetBucket sets the Bucket field's value.
11523 func (s *HeadBucketInput) SetBucket(v string) *HeadBucketInput {
11528 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadBucketOutput
11529 type HeadBucketOutput struct {
11530 _ struct{} `type:"structure"`
11533 // String returns the string representation
11534 func (s HeadBucketOutput) String() string {
11535 return awsutil.Prettify(s)
11538 // GoString returns the string representation
11539 func (s HeadBucketOutput) GoString() string {
11543 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObjectRequest
11544 type HeadObjectInput struct {
11545 _ struct{} `type:"structure"`
11547 // Bucket is a required field
11548 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
11550 // Return the object only if its entity tag (ETag) is the same as the one specified,
11551 // otherwise return a 412 (precondition failed).
11552 IfMatch *string `location:"header" locationName:"If-Match" type:"string"`
11554 // Return the object only if it has been modified since the specified time,
11555 // otherwise return a 304 (not modified).
11556 IfModifiedSince *time.Time `location:"header" locationName:"If-Modified-Since" type:"timestamp" timestampFormat:"rfc822"`
11558 // Return the object only if its entity tag (ETag) is different from the one
11559 // specified, otherwise return a 304 (not modified).
11560 IfNoneMatch *string `location:"header" locationName:"If-None-Match" type:"string"`
11562 // Return the object only if it has not been modified since the specified time,
11563 // otherwise return a 412 (precondition failed).
11564 IfUnmodifiedSince *time.Time `location:"header" locationName:"If-Unmodified-Since" type:"timestamp" timestampFormat:"rfc822"`
11566 // Key is a required field
11567 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
11569 // Part number of the object being read. This is a positive integer between
11570 // 1 and 10,000. Effectively performs a 'ranged' HEAD request for the part specified.
11571 // Useful querying about the size of the part and the number of parts in this
11573 PartNumber *int64 `location:"querystring" locationName:"partNumber" type:"integer"`
11575 // Downloads the specified range bytes of an object. For more information about
11576 // the HTTP Range header, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.
11577 Range *string `location:"header" locationName:"Range" type:"string"`
11579 // Confirms that the requester knows that she or he will be charged for the
11580 // request. Bucket owners need not specify this parameter in their requests.
11581 // Documentation on downloading objects from requester pays buckets can be found
11582 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
11583 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
11585 // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
11586 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
11588 // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
11589 // data. This value is used to store the object and then it is discarded; Amazon
11590 // does not store the encryption key. The key must be appropriate for use with
11591 // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
11593 SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"`
11595 // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
11596 // Amazon S3 uses this header for a message integrity check to ensure the encryption
11597 // key was transmitted without error.
11598 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
11600 // VersionId used to reference a specific version of the object.
11601 VersionId *string `location:"querystring" locationName:"versionId" type:"string"`
11604 // String returns the string representation
11605 func (s HeadObjectInput) String() string {
11606 return awsutil.Prettify(s)
11609 // GoString returns the string representation
11610 func (s HeadObjectInput) GoString() string {
11614 // Validate inspects the fields of the type to determine if they are valid.
11615 func (s *HeadObjectInput) Validate() error {
11616 invalidParams := request.ErrInvalidParams{Context: "HeadObjectInput"}
11617 if s.Bucket == nil {
11618 invalidParams.Add(request.NewErrParamRequired("Bucket"))
11621 invalidParams.Add(request.NewErrParamRequired("Key"))
11623 if s.Key != nil && len(*s.Key) < 1 {
11624 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
11627 if invalidParams.Len() > 0 {
11628 return invalidParams
11633 // SetBucket sets the Bucket field's value.
11634 func (s *HeadObjectInput) SetBucket(v string) *HeadObjectInput {
11639 // SetIfMatch sets the IfMatch field's value.
11640 func (s *HeadObjectInput) SetIfMatch(v string) *HeadObjectInput {
11645 // SetIfModifiedSince sets the IfModifiedSince field's value.
11646 func (s *HeadObjectInput) SetIfModifiedSince(v time.Time) *HeadObjectInput {
11647 s.IfModifiedSince = &v
11651 // SetIfNoneMatch sets the IfNoneMatch field's value.
11652 func (s *HeadObjectInput) SetIfNoneMatch(v string) *HeadObjectInput {
11657 // SetIfUnmodifiedSince sets the IfUnmodifiedSince field's value.
11658 func (s *HeadObjectInput) SetIfUnmodifiedSince(v time.Time) *HeadObjectInput {
11659 s.IfUnmodifiedSince = &v
11663 // SetKey sets the Key field's value.
11664 func (s *HeadObjectInput) SetKey(v string) *HeadObjectInput {
11669 // SetPartNumber sets the PartNumber field's value.
11670 func (s *HeadObjectInput) SetPartNumber(v int64) *HeadObjectInput {
11675 // SetRange sets the Range field's value.
11676 func (s *HeadObjectInput) SetRange(v string) *HeadObjectInput {
11681 // SetRequestPayer sets the RequestPayer field's value.
11682 func (s *HeadObjectInput) SetRequestPayer(v string) *HeadObjectInput {
11683 s.RequestPayer = &v
11687 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
11688 func (s *HeadObjectInput) SetSSECustomerAlgorithm(v string) *HeadObjectInput {
11689 s.SSECustomerAlgorithm = &v
11693 // SetSSECustomerKey sets the SSECustomerKey field's value.
11694 func (s *HeadObjectInput) SetSSECustomerKey(v string) *HeadObjectInput {
11695 s.SSECustomerKey = &v
11699 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
11700 func (s *HeadObjectInput) SetSSECustomerKeyMD5(v string) *HeadObjectInput {
11701 s.SSECustomerKeyMD5 = &v
11705 // SetVersionId sets the VersionId field's value.
11706 func (s *HeadObjectInput) SetVersionId(v string) *HeadObjectInput {
11711 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/HeadObjectOutput
11712 type HeadObjectOutput struct {
11713 _ struct{} `type:"structure"`
11715 AcceptRanges *string `location:"header" locationName:"accept-ranges" type:"string"`
11717 // Specifies caching behavior along the request/reply chain.
11718 CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"`
11720 // Specifies presentational information for the object.
11721 ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`
11723 // Specifies what content encodings have been applied to the object and thus
11724 // what decoding mechanisms must be applied to obtain the media-type referenced
11725 // by the Content-Type header field.
11726 ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"`
11728 // The language the content is in.
11729 ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`
11731 // Size of the body in bytes.
11732 ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"`
11734 // A standard MIME type describing the format of the object data.
11735 ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
11737 // Specifies whether the object retrieved was (true) or was not (false) a Delete
11738 // Marker. If false, this response header does not appear in the response.
11739 DeleteMarker *bool `location:"header" locationName:"x-amz-delete-marker" type:"boolean"`
11741 // An ETag is an opaque identifier assigned by a web server to a specific version
11742 // of a resource found at a URL
11743 ETag *string `location:"header" locationName:"ETag" type:"string"`
11745 // If the object expiration is configured (see PUT Bucket lifecycle), the response
11746 // includes this header. It includes the expiry-date and rule-id key value pairs
11747 // providing object expiration information. The value of the rule-id is URL
11749 Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"`
11751 // The date and time at which the object is no longer cacheable.
11752 Expires *string `location:"header" locationName:"Expires" type:"string"`
11754 // Last modified date of the object
11755 LastModified *time.Time `location:"header" locationName:"Last-Modified" type:"timestamp" timestampFormat:"rfc822"`
11757 // A map of metadata to store with the object in S3.
11758 Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
11760 // This is set to the number of metadata entries not returned in x-amz-meta
11761 // headers. This can happen if you create metadata using an API like SOAP that
11762 // supports more flexible metadata than the REST API. For example, using SOAP,
11763 // you can create metadata whose values are not legal HTTP headers.
11764 MissingMeta *int64 `location:"header" locationName:"x-amz-missing-meta" type:"integer"`
11766 // The count of parts this object has.
11767 PartsCount *int64 `location:"header" locationName:"x-amz-mp-parts-count" type:"integer"`
11769 ReplicationStatus *string `location:"header" locationName:"x-amz-replication-status" type:"string" enum:"ReplicationStatus"`
11771 // If present, indicates that the requester was successfully charged for the
11773 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
11775 // Provides information about object restoration operation and expiration time
11776 // of the restored object copy.
11777 Restore *string `location:"header" locationName:"x-amz-restore" type:"string"`
11779 // If server-side encryption with a customer-provided encryption key was requested,
11780 // the response will include this header confirming the encryption algorithm
11782 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
11784 // If server-side encryption with a customer-provided encryption key was requested,
11785 // the response will include this header to provide round trip message integrity
11786 // verification of the customer-provided encryption key.
11787 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
11789 // If present, specifies the ID of the AWS Key Management Service (KMS) master
11790 // encryption key that was used for the object.
11791 SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
11793 // The Server-side encryption algorithm used when storing this object in S3
11794 // (e.g., AES256, aws:kms).
11795 ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
11797 StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
11799 // Version of the object.
11800 VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
11802 // If the bucket is configured as a website, redirects requests for this object
11803 // to another object in the same bucket or to an external URL. Amazon S3 stores
11804 // the value of this header in the object metadata.
11805 WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"`
11808 // String returns the string representation
11809 func (s HeadObjectOutput) String() string {
11810 return awsutil.Prettify(s)
11813 // GoString returns the string representation
11814 func (s HeadObjectOutput) GoString() string {
11818 // SetAcceptRanges sets the AcceptRanges field's value.
11819 func (s *HeadObjectOutput) SetAcceptRanges(v string) *HeadObjectOutput {
11820 s.AcceptRanges = &v
11824 // SetCacheControl sets the CacheControl field's value.
11825 func (s *HeadObjectOutput) SetCacheControl(v string) *HeadObjectOutput {
11826 s.CacheControl = &v
11830 // SetContentDisposition sets the ContentDisposition field's value.
11831 func (s *HeadObjectOutput) SetContentDisposition(v string) *HeadObjectOutput {
11832 s.ContentDisposition = &v
11836 // SetContentEncoding sets the ContentEncoding field's value.
11837 func (s *HeadObjectOutput) SetContentEncoding(v string) *HeadObjectOutput {
11838 s.ContentEncoding = &v
11842 // SetContentLanguage sets the ContentLanguage field's value.
11843 func (s *HeadObjectOutput) SetContentLanguage(v string) *HeadObjectOutput {
11844 s.ContentLanguage = &v
11848 // SetContentLength sets the ContentLength field's value.
11849 func (s *HeadObjectOutput) SetContentLength(v int64) *HeadObjectOutput {
11850 s.ContentLength = &v
11854 // SetContentType sets the ContentType field's value.
11855 func (s *HeadObjectOutput) SetContentType(v string) *HeadObjectOutput {
11860 // SetDeleteMarker sets the DeleteMarker field's value.
11861 func (s *HeadObjectOutput) SetDeleteMarker(v bool) *HeadObjectOutput {
11862 s.DeleteMarker = &v
11866 // SetETag sets the ETag field's value.
11867 func (s *HeadObjectOutput) SetETag(v string) *HeadObjectOutput {
11872 // SetExpiration sets the Expiration field's value.
11873 func (s *HeadObjectOutput) SetExpiration(v string) *HeadObjectOutput {
11878 // SetExpires sets the Expires field's value.
11879 func (s *HeadObjectOutput) SetExpires(v string) *HeadObjectOutput {
11884 // SetLastModified sets the LastModified field's value.
11885 func (s *HeadObjectOutput) SetLastModified(v time.Time) *HeadObjectOutput {
11886 s.LastModified = &v
11890 // SetMetadata sets the Metadata field's value.
11891 func (s *HeadObjectOutput) SetMetadata(v map[string]*string) *HeadObjectOutput {
11896 // SetMissingMeta sets the MissingMeta field's value.
11897 func (s *HeadObjectOutput) SetMissingMeta(v int64) *HeadObjectOutput {
11902 // SetPartsCount sets the PartsCount field's value.
11903 func (s *HeadObjectOutput) SetPartsCount(v int64) *HeadObjectOutput {
11908 // SetReplicationStatus sets the ReplicationStatus field's value.
11909 func (s *HeadObjectOutput) SetReplicationStatus(v string) *HeadObjectOutput {
11910 s.ReplicationStatus = &v
11914 // SetRequestCharged sets the RequestCharged field's value.
11915 func (s *HeadObjectOutput) SetRequestCharged(v string) *HeadObjectOutput {
11916 s.RequestCharged = &v
11920 // SetRestore sets the Restore field's value.
11921 func (s *HeadObjectOutput) SetRestore(v string) *HeadObjectOutput {
11926 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
11927 func (s *HeadObjectOutput) SetSSECustomerAlgorithm(v string) *HeadObjectOutput {
11928 s.SSECustomerAlgorithm = &v
11932 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
11933 func (s *HeadObjectOutput) SetSSECustomerKeyMD5(v string) *HeadObjectOutput {
11934 s.SSECustomerKeyMD5 = &v
11938 // SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
11939 func (s *HeadObjectOutput) SetSSEKMSKeyId(v string) *HeadObjectOutput {
11944 // SetServerSideEncryption sets the ServerSideEncryption field's value.
11945 func (s *HeadObjectOutput) SetServerSideEncryption(v string) *HeadObjectOutput {
11946 s.ServerSideEncryption = &v
11950 // SetStorageClass sets the StorageClass field's value.
11951 func (s *HeadObjectOutput) SetStorageClass(v string) *HeadObjectOutput {
11952 s.StorageClass = &v
11956 // SetVersionId sets the VersionId field's value.
11957 func (s *HeadObjectOutput) SetVersionId(v string) *HeadObjectOutput {
11962 // SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.
11963 func (s *HeadObjectOutput) SetWebsiteRedirectLocation(v string) *HeadObjectOutput {
11964 s.WebsiteRedirectLocation = &v
11968 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/IndexDocument
11969 type IndexDocument struct {
11970 _ struct{} `type:"structure"`
11972 // A suffix that is appended to a request that is for a directory on the website
11973 // endpoint (e.g. if the suffix is index.html and you make a request to samplebucket/images/
11974 // the data that is returned will be for the object with the key name images/index.html)
11975 // The suffix must not be empty and must not include a slash character.
11977 // Suffix is a required field
11978 Suffix *string `type:"string" required:"true"`
11981 // String returns the string representation
11982 func (s IndexDocument) String() string {
11983 return awsutil.Prettify(s)
11986 // GoString returns the string representation
11987 func (s IndexDocument) GoString() string {
11991 // Validate inspects the fields of the type to determine if they are valid.
11992 func (s *IndexDocument) Validate() error {
11993 invalidParams := request.ErrInvalidParams{Context: "IndexDocument"}
11994 if s.Suffix == nil {
11995 invalidParams.Add(request.NewErrParamRequired("Suffix"))
11998 if invalidParams.Len() > 0 {
11999 return invalidParams
12004 // SetSuffix sets the Suffix field's value.
12005 func (s *IndexDocument) SetSuffix(v string) *IndexDocument {
12010 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Initiator
12011 type Initiator struct {
12012 _ struct{} `type:"structure"`
12014 // Name of the Principal.
12015 DisplayName *string `type:"string"`
12017 // If the principal is an AWS account, it provides the Canonical User ID. If
12018 // the principal is an IAM User, it provides a user ARN value.
12019 ID *string `type:"string"`
12022 // String returns the string representation
12023 func (s Initiator) String() string {
12024 return awsutil.Prettify(s)
12027 // GoString returns the string representation
12028 func (s Initiator) GoString() string {
12032 // SetDisplayName sets the DisplayName field's value.
12033 func (s *Initiator) SetDisplayName(v string) *Initiator {
12038 // SetID sets the ID field's value.
12039 func (s *Initiator) SetID(v string) *Initiator {
12044 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InventoryConfiguration
12045 type InventoryConfiguration struct {
12046 _ struct{} `type:"structure"`
12048 // Contains information about where to publish the inventory results.
12050 // Destination is a required field
12051 Destination *InventoryDestination `type:"structure" required:"true"`
12053 // Specifies an inventory filter. The inventory only includes objects that meet
12054 // the filter's criteria.
12055 Filter *InventoryFilter `type:"structure"`
12057 // The ID used to identify the inventory configuration.
12059 // Id is a required field
12060 Id *string `type:"string" required:"true"`
12062 // Specifies which object version(s) to included in the inventory results.
12064 // IncludedObjectVersions is a required field
12065 IncludedObjectVersions *string `type:"string" required:"true" enum:"InventoryIncludedObjectVersions"`
12067 // Specifies whether the inventory is enabled or disabled.
12069 // IsEnabled is a required field
12070 IsEnabled *bool `type:"boolean" required:"true"`
12072 // Contains the optional fields that are included in the inventory results.
12073 OptionalFields []*string `locationNameList:"Field" type:"list"`
12075 // Specifies the schedule for generating inventory results.
12077 // Schedule is a required field
12078 Schedule *InventorySchedule `type:"structure" required:"true"`
12081 // String returns the string representation
12082 func (s InventoryConfiguration) String() string {
12083 return awsutil.Prettify(s)
12086 // GoString returns the string representation
12087 func (s InventoryConfiguration) GoString() string {
12091 // Validate inspects the fields of the type to determine if they are valid.
12092 func (s *InventoryConfiguration) Validate() error {
12093 invalidParams := request.ErrInvalidParams{Context: "InventoryConfiguration"}
12094 if s.Destination == nil {
12095 invalidParams.Add(request.NewErrParamRequired("Destination"))
12098 invalidParams.Add(request.NewErrParamRequired("Id"))
12100 if s.IncludedObjectVersions == nil {
12101 invalidParams.Add(request.NewErrParamRequired("IncludedObjectVersions"))
12103 if s.IsEnabled == nil {
12104 invalidParams.Add(request.NewErrParamRequired("IsEnabled"))
12106 if s.Schedule == nil {
12107 invalidParams.Add(request.NewErrParamRequired("Schedule"))
12109 if s.Destination != nil {
12110 if err := s.Destination.Validate(); err != nil {
12111 invalidParams.AddNested("Destination", err.(request.ErrInvalidParams))
12114 if s.Filter != nil {
12115 if err := s.Filter.Validate(); err != nil {
12116 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
12119 if s.Schedule != nil {
12120 if err := s.Schedule.Validate(); err != nil {
12121 invalidParams.AddNested("Schedule", err.(request.ErrInvalidParams))
12125 if invalidParams.Len() > 0 {
12126 return invalidParams
12131 // SetDestination sets the Destination field's value.
12132 func (s *InventoryConfiguration) SetDestination(v *InventoryDestination) *InventoryConfiguration {
12137 // SetFilter sets the Filter field's value.
12138 func (s *InventoryConfiguration) SetFilter(v *InventoryFilter) *InventoryConfiguration {
12143 // SetId sets the Id field's value.
12144 func (s *InventoryConfiguration) SetId(v string) *InventoryConfiguration {
12149 // SetIncludedObjectVersions sets the IncludedObjectVersions field's value.
12150 func (s *InventoryConfiguration) SetIncludedObjectVersions(v string) *InventoryConfiguration {
12151 s.IncludedObjectVersions = &v
12155 // SetIsEnabled sets the IsEnabled field's value.
12156 func (s *InventoryConfiguration) SetIsEnabled(v bool) *InventoryConfiguration {
12161 // SetOptionalFields sets the OptionalFields field's value.
12162 func (s *InventoryConfiguration) SetOptionalFields(v []*string) *InventoryConfiguration {
12163 s.OptionalFields = v
12167 // SetSchedule sets the Schedule field's value.
12168 func (s *InventoryConfiguration) SetSchedule(v *InventorySchedule) *InventoryConfiguration {
12173 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InventoryDestination
12174 type InventoryDestination struct {
12175 _ struct{} `type:"structure"`
12177 // Contains the bucket name, file format, bucket owner (optional), and prefix
12178 // (optional) where inventory results are published.
12180 // S3BucketDestination is a required field
12181 S3BucketDestination *InventoryS3BucketDestination `type:"structure" required:"true"`
12184 // String returns the string representation
12185 func (s InventoryDestination) String() string {
12186 return awsutil.Prettify(s)
12189 // GoString returns the string representation
12190 func (s InventoryDestination) GoString() string {
12194 // Validate inspects the fields of the type to determine if they are valid.
12195 func (s *InventoryDestination) Validate() error {
12196 invalidParams := request.ErrInvalidParams{Context: "InventoryDestination"}
12197 if s.S3BucketDestination == nil {
12198 invalidParams.Add(request.NewErrParamRequired("S3BucketDestination"))
12200 if s.S3BucketDestination != nil {
12201 if err := s.S3BucketDestination.Validate(); err != nil {
12202 invalidParams.AddNested("S3BucketDestination", err.(request.ErrInvalidParams))
12206 if invalidParams.Len() > 0 {
12207 return invalidParams
12212 // SetS3BucketDestination sets the S3BucketDestination field's value.
12213 func (s *InventoryDestination) SetS3BucketDestination(v *InventoryS3BucketDestination) *InventoryDestination {
12214 s.S3BucketDestination = v
12218 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InventoryFilter
12219 type InventoryFilter struct {
12220 _ struct{} `type:"structure"`
12222 // The prefix that an object must have to be included in the inventory results.
12224 // Prefix is a required field
12225 Prefix *string `type:"string" required:"true"`
12228 // String returns the string representation
12229 func (s InventoryFilter) String() string {
12230 return awsutil.Prettify(s)
12233 // GoString returns the string representation
12234 func (s InventoryFilter) GoString() string {
12238 // Validate inspects the fields of the type to determine if they are valid.
12239 func (s *InventoryFilter) Validate() error {
12240 invalidParams := request.ErrInvalidParams{Context: "InventoryFilter"}
12241 if s.Prefix == nil {
12242 invalidParams.Add(request.NewErrParamRequired("Prefix"))
12245 if invalidParams.Len() > 0 {
12246 return invalidParams
12251 // SetPrefix sets the Prefix field's value.
12252 func (s *InventoryFilter) SetPrefix(v string) *InventoryFilter {
12257 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InventoryS3BucketDestination
12258 type InventoryS3BucketDestination struct {
12259 _ struct{} `type:"structure"`
12261 // The ID of the account that owns the destination bucket.
12262 AccountId *string `type:"string"`
12264 // The Amazon resource name (ARN) of the bucket where inventory results will
12267 // Bucket is a required field
12268 Bucket *string `type:"string" required:"true"`
12270 // Specifies the output format of the inventory results.
12272 // Format is a required field
12273 Format *string `type:"string" required:"true" enum:"InventoryFormat"`
12275 // The prefix that is prepended to all inventory results.
12276 Prefix *string `type:"string"`
12279 // String returns the string representation
12280 func (s InventoryS3BucketDestination) String() string {
12281 return awsutil.Prettify(s)
12284 // GoString returns the string representation
12285 func (s InventoryS3BucketDestination) GoString() string {
12289 // Validate inspects the fields of the type to determine if they are valid.
12290 func (s *InventoryS3BucketDestination) Validate() error {
12291 invalidParams := request.ErrInvalidParams{Context: "InventoryS3BucketDestination"}
12292 if s.Bucket == nil {
12293 invalidParams.Add(request.NewErrParamRequired("Bucket"))
12295 if s.Format == nil {
12296 invalidParams.Add(request.NewErrParamRequired("Format"))
12299 if invalidParams.Len() > 0 {
12300 return invalidParams
12305 // SetAccountId sets the AccountId field's value.
12306 func (s *InventoryS3BucketDestination) SetAccountId(v string) *InventoryS3BucketDestination {
12311 // SetBucket sets the Bucket field's value.
12312 func (s *InventoryS3BucketDestination) SetBucket(v string) *InventoryS3BucketDestination {
12317 // SetFormat sets the Format field's value.
12318 func (s *InventoryS3BucketDestination) SetFormat(v string) *InventoryS3BucketDestination {
12323 // SetPrefix sets the Prefix field's value.
12324 func (s *InventoryS3BucketDestination) SetPrefix(v string) *InventoryS3BucketDestination {
12329 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InventorySchedule
12330 type InventorySchedule struct {
12331 _ struct{} `type:"structure"`
12333 // Specifies how frequently inventory results are produced.
12335 // Frequency is a required field
12336 Frequency *string `type:"string" required:"true" enum:"InventoryFrequency"`
12339 // String returns the string representation
12340 func (s InventorySchedule) String() string {
12341 return awsutil.Prettify(s)
12344 // GoString returns the string representation
12345 func (s InventorySchedule) GoString() string {
12349 // Validate inspects the fields of the type to determine if they are valid.
12350 func (s *InventorySchedule) Validate() error {
12351 invalidParams := request.ErrInvalidParams{Context: "InventorySchedule"}
12352 if s.Frequency == nil {
12353 invalidParams.Add(request.NewErrParamRequired("Frequency"))
12356 if invalidParams.Len() > 0 {
12357 return invalidParams
12362 // SetFrequency sets the Frequency field's value.
12363 func (s *InventorySchedule) SetFrequency(v string) *InventorySchedule {
12368 // Container for object key name prefix and suffix filtering rules.
12369 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/S3KeyFilter
12370 type KeyFilter struct {
12371 _ struct{} `type:"structure"`
12373 // A list of containers for key value pair that defines the criteria for the
12375 FilterRules []*FilterRule `locationName:"FilterRule" type:"list" flattened:"true"`
12378 // String returns the string representation
12379 func (s KeyFilter) String() string {
12380 return awsutil.Prettify(s)
12383 // GoString returns the string representation
12384 func (s KeyFilter) GoString() string {
12388 // SetFilterRules sets the FilterRules field's value.
12389 func (s *KeyFilter) SetFilterRules(v []*FilterRule) *KeyFilter {
12394 // Container for specifying the AWS Lambda notification configuration.
12395 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LambdaFunctionConfiguration
12396 type LambdaFunctionConfiguration struct {
12397 _ struct{} `type:"structure"`
12399 // Events is a required field
12400 Events []*string `locationName:"Event" type:"list" flattened:"true" required:"true"`
12402 // Container for object key name filtering rules. For information about key
12403 // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html)
12404 Filter *NotificationConfigurationFilter `type:"structure"`
12406 // Optional unique identifier for configurations in a notification configuration.
12407 // If you don't provide one, Amazon S3 will assign an ID.
12408 Id *string `type:"string"`
12410 // Lambda cloud function ARN that Amazon S3 can invoke when it detects events
12411 // of the specified type.
12413 // LambdaFunctionArn is a required field
12414 LambdaFunctionArn *string `locationName:"CloudFunction" type:"string" required:"true"`
12417 // String returns the string representation
12418 func (s LambdaFunctionConfiguration) String() string {
12419 return awsutil.Prettify(s)
12422 // GoString returns the string representation
12423 func (s LambdaFunctionConfiguration) GoString() string {
12427 // Validate inspects the fields of the type to determine if they are valid.
12428 func (s *LambdaFunctionConfiguration) Validate() error {
12429 invalidParams := request.ErrInvalidParams{Context: "LambdaFunctionConfiguration"}
12430 if s.Events == nil {
12431 invalidParams.Add(request.NewErrParamRequired("Events"))
12433 if s.LambdaFunctionArn == nil {
12434 invalidParams.Add(request.NewErrParamRequired("LambdaFunctionArn"))
12437 if invalidParams.Len() > 0 {
12438 return invalidParams
12443 // SetEvents sets the Events field's value.
12444 func (s *LambdaFunctionConfiguration) SetEvents(v []*string) *LambdaFunctionConfiguration {
12449 // SetFilter sets the Filter field's value.
12450 func (s *LambdaFunctionConfiguration) SetFilter(v *NotificationConfigurationFilter) *LambdaFunctionConfiguration {
12455 // SetId sets the Id field's value.
12456 func (s *LambdaFunctionConfiguration) SetId(v string) *LambdaFunctionConfiguration {
12461 // SetLambdaFunctionArn sets the LambdaFunctionArn field's value.
12462 func (s *LambdaFunctionConfiguration) SetLambdaFunctionArn(v string) *LambdaFunctionConfiguration {
12463 s.LambdaFunctionArn = &v
12467 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleConfiguration
12468 type LifecycleConfiguration struct {
12469 _ struct{} `type:"structure"`
12471 // Rules is a required field
12472 Rules []*Rule `locationName:"Rule" type:"list" flattened:"true" required:"true"`
12475 // String returns the string representation
12476 func (s LifecycleConfiguration) String() string {
12477 return awsutil.Prettify(s)
12480 // GoString returns the string representation
12481 func (s LifecycleConfiguration) GoString() string {
12485 // Validate inspects the fields of the type to determine if they are valid.
12486 func (s *LifecycleConfiguration) Validate() error {
12487 invalidParams := request.ErrInvalidParams{Context: "LifecycleConfiguration"}
12488 if s.Rules == nil {
12489 invalidParams.Add(request.NewErrParamRequired("Rules"))
12491 if s.Rules != nil {
12492 for i, v := range s.Rules {
12496 if err := v.Validate(); err != nil {
12497 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams))
12502 if invalidParams.Len() > 0 {
12503 return invalidParams
12508 // SetRules sets the Rules field's value.
12509 func (s *LifecycleConfiguration) SetRules(v []*Rule) *LifecycleConfiguration {
12514 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleExpiration
12515 type LifecycleExpiration struct {
12516 _ struct{} `type:"structure"`
12518 // Indicates at what date the object is to be moved or deleted. Should be in
12519 // GMT ISO 8601 Format.
12520 Date *time.Time `type:"timestamp" timestampFormat:"iso8601"`
12522 // Indicates the lifetime, in days, of the objects that are subject to the rule.
12523 // The value must be a non-zero positive integer.
12524 Days *int64 `type:"integer"`
12526 // Indicates whether Amazon S3 will remove a delete marker with no noncurrent
12527 // versions. If set to true, the delete marker will be expired; if set to false
12528 // the policy takes no action. This cannot be specified with Days or Date in
12529 // a Lifecycle Expiration Policy.
12530 ExpiredObjectDeleteMarker *bool `type:"boolean"`
12533 // String returns the string representation
12534 func (s LifecycleExpiration) String() string {
12535 return awsutil.Prettify(s)
12538 // GoString returns the string representation
12539 func (s LifecycleExpiration) GoString() string {
12543 // SetDate sets the Date field's value.
12544 func (s *LifecycleExpiration) SetDate(v time.Time) *LifecycleExpiration {
12549 // SetDays sets the Days field's value.
12550 func (s *LifecycleExpiration) SetDays(v int64) *LifecycleExpiration {
12555 // SetExpiredObjectDeleteMarker sets the ExpiredObjectDeleteMarker field's value.
12556 func (s *LifecycleExpiration) SetExpiredObjectDeleteMarker(v bool) *LifecycleExpiration {
12557 s.ExpiredObjectDeleteMarker = &v
12561 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleRule
12562 type LifecycleRule struct {
12563 _ struct{} `type:"structure"`
12565 // Specifies the days since the initiation of an Incomplete Multipart Upload
12566 // that Lifecycle will wait before permanently removing all parts of the upload.
12567 AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `type:"structure"`
12569 Expiration *LifecycleExpiration `type:"structure"`
12571 // The Filter is used to identify objects that a Lifecycle Rule applies to.
12572 // A Filter must have exactly one of Prefix, Tag, or And specified.
12573 Filter *LifecycleRuleFilter `type:"structure"`
12575 // Unique identifier for the rule. The value cannot be longer than 255 characters.
12576 ID *string `type:"string"`
12578 // Specifies when noncurrent object versions expire. Upon expiration, Amazon
12579 // S3 permanently deletes the noncurrent object versions. You set this lifecycle
12580 // configuration action on a bucket that has versioning enabled (or suspended)
12581 // to request that Amazon S3 delete noncurrent object versions at a specific
12582 // period in the object's lifetime.
12583 NoncurrentVersionExpiration *NoncurrentVersionExpiration `type:"structure"`
12585 NoncurrentVersionTransitions []*NoncurrentVersionTransition `locationName:"NoncurrentVersionTransition" type:"list" flattened:"true"`
12587 // Prefix identifying one or more objects to which the rule applies. This is
12588 // deprecated; use Filter instead.
12589 Prefix *string `deprecated:"true" type:"string"`
12591 // If 'Enabled', the rule is currently being applied. If 'Disabled', the rule
12592 // is not currently being applied.
12594 // Status is a required field
12595 Status *string `type:"string" required:"true" enum:"ExpirationStatus"`
12597 Transitions []*Transition `locationName:"Transition" type:"list" flattened:"true"`
12600 // String returns the string representation
12601 func (s LifecycleRule) String() string {
12602 return awsutil.Prettify(s)
12605 // GoString returns the string representation
12606 func (s LifecycleRule) GoString() string {
12610 // Validate inspects the fields of the type to determine if they are valid.
12611 func (s *LifecycleRule) Validate() error {
12612 invalidParams := request.ErrInvalidParams{Context: "LifecycleRule"}
12613 if s.Status == nil {
12614 invalidParams.Add(request.NewErrParamRequired("Status"))
12616 if s.Filter != nil {
12617 if err := s.Filter.Validate(); err != nil {
12618 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
12622 if invalidParams.Len() > 0 {
12623 return invalidParams
12628 // SetAbortIncompleteMultipartUpload sets the AbortIncompleteMultipartUpload field's value.
12629 func (s *LifecycleRule) SetAbortIncompleteMultipartUpload(v *AbortIncompleteMultipartUpload) *LifecycleRule {
12630 s.AbortIncompleteMultipartUpload = v
12634 // SetExpiration sets the Expiration field's value.
12635 func (s *LifecycleRule) SetExpiration(v *LifecycleExpiration) *LifecycleRule {
12640 // SetFilter sets the Filter field's value.
12641 func (s *LifecycleRule) SetFilter(v *LifecycleRuleFilter) *LifecycleRule {
12646 // SetID sets the ID field's value.
12647 func (s *LifecycleRule) SetID(v string) *LifecycleRule {
12652 // SetNoncurrentVersionExpiration sets the NoncurrentVersionExpiration field's value.
12653 func (s *LifecycleRule) SetNoncurrentVersionExpiration(v *NoncurrentVersionExpiration) *LifecycleRule {
12654 s.NoncurrentVersionExpiration = v
12658 // SetNoncurrentVersionTransitions sets the NoncurrentVersionTransitions field's value.
12659 func (s *LifecycleRule) SetNoncurrentVersionTransitions(v []*NoncurrentVersionTransition) *LifecycleRule {
12660 s.NoncurrentVersionTransitions = v
12664 // SetPrefix sets the Prefix field's value.
12665 func (s *LifecycleRule) SetPrefix(v string) *LifecycleRule {
12670 // SetStatus sets the Status field's value.
12671 func (s *LifecycleRule) SetStatus(v string) *LifecycleRule {
12676 // SetTransitions sets the Transitions field's value.
12677 func (s *LifecycleRule) SetTransitions(v []*Transition) *LifecycleRule {
12682 // This is used in a Lifecycle Rule Filter to apply a logical AND to two or
12683 // more predicates. The Lifecycle Rule will apply to any object matching all
12684 // of the predicates configured inside the And operator.
12685 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleRuleAndOperator
12686 type LifecycleRuleAndOperator struct {
12687 _ struct{} `type:"structure"`
12689 Prefix *string `type:"string"`
12691 // All of these tags must exist in the object's tag set in order for the rule
12693 Tags []*Tag `locationName:"Tag" locationNameList:"Tag" type:"list" flattened:"true"`
12696 // String returns the string representation
12697 func (s LifecycleRuleAndOperator) String() string {
12698 return awsutil.Prettify(s)
12701 // GoString returns the string representation
12702 func (s LifecycleRuleAndOperator) GoString() string {
12706 // Validate inspects the fields of the type to determine if they are valid.
12707 func (s *LifecycleRuleAndOperator) Validate() error {
12708 invalidParams := request.ErrInvalidParams{Context: "LifecycleRuleAndOperator"}
12710 for i, v := range s.Tags {
12714 if err := v.Validate(); err != nil {
12715 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
12720 if invalidParams.Len() > 0 {
12721 return invalidParams
12726 // SetPrefix sets the Prefix field's value.
12727 func (s *LifecycleRuleAndOperator) SetPrefix(v string) *LifecycleRuleAndOperator {
12732 // SetTags sets the Tags field's value.
12733 func (s *LifecycleRuleAndOperator) SetTags(v []*Tag) *LifecycleRuleAndOperator {
12738 // The Filter is used to identify objects that a Lifecycle Rule applies to.
12739 // A Filter must have exactly one of Prefix, Tag, or And specified.
12740 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleRuleFilter
12741 type LifecycleRuleFilter struct {
12742 _ struct{} `type:"structure"`
12744 // This is used in a Lifecycle Rule Filter to apply a logical AND to two or
12745 // more predicates. The Lifecycle Rule will apply to any object matching all
12746 // of the predicates configured inside the And operator.
12747 And *LifecycleRuleAndOperator `type:"structure"`
12749 // Prefix identifying one or more objects to which the rule applies.
12750 Prefix *string `type:"string"`
12752 // This tag must exist in the object's tag set in order for the rule to apply.
12753 Tag *Tag `type:"structure"`
12756 // String returns the string representation
12757 func (s LifecycleRuleFilter) String() string {
12758 return awsutil.Prettify(s)
12761 // GoString returns the string representation
12762 func (s LifecycleRuleFilter) GoString() string {
12766 // Validate inspects the fields of the type to determine if they are valid.
12767 func (s *LifecycleRuleFilter) Validate() error {
12768 invalidParams := request.ErrInvalidParams{Context: "LifecycleRuleFilter"}
12770 if err := s.And.Validate(); err != nil {
12771 invalidParams.AddNested("And", err.(request.ErrInvalidParams))
12775 if err := s.Tag.Validate(); err != nil {
12776 invalidParams.AddNested("Tag", err.(request.ErrInvalidParams))
12780 if invalidParams.Len() > 0 {
12781 return invalidParams
12786 // SetAnd sets the And field's value.
12787 func (s *LifecycleRuleFilter) SetAnd(v *LifecycleRuleAndOperator) *LifecycleRuleFilter {
12792 // SetPrefix sets the Prefix field's value.
12793 func (s *LifecycleRuleFilter) SetPrefix(v string) *LifecycleRuleFilter {
12798 // SetTag sets the Tag field's value.
12799 func (s *LifecycleRuleFilter) SetTag(v *Tag) *LifecycleRuleFilter {
12804 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketAnalyticsConfigurationsRequest
12805 type ListBucketAnalyticsConfigurationsInput struct {
12806 _ struct{} `type:"structure"`
12808 // The name of the bucket from which analytics configurations are retrieved.
12810 // Bucket is a required field
12811 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
12813 // The ContinuationToken that represents a placeholder from where this request
12815 ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"`
12818 // String returns the string representation
12819 func (s ListBucketAnalyticsConfigurationsInput) String() string {
12820 return awsutil.Prettify(s)
12823 // GoString returns the string representation
12824 func (s ListBucketAnalyticsConfigurationsInput) GoString() string {
12828 // Validate inspects the fields of the type to determine if they are valid.
12829 func (s *ListBucketAnalyticsConfigurationsInput) Validate() error {
12830 invalidParams := request.ErrInvalidParams{Context: "ListBucketAnalyticsConfigurationsInput"}
12831 if s.Bucket == nil {
12832 invalidParams.Add(request.NewErrParamRequired("Bucket"))
12835 if invalidParams.Len() > 0 {
12836 return invalidParams
12841 // SetBucket sets the Bucket field's value.
12842 func (s *ListBucketAnalyticsConfigurationsInput) SetBucket(v string) *ListBucketAnalyticsConfigurationsInput {
12847 // SetContinuationToken sets the ContinuationToken field's value.
12848 func (s *ListBucketAnalyticsConfigurationsInput) SetContinuationToken(v string) *ListBucketAnalyticsConfigurationsInput {
12849 s.ContinuationToken = &v
12853 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketAnalyticsConfigurationsOutput
12854 type ListBucketAnalyticsConfigurationsOutput struct {
12855 _ struct{} `type:"structure"`
12857 // The list of analytics configurations for a bucket.
12858 AnalyticsConfigurationList []*AnalyticsConfiguration `locationName:"AnalyticsConfiguration" type:"list" flattened:"true"`
12860 // The ContinuationToken that represents where this request began.
12861 ContinuationToken *string `type:"string"`
12863 // Indicates whether the returned list of analytics configurations is complete.
12864 // A value of true indicates that the list is not complete and the NextContinuationToken
12865 // will be provided for a subsequent request.
12866 IsTruncated *bool `type:"boolean"`
12868 // NextContinuationToken is sent when isTruncated is true, which indicates that
12869 // there are more analytics configurations to list. The next request must include
12870 // this NextContinuationToken. The token is obfuscated and is not a usable value.
12871 NextContinuationToken *string `type:"string"`
12874 // String returns the string representation
12875 func (s ListBucketAnalyticsConfigurationsOutput) String() string {
12876 return awsutil.Prettify(s)
12879 // GoString returns the string representation
12880 func (s ListBucketAnalyticsConfigurationsOutput) GoString() string {
12884 // SetAnalyticsConfigurationList sets the AnalyticsConfigurationList field's value.
12885 func (s *ListBucketAnalyticsConfigurationsOutput) SetAnalyticsConfigurationList(v []*AnalyticsConfiguration) *ListBucketAnalyticsConfigurationsOutput {
12886 s.AnalyticsConfigurationList = v
12890 // SetContinuationToken sets the ContinuationToken field's value.
12891 func (s *ListBucketAnalyticsConfigurationsOutput) SetContinuationToken(v string) *ListBucketAnalyticsConfigurationsOutput {
12892 s.ContinuationToken = &v
12896 // SetIsTruncated sets the IsTruncated field's value.
12897 func (s *ListBucketAnalyticsConfigurationsOutput) SetIsTruncated(v bool) *ListBucketAnalyticsConfigurationsOutput {
12902 // SetNextContinuationToken sets the NextContinuationToken field's value.
12903 func (s *ListBucketAnalyticsConfigurationsOutput) SetNextContinuationToken(v string) *ListBucketAnalyticsConfigurationsOutput {
12904 s.NextContinuationToken = &v
12908 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketInventoryConfigurationsRequest
12909 type ListBucketInventoryConfigurationsInput struct {
12910 _ struct{} `type:"structure"`
12912 // The name of the bucket containing the inventory configurations to retrieve.
12914 // Bucket is a required field
12915 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
12917 // The marker used to continue an inventory configuration listing that has been
12918 // truncated. Use the NextContinuationToken from a previously truncated list
12919 // response to continue the listing. The continuation token is an opaque value
12920 // that Amazon S3 understands.
12921 ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"`
12924 // String returns the string representation
12925 func (s ListBucketInventoryConfigurationsInput) String() string {
12926 return awsutil.Prettify(s)
12929 // GoString returns the string representation
12930 func (s ListBucketInventoryConfigurationsInput) GoString() string {
12934 // Validate inspects the fields of the type to determine if they are valid.
12935 func (s *ListBucketInventoryConfigurationsInput) Validate() error {
12936 invalidParams := request.ErrInvalidParams{Context: "ListBucketInventoryConfigurationsInput"}
12937 if s.Bucket == nil {
12938 invalidParams.Add(request.NewErrParamRequired("Bucket"))
12941 if invalidParams.Len() > 0 {
12942 return invalidParams
12947 // SetBucket sets the Bucket field's value.
12948 func (s *ListBucketInventoryConfigurationsInput) SetBucket(v string) *ListBucketInventoryConfigurationsInput {
12953 // SetContinuationToken sets the ContinuationToken field's value.
12954 func (s *ListBucketInventoryConfigurationsInput) SetContinuationToken(v string) *ListBucketInventoryConfigurationsInput {
12955 s.ContinuationToken = &v
12959 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketInventoryConfigurationsOutput
12960 type ListBucketInventoryConfigurationsOutput struct {
12961 _ struct{} `type:"structure"`
12963 // If sent in the request, the marker that is used as a starting point for this
12964 // inventory configuration list response.
12965 ContinuationToken *string `type:"string"`
12967 // The list of inventory configurations for a bucket.
12968 InventoryConfigurationList []*InventoryConfiguration `locationName:"InventoryConfiguration" type:"list" flattened:"true"`
12970 // Indicates whether the returned list of inventory configurations is truncated
12971 // in this response. A value of true indicates that the list is truncated.
12972 IsTruncated *bool `type:"boolean"`
12974 // The marker used to continue this inventory configuration listing. Use the
12975 // NextContinuationToken from this response to continue the listing in a subsequent
12976 // request. The continuation token is an opaque value that Amazon S3 understands.
12977 NextContinuationToken *string `type:"string"`
12980 // String returns the string representation
12981 func (s ListBucketInventoryConfigurationsOutput) String() string {
12982 return awsutil.Prettify(s)
12985 // GoString returns the string representation
12986 func (s ListBucketInventoryConfigurationsOutput) GoString() string {
12990 // SetContinuationToken sets the ContinuationToken field's value.
12991 func (s *ListBucketInventoryConfigurationsOutput) SetContinuationToken(v string) *ListBucketInventoryConfigurationsOutput {
12992 s.ContinuationToken = &v
12996 // SetInventoryConfigurationList sets the InventoryConfigurationList field's value.
12997 func (s *ListBucketInventoryConfigurationsOutput) SetInventoryConfigurationList(v []*InventoryConfiguration) *ListBucketInventoryConfigurationsOutput {
12998 s.InventoryConfigurationList = v
13002 // SetIsTruncated sets the IsTruncated field's value.
13003 func (s *ListBucketInventoryConfigurationsOutput) SetIsTruncated(v bool) *ListBucketInventoryConfigurationsOutput {
13008 // SetNextContinuationToken sets the NextContinuationToken field's value.
13009 func (s *ListBucketInventoryConfigurationsOutput) SetNextContinuationToken(v string) *ListBucketInventoryConfigurationsOutput {
13010 s.NextContinuationToken = &v
13014 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketMetricsConfigurationsRequest
13015 type ListBucketMetricsConfigurationsInput struct {
13016 _ struct{} `type:"structure"`
13018 // The name of the bucket containing the metrics configurations to retrieve.
13020 // Bucket is a required field
13021 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
13023 // The marker that is used to continue a metrics configuration listing that
13024 // has been truncated. Use the NextContinuationToken from a previously truncated
13025 // list response to continue the listing. The continuation token is an opaque
13026 // value that Amazon S3 understands.
13027 ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"`
13030 // String returns the string representation
13031 func (s ListBucketMetricsConfigurationsInput) String() string {
13032 return awsutil.Prettify(s)
13035 // GoString returns the string representation
13036 func (s ListBucketMetricsConfigurationsInput) GoString() string {
13040 // Validate inspects the fields of the type to determine if they are valid.
13041 func (s *ListBucketMetricsConfigurationsInput) Validate() error {
13042 invalidParams := request.ErrInvalidParams{Context: "ListBucketMetricsConfigurationsInput"}
13043 if s.Bucket == nil {
13044 invalidParams.Add(request.NewErrParamRequired("Bucket"))
13047 if invalidParams.Len() > 0 {
13048 return invalidParams
13053 // SetBucket sets the Bucket field's value.
13054 func (s *ListBucketMetricsConfigurationsInput) SetBucket(v string) *ListBucketMetricsConfigurationsInput {
13059 // SetContinuationToken sets the ContinuationToken field's value.
13060 func (s *ListBucketMetricsConfigurationsInput) SetContinuationToken(v string) *ListBucketMetricsConfigurationsInput {
13061 s.ContinuationToken = &v
13065 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketMetricsConfigurationsOutput
13066 type ListBucketMetricsConfigurationsOutput struct {
13067 _ struct{} `type:"structure"`
13069 // The marker that is used as a starting point for this metrics configuration
13070 // list response. This value is present if it was sent in the request.
13071 ContinuationToken *string `type:"string"`
13073 // Indicates whether the returned list of metrics configurations is complete.
13074 // A value of true indicates that the list is not complete and the NextContinuationToken
13075 // will be provided for a subsequent request.
13076 IsTruncated *bool `type:"boolean"`
13078 // The list of metrics configurations for a bucket.
13079 MetricsConfigurationList []*MetricsConfiguration `locationName:"MetricsConfiguration" type:"list" flattened:"true"`
13081 // The marker used to continue a metrics configuration listing that has been
13082 // truncated. Use the NextContinuationToken from a previously truncated list
13083 // response to continue the listing. The continuation token is an opaque value
13084 // that Amazon S3 understands.
13085 NextContinuationToken *string `type:"string"`
13088 // String returns the string representation
13089 func (s ListBucketMetricsConfigurationsOutput) String() string {
13090 return awsutil.Prettify(s)
13093 // GoString returns the string representation
13094 func (s ListBucketMetricsConfigurationsOutput) GoString() string {
13098 // SetContinuationToken sets the ContinuationToken field's value.
13099 func (s *ListBucketMetricsConfigurationsOutput) SetContinuationToken(v string) *ListBucketMetricsConfigurationsOutput {
13100 s.ContinuationToken = &v
13104 // SetIsTruncated sets the IsTruncated field's value.
13105 func (s *ListBucketMetricsConfigurationsOutput) SetIsTruncated(v bool) *ListBucketMetricsConfigurationsOutput {
13110 // SetMetricsConfigurationList sets the MetricsConfigurationList field's value.
13111 func (s *ListBucketMetricsConfigurationsOutput) SetMetricsConfigurationList(v []*MetricsConfiguration) *ListBucketMetricsConfigurationsOutput {
13112 s.MetricsConfigurationList = v
13116 // SetNextContinuationToken sets the NextContinuationToken field's value.
13117 func (s *ListBucketMetricsConfigurationsOutput) SetNextContinuationToken(v string) *ListBucketMetricsConfigurationsOutput {
13118 s.NextContinuationToken = &v
13122 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketsInput
13123 type ListBucketsInput struct {
13124 _ struct{} `type:"structure"`
13127 // String returns the string representation
13128 func (s ListBucketsInput) String() string {
13129 return awsutil.Prettify(s)
13132 // GoString returns the string representation
13133 func (s ListBucketsInput) GoString() string {
13137 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListBucketsOutput
13138 type ListBucketsOutput struct {
13139 _ struct{} `type:"structure"`
13141 Buckets []*Bucket `locationNameList:"Bucket" type:"list"`
13143 Owner *Owner `type:"structure"`
13146 // String returns the string representation
13147 func (s ListBucketsOutput) String() string {
13148 return awsutil.Prettify(s)
13151 // GoString returns the string representation
13152 func (s ListBucketsOutput) GoString() string {
13156 // SetBuckets sets the Buckets field's value.
13157 func (s *ListBucketsOutput) SetBuckets(v []*Bucket) *ListBucketsOutput {
13162 // SetOwner sets the Owner field's value.
13163 func (s *ListBucketsOutput) SetOwner(v *Owner) *ListBucketsOutput {
13168 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListMultipartUploadsRequest
13169 type ListMultipartUploadsInput struct {
13170 _ struct{} `type:"structure"`
13172 // Bucket is a required field
13173 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
13175 // Character you use to group keys.
13176 Delimiter *string `location:"querystring" locationName:"delimiter" type:"string"`
13178 // Requests Amazon S3 to encode the object keys in the response and specifies
13179 // the encoding method to use. An object key may contain any Unicode character;
13180 // however, XML 1.0 parser cannot parse some characters, such as characters
13181 // with an ASCII value from 0 to 10. For characters that are not supported in
13182 // XML 1.0, you can add this parameter to request that Amazon S3 encode the
13183 // keys in the response.
13184 EncodingType *string `location:"querystring" locationName:"encoding-type" type:"string" enum:"EncodingType"`
13186 // Together with upload-id-marker, this parameter specifies the multipart upload
13187 // after which listing should begin.
13188 KeyMarker *string `location:"querystring" locationName:"key-marker" type:"string"`
13190 // Sets the maximum number of multipart uploads, from 1 to 1,000, to return
13191 // in the response body. 1,000 is the maximum number of uploads that can be
13192 // returned in a response.
13193 MaxUploads *int64 `location:"querystring" locationName:"max-uploads" type:"integer"`
13195 // Lists in-progress uploads only for those keys that begin with the specified
13197 Prefix *string `location:"querystring" locationName:"prefix" type:"string"`
13199 // Together with key-marker, specifies the multipart upload after which listing
13200 // should begin. If key-marker is not specified, the upload-id-marker parameter
13202 UploadIdMarker *string `location:"querystring" locationName:"upload-id-marker" type:"string"`
13205 // String returns the string representation
13206 func (s ListMultipartUploadsInput) String() string {
13207 return awsutil.Prettify(s)
13210 // GoString returns the string representation
13211 func (s ListMultipartUploadsInput) GoString() string {
13215 // Validate inspects the fields of the type to determine if they are valid.
13216 func (s *ListMultipartUploadsInput) Validate() error {
13217 invalidParams := request.ErrInvalidParams{Context: "ListMultipartUploadsInput"}
13218 if s.Bucket == nil {
13219 invalidParams.Add(request.NewErrParamRequired("Bucket"))
13222 if invalidParams.Len() > 0 {
13223 return invalidParams
13228 // SetBucket sets the Bucket field's value.
13229 func (s *ListMultipartUploadsInput) SetBucket(v string) *ListMultipartUploadsInput {
13234 // SetDelimiter sets the Delimiter field's value.
13235 func (s *ListMultipartUploadsInput) SetDelimiter(v string) *ListMultipartUploadsInput {
13240 // SetEncodingType sets the EncodingType field's value.
13241 func (s *ListMultipartUploadsInput) SetEncodingType(v string) *ListMultipartUploadsInput {
13242 s.EncodingType = &v
13246 // SetKeyMarker sets the KeyMarker field's value.
13247 func (s *ListMultipartUploadsInput) SetKeyMarker(v string) *ListMultipartUploadsInput {
13252 // SetMaxUploads sets the MaxUploads field's value.
13253 func (s *ListMultipartUploadsInput) SetMaxUploads(v int64) *ListMultipartUploadsInput {
13258 // SetPrefix sets the Prefix field's value.
13259 func (s *ListMultipartUploadsInput) SetPrefix(v string) *ListMultipartUploadsInput {
13264 // SetUploadIdMarker sets the UploadIdMarker field's value.
13265 func (s *ListMultipartUploadsInput) SetUploadIdMarker(v string) *ListMultipartUploadsInput {
13266 s.UploadIdMarker = &v
13270 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListMultipartUploadsOutput
13271 type ListMultipartUploadsOutput struct {
13272 _ struct{} `type:"structure"`
13274 // Name of the bucket to which the multipart upload was initiated.
13275 Bucket *string `type:"string"`
13277 CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"`
13279 Delimiter *string `type:"string"`
13281 // Encoding type used by Amazon S3 to encode object keys in the response.
13282 EncodingType *string `type:"string" enum:"EncodingType"`
13284 // Indicates whether the returned list of multipart uploads is truncated. A
13285 // value of true indicates that the list was truncated. The list can be truncated
13286 // if the number of multipart uploads exceeds the limit allowed or specified
13288 IsTruncated *bool `type:"boolean"`
13290 // The key at or after which the listing began.
13291 KeyMarker *string `type:"string"`
13293 // Maximum number of multipart uploads that could have been included in the
13295 MaxUploads *int64 `type:"integer"`
13297 // When a list is truncated, this element specifies the value that should be
13298 // used for the key-marker request parameter in a subsequent request.
13299 NextKeyMarker *string `type:"string"`
13301 // When a list is truncated, this element specifies the value that should be
13302 // used for the upload-id-marker request parameter in a subsequent request.
13303 NextUploadIdMarker *string `type:"string"`
13305 // When a prefix is provided in the request, this field contains the specified
13306 // prefix. The result contains only keys starting with the specified prefix.
13307 Prefix *string `type:"string"`
13309 // Upload ID after which listing began.
13310 UploadIdMarker *string `type:"string"`
13312 Uploads []*MultipartUpload `locationName:"Upload" type:"list" flattened:"true"`
13315 // String returns the string representation
13316 func (s ListMultipartUploadsOutput) String() string {
13317 return awsutil.Prettify(s)
13320 // GoString returns the string representation
13321 func (s ListMultipartUploadsOutput) GoString() string {
13325 // SetBucket sets the Bucket field's value.
13326 func (s *ListMultipartUploadsOutput) SetBucket(v string) *ListMultipartUploadsOutput {
13331 // SetCommonPrefixes sets the CommonPrefixes field's value.
13332 func (s *ListMultipartUploadsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListMultipartUploadsOutput {
13333 s.CommonPrefixes = v
13337 // SetDelimiter sets the Delimiter field's value.
13338 func (s *ListMultipartUploadsOutput) SetDelimiter(v string) *ListMultipartUploadsOutput {
13343 // SetEncodingType sets the EncodingType field's value.
13344 func (s *ListMultipartUploadsOutput) SetEncodingType(v string) *ListMultipartUploadsOutput {
13345 s.EncodingType = &v
13349 // SetIsTruncated sets the IsTruncated field's value.
13350 func (s *ListMultipartUploadsOutput) SetIsTruncated(v bool) *ListMultipartUploadsOutput {
13355 // SetKeyMarker sets the KeyMarker field's value.
13356 func (s *ListMultipartUploadsOutput) SetKeyMarker(v string) *ListMultipartUploadsOutput {
13361 // SetMaxUploads sets the MaxUploads field's value.
13362 func (s *ListMultipartUploadsOutput) SetMaxUploads(v int64) *ListMultipartUploadsOutput {
13367 // SetNextKeyMarker sets the NextKeyMarker field's value.
13368 func (s *ListMultipartUploadsOutput) SetNextKeyMarker(v string) *ListMultipartUploadsOutput {
13369 s.NextKeyMarker = &v
13373 // SetNextUploadIdMarker sets the NextUploadIdMarker field's value.
13374 func (s *ListMultipartUploadsOutput) SetNextUploadIdMarker(v string) *ListMultipartUploadsOutput {
13375 s.NextUploadIdMarker = &v
13379 // SetPrefix sets the Prefix field's value.
13380 func (s *ListMultipartUploadsOutput) SetPrefix(v string) *ListMultipartUploadsOutput {
13385 // SetUploadIdMarker sets the UploadIdMarker field's value.
13386 func (s *ListMultipartUploadsOutput) SetUploadIdMarker(v string) *ListMultipartUploadsOutput {
13387 s.UploadIdMarker = &v
13391 // SetUploads sets the Uploads field's value.
13392 func (s *ListMultipartUploadsOutput) SetUploads(v []*MultipartUpload) *ListMultipartUploadsOutput {
13397 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectVersionsRequest
13398 type ListObjectVersionsInput struct {
13399 _ struct{} `type:"structure"`
13401 // Bucket is a required field
13402 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
13404 // A delimiter is a character you use to group keys.
13405 Delimiter *string `location:"querystring" locationName:"delimiter" type:"string"`
13407 // Requests Amazon S3 to encode the object keys in the response and specifies
13408 // the encoding method to use. An object key may contain any Unicode character;
13409 // however, XML 1.0 parser cannot parse some characters, such as characters
13410 // with an ASCII value from 0 to 10. For characters that are not supported in
13411 // XML 1.0, you can add this parameter to request that Amazon S3 encode the
13412 // keys in the response.
13413 EncodingType *string `location:"querystring" locationName:"encoding-type" type:"string" enum:"EncodingType"`
13415 // Specifies the key to start with when listing objects in a bucket.
13416 KeyMarker *string `location:"querystring" locationName:"key-marker" type:"string"`
13418 // Sets the maximum number of keys returned in the response. The response might
13419 // contain fewer keys but will never contain more.
13420 MaxKeys *int64 `location:"querystring" locationName:"max-keys" type:"integer"`
13422 // Limits the response to keys that begin with the specified prefix.
13423 Prefix *string `location:"querystring" locationName:"prefix" type:"string"`
13425 // Specifies the object version you want to start listing from.
13426 VersionIdMarker *string `location:"querystring" locationName:"version-id-marker" type:"string"`
13429 // String returns the string representation
13430 func (s ListObjectVersionsInput) String() string {
13431 return awsutil.Prettify(s)
13434 // GoString returns the string representation
13435 func (s ListObjectVersionsInput) GoString() string {
13439 // Validate inspects the fields of the type to determine if they are valid.
13440 func (s *ListObjectVersionsInput) Validate() error {
13441 invalidParams := request.ErrInvalidParams{Context: "ListObjectVersionsInput"}
13442 if s.Bucket == nil {
13443 invalidParams.Add(request.NewErrParamRequired("Bucket"))
13446 if invalidParams.Len() > 0 {
13447 return invalidParams
13452 // SetBucket sets the Bucket field's value.
13453 func (s *ListObjectVersionsInput) SetBucket(v string) *ListObjectVersionsInput {
13458 // SetDelimiter sets the Delimiter field's value.
13459 func (s *ListObjectVersionsInput) SetDelimiter(v string) *ListObjectVersionsInput {
13464 // SetEncodingType sets the EncodingType field's value.
13465 func (s *ListObjectVersionsInput) SetEncodingType(v string) *ListObjectVersionsInput {
13466 s.EncodingType = &v
13470 // SetKeyMarker sets the KeyMarker field's value.
13471 func (s *ListObjectVersionsInput) SetKeyMarker(v string) *ListObjectVersionsInput {
13476 // SetMaxKeys sets the MaxKeys field's value.
13477 func (s *ListObjectVersionsInput) SetMaxKeys(v int64) *ListObjectVersionsInput {
13482 // SetPrefix sets the Prefix field's value.
13483 func (s *ListObjectVersionsInput) SetPrefix(v string) *ListObjectVersionsInput {
13488 // SetVersionIdMarker sets the VersionIdMarker field's value.
13489 func (s *ListObjectVersionsInput) SetVersionIdMarker(v string) *ListObjectVersionsInput {
13490 s.VersionIdMarker = &v
13494 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectVersionsOutput
13495 type ListObjectVersionsOutput struct {
13496 _ struct{} `type:"structure"`
13498 CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"`
13500 DeleteMarkers []*DeleteMarkerEntry `locationName:"DeleteMarker" type:"list" flattened:"true"`
13502 Delimiter *string `type:"string"`
13504 // Encoding type used by Amazon S3 to encode object keys in the response.
13505 EncodingType *string `type:"string" enum:"EncodingType"`
13507 // A flag that indicates whether or not Amazon S3 returned all of the results
13508 // that satisfied the search criteria. If your results were truncated, you can
13509 // make a follow-up paginated request using the NextKeyMarker and NextVersionIdMarker
13510 // response parameters as a starting place in another request to return the
13511 // rest of the results.
13512 IsTruncated *bool `type:"boolean"`
13514 // Marks the last Key returned in a truncated response.
13515 KeyMarker *string `type:"string"`
13517 MaxKeys *int64 `type:"integer"`
13519 Name *string `type:"string"`
13521 // Use this value for the key marker request parameter in a subsequent request.
13522 NextKeyMarker *string `type:"string"`
13524 // Use this value for the next version id marker parameter in a subsequent request.
13525 NextVersionIdMarker *string `type:"string"`
13527 Prefix *string `type:"string"`
13529 VersionIdMarker *string `type:"string"`
13531 Versions []*ObjectVersion `locationName:"Version" type:"list" flattened:"true"`
13534 // String returns the string representation
13535 func (s ListObjectVersionsOutput) String() string {
13536 return awsutil.Prettify(s)
13539 // GoString returns the string representation
13540 func (s ListObjectVersionsOutput) GoString() string {
13544 // SetCommonPrefixes sets the CommonPrefixes field's value.
13545 func (s *ListObjectVersionsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListObjectVersionsOutput {
13546 s.CommonPrefixes = v
13550 // SetDeleteMarkers sets the DeleteMarkers field's value.
13551 func (s *ListObjectVersionsOutput) SetDeleteMarkers(v []*DeleteMarkerEntry) *ListObjectVersionsOutput {
13552 s.DeleteMarkers = v
13556 // SetDelimiter sets the Delimiter field's value.
13557 func (s *ListObjectVersionsOutput) SetDelimiter(v string) *ListObjectVersionsOutput {
13562 // SetEncodingType sets the EncodingType field's value.
13563 func (s *ListObjectVersionsOutput) SetEncodingType(v string) *ListObjectVersionsOutput {
13564 s.EncodingType = &v
13568 // SetIsTruncated sets the IsTruncated field's value.
13569 func (s *ListObjectVersionsOutput) SetIsTruncated(v bool) *ListObjectVersionsOutput {
13574 // SetKeyMarker sets the KeyMarker field's value.
13575 func (s *ListObjectVersionsOutput) SetKeyMarker(v string) *ListObjectVersionsOutput {
13580 // SetMaxKeys sets the MaxKeys field's value.
13581 func (s *ListObjectVersionsOutput) SetMaxKeys(v int64) *ListObjectVersionsOutput {
13586 // SetName sets the Name field's value.
13587 func (s *ListObjectVersionsOutput) SetName(v string) *ListObjectVersionsOutput {
13592 // SetNextKeyMarker sets the NextKeyMarker field's value.
13593 func (s *ListObjectVersionsOutput) SetNextKeyMarker(v string) *ListObjectVersionsOutput {
13594 s.NextKeyMarker = &v
13598 // SetNextVersionIdMarker sets the NextVersionIdMarker field's value.
13599 func (s *ListObjectVersionsOutput) SetNextVersionIdMarker(v string) *ListObjectVersionsOutput {
13600 s.NextVersionIdMarker = &v
13604 // SetPrefix sets the Prefix field's value.
13605 func (s *ListObjectVersionsOutput) SetPrefix(v string) *ListObjectVersionsOutput {
13610 // SetVersionIdMarker sets the VersionIdMarker field's value.
13611 func (s *ListObjectVersionsOutput) SetVersionIdMarker(v string) *ListObjectVersionsOutput {
13612 s.VersionIdMarker = &v
13616 // SetVersions sets the Versions field's value.
13617 func (s *ListObjectVersionsOutput) SetVersions(v []*ObjectVersion) *ListObjectVersionsOutput {
13622 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsRequest
13623 type ListObjectsInput struct {
13624 _ struct{} `type:"structure"`
13626 // Bucket is a required field
13627 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
13629 // A delimiter is a character you use to group keys.
13630 Delimiter *string `location:"querystring" locationName:"delimiter" type:"string"`
13632 // Requests Amazon S3 to encode the object keys in the response and specifies
13633 // the encoding method to use. An object key may contain any Unicode character;
13634 // however, XML 1.0 parser cannot parse some characters, such as characters
13635 // with an ASCII value from 0 to 10. For characters that are not supported in
13636 // XML 1.0, you can add this parameter to request that Amazon S3 encode the
13637 // keys in the response.
13638 EncodingType *string `location:"querystring" locationName:"encoding-type" type:"string" enum:"EncodingType"`
13640 // Specifies the key to start with when listing objects in a bucket.
13641 Marker *string `location:"querystring" locationName:"marker" type:"string"`
13643 // Sets the maximum number of keys returned in the response. The response might
13644 // contain fewer keys but will never contain more.
13645 MaxKeys *int64 `location:"querystring" locationName:"max-keys" type:"integer"`
13647 // Limits the response to keys that begin with the specified prefix.
13648 Prefix *string `location:"querystring" locationName:"prefix" type:"string"`
13650 // Confirms that the requester knows that she or he will be charged for the
13651 // list objects request. Bucket owners need not specify this parameter in their
13653 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
13656 // String returns the string representation
13657 func (s ListObjectsInput) String() string {
13658 return awsutil.Prettify(s)
13661 // GoString returns the string representation
13662 func (s ListObjectsInput) GoString() string {
13666 // Validate inspects the fields of the type to determine if they are valid.
13667 func (s *ListObjectsInput) Validate() error {
13668 invalidParams := request.ErrInvalidParams{Context: "ListObjectsInput"}
13669 if s.Bucket == nil {
13670 invalidParams.Add(request.NewErrParamRequired("Bucket"))
13673 if invalidParams.Len() > 0 {
13674 return invalidParams
13679 // SetBucket sets the Bucket field's value.
13680 func (s *ListObjectsInput) SetBucket(v string) *ListObjectsInput {
13685 // SetDelimiter sets the Delimiter field's value.
13686 func (s *ListObjectsInput) SetDelimiter(v string) *ListObjectsInput {
13691 // SetEncodingType sets the EncodingType field's value.
13692 func (s *ListObjectsInput) SetEncodingType(v string) *ListObjectsInput {
13693 s.EncodingType = &v
13697 // SetMarker sets the Marker field's value.
13698 func (s *ListObjectsInput) SetMarker(v string) *ListObjectsInput {
13703 // SetMaxKeys sets the MaxKeys field's value.
13704 func (s *ListObjectsInput) SetMaxKeys(v int64) *ListObjectsInput {
13709 // SetPrefix sets the Prefix field's value.
13710 func (s *ListObjectsInput) SetPrefix(v string) *ListObjectsInput {
13715 // SetRequestPayer sets the RequestPayer field's value.
13716 func (s *ListObjectsInput) SetRequestPayer(v string) *ListObjectsInput {
13717 s.RequestPayer = &v
13721 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsOutput
13722 type ListObjectsOutput struct {
13723 _ struct{} `type:"structure"`
13725 CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"`
13727 Contents []*Object `type:"list" flattened:"true"`
13729 Delimiter *string `type:"string"`
13731 // Encoding type used by Amazon S3 to encode object keys in the response.
13732 EncodingType *string `type:"string" enum:"EncodingType"`
13734 // A flag that indicates whether or not Amazon S3 returned all of the results
13735 // that satisfied the search criteria.
13736 IsTruncated *bool `type:"boolean"`
13738 Marker *string `type:"string"`
13740 MaxKeys *int64 `type:"integer"`
13742 Name *string `type:"string"`
13744 // When response is truncated (the IsTruncated element value in the response
13745 // is true), you can use the key name in this field as marker in the subsequent
13746 // request to get next set of objects. Amazon S3 lists objects in alphabetical
13747 // order Note: This element is returned only if you have delimiter request parameter
13748 // specified. If response does not include the NextMaker and it is truncated,
13749 // you can use the value of the last Key in the response as the marker in the
13750 // subsequent request to get the next set of object keys.
13751 NextMarker *string `type:"string"`
13753 Prefix *string `type:"string"`
13756 // String returns the string representation
13757 func (s ListObjectsOutput) String() string {
13758 return awsutil.Prettify(s)
13761 // GoString returns the string representation
13762 func (s ListObjectsOutput) GoString() string {
13766 // SetCommonPrefixes sets the CommonPrefixes field's value.
13767 func (s *ListObjectsOutput) SetCommonPrefixes(v []*CommonPrefix) *ListObjectsOutput {
13768 s.CommonPrefixes = v
13772 // SetContents sets the Contents field's value.
13773 func (s *ListObjectsOutput) SetContents(v []*Object) *ListObjectsOutput {
13778 // SetDelimiter sets the Delimiter field's value.
13779 func (s *ListObjectsOutput) SetDelimiter(v string) *ListObjectsOutput {
13784 // SetEncodingType sets the EncodingType field's value.
13785 func (s *ListObjectsOutput) SetEncodingType(v string) *ListObjectsOutput {
13786 s.EncodingType = &v
13790 // SetIsTruncated sets the IsTruncated field's value.
13791 func (s *ListObjectsOutput) SetIsTruncated(v bool) *ListObjectsOutput {
13796 // SetMarker sets the Marker field's value.
13797 func (s *ListObjectsOutput) SetMarker(v string) *ListObjectsOutput {
13802 // SetMaxKeys sets the MaxKeys field's value.
13803 func (s *ListObjectsOutput) SetMaxKeys(v int64) *ListObjectsOutput {
13808 // SetName sets the Name field's value.
13809 func (s *ListObjectsOutput) SetName(v string) *ListObjectsOutput {
13814 // SetNextMarker sets the NextMarker field's value.
13815 func (s *ListObjectsOutput) SetNextMarker(v string) *ListObjectsOutput {
13820 // SetPrefix sets the Prefix field's value.
13821 func (s *ListObjectsOutput) SetPrefix(v string) *ListObjectsOutput {
13826 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsV2Request
13827 type ListObjectsV2Input struct {
13828 _ struct{} `type:"structure"`
13830 // Name of the bucket to list.
13832 // Bucket is a required field
13833 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
13835 // ContinuationToken indicates Amazon S3 that the list is being continued on
13836 // this bucket with a token. ContinuationToken is obfuscated and is not a real
13838 ContinuationToken *string `location:"querystring" locationName:"continuation-token" type:"string"`
13840 // A delimiter is a character you use to group keys.
13841 Delimiter *string `location:"querystring" locationName:"delimiter" type:"string"`
13843 // Encoding type used by Amazon S3 to encode object keys in the response.
13844 EncodingType *string `location:"querystring" locationName:"encoding-type" type:"string" enum:"EncodingType"`
13846 // The owner field is not present in listV2 by default, if you want to return
13847 // owner field with each key in the result then set the fetch owner field to
13849 FetchOwner *bool `location:"querystring" locationName:"fetch-owner" type:"boolean"`
13851 // Sets the maximum number of keys returned in the response. The response might
13852 // contain fewer keys but will never contain more.
13853 MaxKeys *int64 `location:"querystring" locationName:"max-keys" type:"integer"`
13855 // Limits the response to keys that begin with the specified prefix.
13856 Prefix *string `location:"querystring" locationName:"prefix" type:"string"`
13858 // Confirms that the requester knows that she or he will be charged for the
13859 // list objects request in V2 style. Bucket owners need not specify this parameter
13860 // in their requests.
13861 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
13863 // StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts
13864 // listing after this specified key. StartAfter can be any key in the bucket
13865 StartAfter *string `location:"querystring" locationName:"start-after" type:"string"`
13868 // String returns the string representation
13869 func (s ListObjectsV2Input) String() string {
13870 return awsutil.Prettify(s)
13873 // GoString returns the string representation
13874 func (s ListObjectsV2Input) GoString() string {
13878 // Validate inspects the fields of the type to determine if they are valid.
13879 func (s *ListObjectsV2Input) Validate() error {
13880 invalidParams := request.ErrInvalidParams{Context: "ListObjectsV2Input"}
13881 if s.Bucket == nil {
13882 invalidParams.Add(request.NewErrParamRequired("Bucket"))
13885 if invalidParams.Len() > 0 {
13886 return invalidParams
13891 // SetBucket sets the Bucket field's value.
13892 func (s *ListObjectsV2Input) SetBucket(v string) *ListObjectsV2Input {
13897 // SetContinuationToken sets the ContinuationToken field's value.
13898 func (s *ListObjectsV2Input) SetContinuationToken(v string) *ListObjectsV2Input {
13899 s.ContinuationToken = &v
13903 // SetDelimiter sets the Delimiter field's value.
13904 func (s *ListObjectsV2Input) SetDelimiter(v string) *ListObjectsV2Input {
13909 // SetEncodingType sets the EncodingType field's value.
13910 func (s *ListObjectsV2Input) SetEncodingType(v string) *ListObjectsV2Input {
13911 s.EncodingType = &v
13915 // SetFetchOwner sets the FetchOwner field's value.
13916 func (s *ListObjectsV2Input) SetFetchOwner(v bool) *ListObjectsV2Input {
13921 // SetMaxKeys sets the MaxKeys field's value.
13922 func (s *ListObjectsV2Input) SetMaxKeys(v int64) *ListObjectsV2Input {
13927 // SetPrefix sets the Prefix field's value.
13928 func (s *ListObjectsV2Input) SetPrefix(v string) *ListObjectsV2Input {
13933 // SetRequestPayer sets the RequestPayer field's value.
13934 func (s *ListObjectsV2Input) SetRequestPayer(v string) *ListObjectsV2Input {
13935 s.RequestPayer = &v
13939 // SetStartAfter sets the StartAfter field's value.
13940 func (s *ListObjectsV2Input) SetStartAfter(v string) *ListObjectsV2Input {
13945 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListObjectsV2Output
13946 type ListObjectsV2Output struct {
13947 _ struct{} `type:"structure"`
13949 // CommonPrefixes contains all (if there are any) keys between Prefix and the
13950 // next occurrence of the string specified by delimiter
13951 CommonPrefixes []*CommonPrefix `type:"list" flattened:"true"`
13953 // Metadata about each object returned.
13954 Contents []*Object `type:"list" flattened:"true"`
13956 // ContinuationToken indicates Amazon S3 that the list is being continued on
13957 // this bucket with a token. ContinuationToken is obfuscated and is not a real
13959 ContinuationToken *string `type:"string"`
13961 // A delimiter is a character you use to group keys.
13962 Delimiter *string `type:"string"`
13964 // Encoding type used by Amazon S3 to encode object keys in the response.
13965 EncodingType *string `type:"string" enum:"EncodingType"`
13967 // A flag that indicates whether or not Amazon S3 returned all of the results
13968 // that satisfied the search criteria.
13969 IsTruncated *bool `type:"boolean"`
13971 // KeyCount is the number of keys returned with this request. KeyCount will
13972 // always be less than equals to MaxKeys field. Say you ask for 50 keys, your
13973 // result will include less than equals 50 keys
13974 KeyCount *int64 `type:"integer"`
13976 // Sets the maximum number of keys returned in the response. The response might
13977 // contain fewer keys but will never contain more.
13978 MaxKeys *int64 `type:"integer"`
13980 // Name of the bucket to list.
13981 Name *string `type:"string"`
13983 // NextContinuationToken is sent when isTruncated is true which means there
13984 // are more keys in the bucket that can be listed. The next list requests to
13985 // Amazon S3 can be continued with this NextContinuationToken. NextContinuationToken
13986 // is obfuscated and is not a real key
13987 NextContinuationToken *string `type:"string"`
13989 // Limits the response to keys that begin with the specified prefix.
13990 Prefix *string `type:"string"`
13992 // StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts
13993 // listing after this specified key. StartAfter can be any key in the bucket
13994 StartAfter *string `type:"string"`
13997 // String returns the string representation
13998 func (s ListObjectsV2Output) String() string {
13999 return awsutil.Prettify(s)
14002 // GoString returns the string representation
14003 func (s ListObjectsV2Output) GoString() string {
14007 // SetCommonPrefixes sets the CommonPrefixes field's value.
14008 func (s *ListObjectsV2Output) SetCommonPrefixes(v []*CommonPrefix) *ListObjectsV2Output {
14009 s.CommonPrefixes = v
14013 // SetContents sets the Contents field's value.
14014 func (s *ListObjectsV2Output) SetContents(v []*Object) *ListObjectsV2Output {
14019 // SetContinuationToken sets the ContinuationToken field's value.
14020 func (s *ListObjectsV2Output) SetContinuationToken(v string) *ListObjectsV2Output {
14021 s.ContinuationToken = &v
14025 // SetDelimiter sets the Delimiter field's value.
14026 func (s *ListObjectsV2Output) SetDelimiter(v string) *ListObjectsV2Output {
14031 // SetEncodingType sets the EncodingType field's value.
14032 func (s *ListObjectsV2Output) SetEncodingType(v string) *ListObjectsV2Output {
14033 s.EncodingType = &v
14037 // SetIsTruncated sets the IsTruncated field's value.
14038 func (s *ListObjectsV2Output) SetIsTruncated(v bool) *ListObjectsV2Output {
14043 // SetKeyCount sets the KeyCount field's value.
14044 func (s *ListObjectsV2Output) SetKeyCount(v int64) *ListObjectsV2Output {
14049 // SetMaxKeys sets the MaxKeys field's value.
14050 func (s *ListObjectsV2Output) SetMaxKeys(v int64) *ListObjectsV2Output {
14055 // SetName sets the Name field's value.
14056 func (s *ListObjectsV2Output) SetName(v string) *ListObjectsV2Output {
14061 // SetNextContinuationToken sets the NextContinuationToken field's value.
14062 func (s *ListObjectsV2Output) SetNextContinuationToken(v string) *ListObjectsV2Output {
14063 s.NextContinuationToken = &v
14067 // SetPrefix sets the Prefix field's value.
14068 func (s *ListObjectsV2Output) SetPrefix(v string) *ListObjectsV2Output {
14073 // SetStartAfter sets the StartAfter field's value.
14074 func (s *ListObjectsV2Output) SetStartAfter(v string) *ListObjectsV2Output {
14079 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListPartsRequest
14080 type ListPartsInput struct {
14081 _ struct{} `type:"structure"`
14083 // Bucket is a required field
14084 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
14086 // Key is a required field
14087 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
14089 // Sets the maximum number of parts to return.
14090 MaxParts *int64 `location:"querystring" locationName:"max-parts" type:"integer"`
14092 // Specifies the part after which listing should begin. Only parts with higher
14093 // part numbers will be listed.
14094 PartNumberMarker *int64 `location:"querystring" locationName:"part-number-marker" type:"integer"`
14096 // Confirms that the requester knows that she or he will be charged for the
14097 // request. Bucket owners need not specify this parameter in their requests.
14098 // Documentation on downloading objects from requester pays buckets can be found
14099 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
14100 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
14102 // Upload ID identifying the multipart upload whose parts are being listed.
14104 // UploadId is a required field
14105 UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"`
14108 // String returns the string representation
14109 func (s ListPartsInput) String() string {
14110 return awsutil.Prettify(s)
14113 // GoString returns the string representation
14114 func (s ListPartsInput) GoString() string {
14118 // Validate inspects the fields of the type to determine if they are valid.
14119 func (s *ListPartsInput) Validate() error {
14120 invalidParams := request.ErrInvalidParams{Context: "ListPartsInput"}
14121 if s.Bucket == nil {
14122 invalidParams.Add(request.NewErrParamRequired("Bucket"))
14125 invalidParams.Add(request.NewErrParamRequired("Key"))
14127 if s.Key != nil && len(*s.Key) < 1 {
14128 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
14130 if s.UploadId == nil {
14131 invalidParams.Add(request.NewErrParamRequired("UploadId"))
14134 if invalidParams.Len() > 0 {
14135 return invalidParams
14140 // SetBucket sets the Bucket field's value.
14141 func (s *ListPartsInput) SetBucket(v string) *ListPartsInput {
14146 // SetKey sets the Key field's value.
14147 func (s *ListPartsInput) SetKey(v string) *ListPartsInput {
14152 // SetMaxParts sets the MaxParts field's value.
14153 func (s *ListPartsInput) SetMaxParts(v int64) *ListPartsInput {
14158 // SetPartNumberMarker sets the PartNumberMarker field's value.
14159 func (s *ListPartsInput) SetPartNumberMarker(v int64) *ListPartsInput {
14160 s.PartNumberMarker = &v
14164 // SetRequestPayer sets the RequestPayer field's value.
14165 func (s *ListPartsInput) SetRequestPayer(v string) *ListPartsInput {
14166 s.RequestPayer = &v
14170 // SetUploadId sets the UploadId field's value.
14171 func (s *ListPartsInput) SetUploadId(v string) *ListPartsInput {
14176 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ListPartsOutput
14177 type ListPartsOutput struct {
14178 _ struct{} `type:"structure"`
14180 // Date when multipart upload will become eligible for abort operation by lifecycle.
14181 AbortDate *time.Time `location:"header" locationName:"x-amz-abort-date" type:"timestamp" timestampFormat:"rfc822"`
14183 // Id of the lifecycle rule that makes a multipart upload eligible for abort
14185 AbortRuleId *string `location:"header" locationName:"x-amz-abort-rule-id" type:"string"`
14187 // Name of the bucket to which the multipart upload was initiated.
14188 Bucket *string `type:"string"`
14190 // Identifies who initiated the multipart upload.
14191 Initiator *Initiator `type:"structure"`
14193 // Indicates whether the returned list of parts is truncated.
14194 IsTruncated *bool `type:"boolean"`
14196 // Object key for which the multipart upload was initiated.
14197 Key *string `min:"1" type:"string"`
14199 // Maximum number of parts that were allowed in the response.
14200 MaxParts *int64 `type:"integer"`
14202 // When a list is truncated, this element specifies the last part in the list,
14203 // as well as the value to use for the part-number-marker request parameter
14204 // in a subsequent request.
14205 NextPartNumberMarker *int64 `type:"integer"`
14207 Owner *Owner `type:"structure"`
14209 // Part number after which listing begins.
14210 PartNumberMarker *int64 `type:"integer"`
14212 Parts []*Part `locationName:"Part" type:"list" flattened:"true"`
14214 // If present, indicates that the requester was successfully charged for the
14216 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
14218 // The class of storage used to store the object.
14219 StorageClass *string `type:"string" enum:"StorageClass"`
14221 // Upload ID identifying the multipart upload whose parts are being listed.
14222 UploadId *string `type:"string"`
14225 // String returns the string representation
14226 func (s ListPartsOutput) String() string {
14227 return awsutil.Prettify(s)
14230 // GoString returns the string representation
14231 func (s ListPartsOutput) GoString() string {
14235 // SetAbortDate sets the AbortDate field's value.
14236 func (s *ListPartsOutput) SetAbortDate(v time.Time) *ListPartsOutput {
14241 // SetAbortRuleId sets the AbortRuleId field's value.
14242 func (s *ListPartsOutput) SetAbortRuleId(v string) *ListPartsOutput {
14247 // SetBucket sets the Bucket field's value.
14248 func (s *ListPartsOutput) SetBucket(v string) *ListPartsOutput {
14253 // SetInitiator sets the Initiator field's value.
14254 func (s *ListPartsOutput) SetInitiator(v *Initiator) *ListPartsOutput {
14259 // SetIsTruncated sets the IsTruncated field's value.
14260 func (s *ListPartsOutput) SetIsTruncated(v bool) *ListPartsOutput {
14265 // SetKey sets the Key field's value.
14266 func (s *ListPartsOutput) SetKey(v string) *ListPartsOutput {
14271 // SetMaxParts sets the MaxParts field's value.
14272 func (s *ListPartsOutput) SetMaxParts(v int64) *ListPartsOutput {
14277 // SetNextPartNumberMarker sets the NextPartNumberMarker field's value.
14278 func (s *ListPartsOutput) SetNextPartNumberMarker(v int64) *ListPartsOutput {
14279 s.NextPartNumberMarker = &v
14283 // SetOwner sets the Owner field's value.
14284 func (s *ListPartsOutput) SetOwner(v *Owner) *ListPartsOutput {
14289 // SetPartNumberMarker sets the PartNumberMarker field's value.
14290 func (s *ListPartsOutput) SetPartNumberMarker(v int64) *ListPartsOutput {
14291 s.PartNumberMarker = &v
14295 // SetParts sets the Parts field's value.
14296 func (s *ListPartsOutput) SetParts(v []*Part) *ListPartsOutput {
14301 // SetRequestCharged sets the RequestCharged field's value.
14302 func (s *ListPartsOutput) SetRequestCharged(v string) *ListPartsOutput {
14303 s.RequestCharged = &v
14307 // SetStorageClass sets the StorageClass field's value.
14308 func (s *ListPartsOutput) SetStorageClass(v string) *ListPartsOutput {
14309 s.StorageClass = &v
14313 // SetUploadId sets the UploadId field's value.
14314 func (s *ListPartsOutput) SetUploadId(v string) *ListPartsOutput {
14319 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LoggingEnabled
14320 type LoggingEnabled struct {
14321 _ struct{} `type:"structure"`
14323 // Specifies the bucket where you want Amazon S3 to store server access logs.
14324 // You can have your logs delivered to any bucket that you own, including the
14325 // same bucket that is being logged. You can also configure multiple buckets
14326 // to deliver their logs to the same target bucket. In this case you should
14327 // choose a different TargetPrefix for each source bucket so that the delivered
14328 // log files can be distinguished by key.
14329 TargetBucket *string `type:"string"`
14331 TargetGrants []*TargetGrant `locationNameList:"Grant" type:"list"`
14333 // This element lets you specify a prefix for the keys that the log files will
14334 // be stored under.
14335 TargetPrefix *string `type:"string"`
14338 // String returns the string representation
14339 func (s LoggingEnabled) String() string {
14340 return awsutil.Prettify(s)
14343 // GoString returns the string representation
14344 func (s LoggingEnabled) GoString() string {
14348 // Validate inspects the fields of the type to determine if they are valid.
14349 func (s *LoggingEnabled) Validate() error {
14350 invalidParams := request.ErrInvalidParams{Context: "LoggingEnabled"}
14351 if s.TargetGrants != nil {
14352 for i, v := range s.TargetGrants {
14356 if err := v.Validate(); err != nil {
14357 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetGrants", i), err.(request.ErrInvalidParams))
14362 if invalidParams.Len() > 0 {
14363 return invalidParams
14368 // SetTargetBucket sets the TargetBucket field's value.
14369 func (s *LoggingEnabled) SetTargetBucket(v string) *LoggingEnabled {
14370 s.TargetBucket = &v
14374 // SetTargetGrants sets the TargetGrants field's value.
14375 func (s *LoggingEnabled) SetTargetGrants(v []*TargetGrant) *LoggingEnabled {
14380 // SetTargetPrefix sets the TargetPrefix field's value.
14381 func (s *LoggingEnabled) SetTargetPrefix(v string) *LoggingEnabled {
14382 s.TargetPrefix = &v
14386 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/MetricsAndOperator
14387 type MetricsAndOperator struct {
14388 _ struct{} `type:"structure"`
14390 // The prefix used when evaluating an AND predicate.
14391 Prefix *string `type:"string"`
14393 // The list of tags used when evaluating an AND predicate.
14394 Tags []*Tag `locationName:"Tag" locationNameList:"Tag" type:"list" flattened:"true"`
14397 // String returns the string representation
14398 func (s MetricsAndOperator) String() string {
14399 return awsutil.Prettify(s)
14402 // GoString returns the string representation
14403 func (s MetricsAndOperator) GoString() string {
14407 // Validate inspects the fields of the type to determine if they are valid.
14408 func (s *MetricsAndOperator) Validate() error {
14409 invalidParams := request.ErrInvalidParams{Context: "MetricsAndOperator"}
14411 for i, v := range s.Tags {
14415 if err := v.Validate(); err != nil {
14416 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
14421 if invalidParams.Len() > 0 {
14422 return invalidParams
14427 // SetPrefix sets the Prefix field's value.
14428 func (s *MetricsAndOperator) SetPrefix(v string) *MetricsAndOperator {
14433 // SetTags sets the Tags field's value.
14434 func (s *MetricsAndOperator) SetTags(v []*Tag) *MetricsAndOperator {
14439 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/MetricsConfiguration
14440 type MetricsConfiguration struct {
14441 _ struct{} `type:"structure"`
14443 // Specifies a metrics configuration filter. The metrics configuration will
14444 // only include objects that meet the filter's criteria. A filter must be a
14445 // prefix, a tag, or a conjunction (MetricsAndOperator).
14446 Filter *MetricsFilter `type:"structure"`
14448 // The ID used to identify the metrics configuration.
14450 // Id is a required field
14451 Id *string `type:"string" required:"true"`
14454 // String returns the string representation
14455 func (s MetricsConfiguration) String() string {
14456 return awsutil.Prettify(s)
14459 // GoString returns the string representation
14460 func (s MetricsConfiguration) GoString() string {
14464 // Validate inspects the fields of the type to determine if they are valid.
14465 func (s *MetricsConfiguration) Validate() error {
14466 invalidParams := request.ErrInvalidParams{Context: "MetricsConfiguration"}
14468 invalidParams.Add(request.NewErrParamRequired("Id"))
14470 if s.Filter != nil {
14471 if err := s.Filter.Validate(); err != nil {
14472 invalidParams.AddNested("Filter", err.(request.ErrInvalidParams))
14476 if invalidParams.Len() > 0 {
14477 return invalidParams
14482 // SetFilter sets the Filter field's value.
14483 func (s *MetricsConfiguration) SetFilter(v *MetricsFilter) *MetricsConfiguration {
14488 // SetId sets the Id field's value.
14489 func (s *MetricsConfiguration) SetId(v string) *MetricsConfiguration {
14494 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/MetricsFilter
14495 type MetricsFilter struct {
14496 _ struct{} `type:"structure"`
14498 // A conjunction (logical AND) of predicates, which is used in evaluating a
14499 // metrics filter. The operator must have at least two predicates, and an object
14500 // must match all of the predicates in order for the filter to apply.
14501 And *MetricsAndOperator `type:"structure"`
14503 // The prefix used when evaluating a metrics filter.
14504 Prefix *string `type:"string"`
14506 // The tag used when evaluating a metrics filter.
14507 Tag *Tag `type:"structure"`
14510 // String returns the string representation
14511 func (s MetricsFilter) String() string {
14512 return awsutil.Prettify(s)
14515 // GoString returns the string representation
14516 func (s MetricsFilter) GoString() string {
14520 // Validate inspects the fields of the type to determine if they are valid.
14521 func (s *MetricsFilter) Validate() error {
14522 invalidParams := request.ErrInvalidParams{Context: "MetricsFilter"}
14524 if err := s.And.Validate(); err != nil {
14525 invalidParams.AddNested("And", err.(request.ErrInvalidParams))
14529 if err := s.Tag.Validate(); err != nil {
14530 invalidParams.AddNested("Tag", err.(request.ErrInvalidParams))
14534 if invalidParams.Len() > 0 {
14535 return invalidParams
14540 // SetAnd sets the And field's value.
14541 func (s *MetricsFilter) SetAnd(v *MetricsAndOperator) *MetricsFilter {
14546 // SetPrefix sets the Prefix field's value.
14547 func (s *MetricsFilter) SetPrefix(v string) *MetricsFilter {
14552 // SetTag sets the Tag field's value.
14553 func (s *MetricsFilter) SetTag(v *Tag) *MetricsFilter {
14558 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/MultipartUpload
14559 type MultipartUpload struct {
14560 _ struct{} `type:"structure"`
14562 // Date and time at which the multipart upload was initiated.
14563 Initiated *time.Time `type:"timestamp" timestampFormat:"iso8601"`
14565 // Identifies who initiated the multipart upload.
14566 Initiator *Initiator `type:"structure"`
14568 // Key of the object for which the multipart upload was initiated.
14569 Key *string `min:"1" type:"string"`
14571 Owner *Owner `type:"structure"`
14573 // The class of storage used to store the object.
14574 StorageClass *string `type:"string" enum:"StorageClass"`
14576 // Upload ID that identifies the multipart upload.
14577 UploadId *string `type:"string"`
14580 // String returns the string representation
14581 func (s MultipartUpload) String() string {
14582 return awsutil.Prettify(s)
14585 // GoString returns the string representation
14586 func (s MultipartUpload) GoString() string {
14590 // SetInitiated sets the Initiated field's value.
14591 func (s *MultipartUpload) SetInitiated(v time.Time) *MultipartUpload {
14596 // SetInitiator sets the Initiator field's value.
14597 func (s *MultipartUpload) SetInitiator(v *Initiator) *MultipartUpload {
14602 // SetKey sets the Key field's value.
14603 func (s *MultipartUpload) SetKey(v string) *MultipartUpload {
14608 // SetOwner sets the Owner field's value.
14609 func (s *MultipartUpload) SetOwner(v *Owner) *MultipartUpload {
14614 // SetStorageClass sets the StorageClass field's value.
14615 func (s *MultipartUpload) SetStorageClass(v string) *MultipartUpload {
14616 s.StorageClass = &v
14620 // SetUploadId sets the UploadId field's value.
14621 func (s *MultipartUpload) SetUploadId(v string) *MultipartUpload {
14626 // Specifies when noncurrent object versions expire. Upon expiration, Amazon
14627 // S3 permanently deletes the noncurrent object versions. You set this lifecycle
14628 // configuration action on a bucket that has versioning enabled (or suspended)
14629 // to request that Amazon S3 delete noncurrent object versions at a specific
14630 // period in the object's lifetime.
14631 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NoncurrentVersionExpiration
14632 type NoncurrentVersionExpiration struct {
14633 _ struct{} `type:"structure"`
14635 // Specifies the number of days an object is noncurrent before Amazon S3 can
14636 // perform the associated action. For information about the noncurrent days
14637 // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent
14638 // (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html)
14639 NoncurrentDays *int64 `type:"integer"`
14642 // String returns the string representation
14643 func (s NoncurrentVersionExpiration) String() string {
14644 return awsutil.Prettify(s)
14647 // GoString returns the string representation
14648 func (s NoncurrentVersionExpiration) GoString() string {
14652 // SetNoncurrentDays sets the NoncurrentDays field's value.
14653 func (s *NoncurrentVersionExpiration) SetNoncurrentDays(v int64) *NoncurrentVersionExpiration {
14654 s.NoncurrentDays = &v
14658 // Container for the transition rule that describes when noncurrent objects
14659 // transition to the STANDARD_IA or GLACIER storage class. If your bucket is
14660 // versioning-enabled (or versioning is suspended), you can set this action
14661 // to request that Amazon S3 transition noncurrent object versions to the STANDARD_IA
14662 // or GLACIER storage class at a specific period in the object's lifetime.
14663 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NoncurrentVersionTransition
14664 type NoncurrentVersionTransition struct {
14665 _ struct{} `type:"structure"`
14667 // Specifies the number of days an object is noncurrent before Amazon S3 can
14668 // perform the associated action. For information about the noncurrent days
14669 // calculations, see How Amazon S3 Calculates When an Object Became Noncurrent
14670 // (http://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html)
14671 NoncurrentDays *int64 `type:"integer"`
14673 // The class of storage used to store the object.
14674 StorageClass *string `type:"string" enum:"TransitionStorageClass"`
14677 // String returns the string representation
14678 func (s NoncurrentVersionTransition) String() string {
14679 return awsutil.Prettify(s)
14682 // GoString returns the string representation
14683 func (s NoncurrentVersionTransition) GoString() string {
14687 // SetNoncurrentDays sets the NoncurrentDays field's value.
14688 func (s *NoncurrentVersionTransition) SetNoncurrentDays(v int64) *NoncurrentVersionTransition {
14689 s.NoncurrentDays = &v
14693 // SetStorageClass sets the StorageClass field's value.
14694 func (s *NoncurrentVersionTransition) SetStorageClass(v string) *NoncurrentVersionTransition {
14695 s.StorageClass = &v
14699 // Container for specifying the notification configuration of the bucket. If
14700 // this element is empty, notifications are turned off on the bucket.
14701 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NotificationConfiguration
14702 type NotificationConfiguration struct {
14703 _ struct{} `type:"structure"`
14705 LambdaFunctionConfigurations []*LambdaFunctionConfiguration `locationName:"CloudFunctionConfiguration" type:"list" flattened:"true"`
14707 QueueConfigurations []*QueueConfiguration `locationName:"QueueConfiguration" type:"list" flattened:"true"`
14709 TopicConfigurations []*TopicConfiguration `locationName:"TopicConfiguration" type:"list" flattened:"true"`
14712 // String returns the string representation
14713 func (s NotificationConfiguration) String() string {
14714 return awsutil.Prettify(s)
14717 // GoString returns the string representation
14718 func (s NotificationConfiguration) GoString() string {
14722 // Validate inspects the fields of the type to determine if they are valid.
14723 func (s *NotificationConfiguration) Validate() error {
14724 invalidParams := request.ErrInvalidParams{Context: "NotificationConfiguration"}
14725 if s.LambdaFunctionConfigurations != nil {
14726 for i, v := range s.LambdaFunctionConfigurations {
14730 if err := v.Validate(); err != nil {
14731 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LambdaFunctionConfigurations", i), err.(request.ErrInvalidParams))
14735 if s.QueueConfigurations != nil {
14736 for i, v := range s.QueueConfigurations {
14740 if err := v.Validate(); err != nil {
14741 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "QueueConfigurations", i), err.(request.ErrInvalidParams))
14745 if s.TopicConfigurations != nil {
14746 for i, v := range s.TopicConfigurations {
14750 if err := v.Validate(); err != nil {
14751 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TopicConfigurations", i), err.(request.ErrInvalidParams))
14756 if invalidParams.Len() > 0 {
14757 return invalidParams
14762 // SetLambdaFunctionConfigurations sets the LambdaFunctionConfigurations field's value.
14763 func (s *NotificationConfiguration) SetLambdaFunctionConfigurations(v []*LambdaFunctionConfiguration) *NotificationConfiguration {
14764 s.LambdaFunctionConfigurations = v
14768 // SetQueueConfigurations sets the QueueConfigurations field's value.
14769 func (s *NotificationConfiguration) SetQueueConfigurations(v []*QueueConfiguration) *NotificationConfiguration {
14770 s.QueueConfigurations = v
14774 // SetTopicConfigurations sets the TopicConfigurations field's value.
14775 func (s *NotificationConfiguration) SetTopicConfigurations(v []*TopicConfiguration) *NotificationConfiguration {
14776 s.TopicConfigurations = v
14780 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NotificationConfigurationDeprecated
14781 type NotificationConfigurationDeprecated struct {
14782 _ struct{} `type:"structure"`
14784 CloudFunctionConfiguration *CloudFunctionConfiguration `type:"structure"`
14786 QueueConfiguration *QueueConfigurationDeprecated `type:"structure"`
14788 TopicConfiguration *TopicConfigurationDeprecated `type:"structure"`
14791 // String returns the string representation
14792 func (s NotificationConfigurationDeprecated) String() string {
14793 return awsutil.Prettify(s)
14796 // GoString returns the string representation
14797 func (s NotificationConfigurationDeprecated) GoString() string {
14801 // SetCloudFunctionConfiguration sets the CloudFunctionConfiguration field's value.
14802 func (s *NotificationConfigurationDeprecated) SetCloudFunctionConfiguration(v *CloudFunctionConfiguration) *NotificationConfigurationDeprecated {
14803 s.CloudFunctionConfiguration = v
14807 // SetQueueConfiguration sets the QueueConfiguration field's value.
14808 func (s *NotificationConfigurationDeprecated) SetQueueConfiguration(v *QueueConfigurationDeprecated) *NotificationConfigurationDeprecated {
14809 s.QueueConfiguration = v
14813 // SetTopicConfiguration sets the TopicConfiguration field's value.
14814 func (s *NotificationConfigurationDeprecated) SetTopicConfiguration(v *TopicConfigurationDeprecated) *NotificationConfigurationDeprecated {
14815 s.TopicConfiguration = v
14819 // Container for object key name filtering rules. For information about key
14820 // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html)
14821 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NotificationConfigurationFilter
14822 type NotificationConfigurationFilter struct {
14823 _ struct{} `type:"structure"`
14825 // Container for object key name prefix and suffix filtering rules.
14826 Key *KeyFilter `locationName:"S3Key" type:"structure"`
14829 // String returns the string representation
14830 func (s NotificationConfigurationFilter) String() string {
14831 return awsutil.Prettify(s)
14834 // GoString returns the string representation
14835 func (s NotificationConfigurationFilter) GoString() string {
14839 // SetKey sets the Key field's value.
14840 func (s *NotificationConfigurationFilter) SetKey(v *KeyFilter) *NotificationConfigurationFilter {
14845 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Object
14846 type Object struct {
14847 _ struct{} `type:"structure"`
14849 ETag *string `type:"string"`
14851 Key *string `min:"1" type:"string"`
14853 LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
14855 Owner *Owner `type:"structure"`
14857 Size *int64 `type:"integer"`
14859 // The class of storage used to store the object.
14860 StorageClass *string `type:"string" enum:"ObjectStorageClass"`
14863 // String returns the string representation
14864 func (s Object) String() string {
14865 return awsutil.Prettify(s)
14868 // GoString returns the string representation
14869 func (s Object) GoString() string {
14873 // SetETag sets the ETag field's value.
14874 func (s *Object) SetETag(v string) *Object {
14879 // SetKey sets the Key field's value.
14880 func (s *Object) SetKey(v string) *Object {
14885 // SetLastModified sets the LastModified field's value.
14886 func (s *Object) SetLastModified(v time.Time) *Object {
14887 s.LastModified = &v
14891 // SetOwner sets the Owner field's value.
14892 func (s *Object) SetOwner(v *Owner) *Object {
14897 // SetSize sets the Size field's value.
14898 func (s *Object) SetSize(v int64) *Object {
14903 // SetStorageClass sets the StorageClass field's value.
14904 func (s *Object) SetStorageClass(v string) *Object {
14905 s.StorageClass = &v
14909 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ObjectIdentifier
14910 type ObjectIdentifier struct {
14911 _ struct{} `type:"structure"`
14913 // Key name of the object to delete.
14915 // Key is a required field
14916 Key *string `min:"1" type:"string" required:"true"`
14918 // VersionId for the specific version of the object to delete.
14919 VersionId *string `type:"string"`
14922 // String returns the string representation
14923 func (s ObjectIdentifier) String() string {
14924 return awsutil.Prettify(s)
14927 // GoString returns the string representation
14928 func (s ObjectIdentifier) GoString() string {
14932 // Validate inspects the fields of the type to determine if they are valid.
14933 func (s *ObjectIdentifier) Validate() error {
14934 invalidParams := request.ErrInvalidParams{Context: "ObjectIdentifier"}
14936 invalidParams.Add(request.NewErrParamRequired("Key"))
14938 if s.Key != nil && len(*s.Key) < 1 {
14939 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
14942 if invalidParams.Len() > 0 {
14943 return invalidParams
14948 // SetKey sets the Key field's value.
14949 func (s *ObjectIdentifier) SetKey(v string) *ObjectIdentifier {
14954 // SetVersionId sets the VersionId field's value.
14955 func (s *ObjectIdentifier) SetVersionId(v string) *ObjectIdentifier {
14960 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ObjectVersion
14961 type ObjectVersion struct {
14962 _ struct{} `type:"structure"`
14964 ETag *string `type:"string"`
14966 // Specifies whether the object is (true) or is not (false) the latest version
14968 IsLatest *bool `type:"boolean"`
14971 Key *string `min:"1" type:"string"`
14973 // Date and time the object was last modified.
14974 LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
14976 Owner *Owner `type:"structure"`
14978 // Size in bytes of the object.
14979 Size *int64 `type:"integer"`
14981 // The class of storage used to store the object.
14982 StorageClass *string `type:"string" enum:"ObjectVersionStorageClass"`
14984 // Version ID of an object.
14985 VersionId *string `type:"string"`
14988 // String returns the string representation
14989 func (s ObjectVersion) String() string {
14990 return awsutil.Prettify(s)
14993 // GoString returns the string representation
14994 func (s ObjectVersion) GoString() string {
14998 // SetETag sets the ETag field's value.
14999 func (s *ObjectVersion) SetETag(v string) *ObjectVersion {
15004 // SetIsLatest sets the IsLatest field's value.
15005 func (s *ObjectVersion) SetIsLatest(v bool) *ObjectVersion {
15010 // SetKey sets the Key field's value.
15011 func (s *ObjectVersion) SetKey(v string) *ObjectVersion {
15016 // SetLastModified sets the LastModified field's value.
15017 func (s *ObjectVersion) SetLastModified(v time.Time) *ObjectVersion {
15018 s.LastModified = &v
15022 // SetOwner sets the Owner field's value.
15023 func (s *ObjectVersion) SetOwner(v *Owner) *ObjectVersion {
15028 // SetSize sets the Size field's value.
15029 func (s *ObjectVersion) SetSize(v int64) *ObjectVersion {
15034 // SetStorageClass sets the StorageClass field's value.
15035 func (s *ObjectVersion) SetStorageClass(v string) *ObjectVersion {
15036 s.StorageClass = &v
15040 // SetVersionId sets the VersionId field's value.
15041 func (s *ObjectVersion) SetVersionId(v string) *ObjectVersion {
15046 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Owner
15047 type Owner struct {
15048 _ struct{} `type:"structure"`
15050 DisplayName *string `type:"string"`
15052 ID *string `type:"string"`
15055 // String returns the string representation
15056 func (s Owner) String() string {
15057 return awsutil.Prettify(s)
15060 // GoString returns the string representation
15061 func (s Owner) GoString() string {
15065 // SetDisplayName sets the DisplayName field's value.
15066 func (s *Owner) SetDisplayName(v string) *Owner {
15071 // SetID sets the ID field's value.
15072 func (s *Owner) SetID(v string) *Owner {
15077 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Part
15079 _ struct{} `type:"structure"`
15081 // Entity tag returned when the part was uploaded.
15082 ETag *string `type:"string"`
15084 // Date and time at which the part was uploaded.
15085 LastModified *time.Time `type:"timestamp" timestampFormat:"iso8601"`
15087 // Part number identifying the part. This is a positive integer between 1 and
15089 PartNumber *int64 `type:"integer"`
15091 // Size of the uploaded part data.
15092 Size *int64 `type:"integer"`
15095 // String returns the string representation
15096 func (s Part) String() string {
15097 return awsutil.Prettify(s)
15100 // GoString returns the string representation
15101 func (s Part) GoString() string {
15105 // SetETag sets the ETag field's value.
15106 func (s *Part) SetETag(v string) *Part {
15111 // SetLastModified sets the LastModified field's value.
15112 func (s *Part) SetLastModified(v time.Time) *Part {
15113 s.LastModified = &v
15117 // SetPartNumber sets the PartNumber field's value.
15118 func (s *Part) SetPartNumber(v int64) *Part {
15123 // SetSize sets the Size field's value.
15124 func (s *Part) SetSize(v int64) *Part {
15129 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAccelerateConfigurationRequest
15130 type PutBucketAccelerateConfigurationInput struct {
15131 _ struct{} `type:"structure" payload:"AccelerateConfiguration"`
15133 // Specifies the Accelerate Configuration you want to set for the bucket.
15135 // AccelerateConfiguration is a required field
15136 AccelerateConfiguration *AccelerateConfiguration `locationName:"AccelerateConfiguration" type:"structure" required:"true"`
15138 // Name of the bucket for which the accelerate configuration is set.
15140 // Bucket is a required field
15141 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
15144 // String returns the string representation
15145 func (s PutBucketAccelerateConfigurationInput) String() string {
15146 return awsutil.Prettify(s)
15149 // GoString returns the string representation
15150 func (s PutBucketAccelerateConfigurationInput) GoString() string {
15154 // Validate inspects the fields of the type to determine if they are valid.
15155 func (s *PutBucketAccelerateConfigurationInput) Validate() error {
15156 invalidParams := request.ErrInvalidParams{Context: "PutBucketAccelerateConfigurationInput"}
15157 if s.AccelerateConfiguration == nil {
15158 invalidParams.Add(request.NewErrParamRequired("AccelerateConfiguration"))
15160 if s.Bucket == nil {
15161 invalidParams.Add(request.NewErrParamRequired("Bucket"))
15164 if invalidParams.Len() > 0 {
15165 return invalidParams
15170 // SetAccelerateConfiguration sets the AccelerateConfiguration field's value.
15171 func (s *PutBucketAccelerateConfigurationInput) SetAccelerateConfiguration(v *AccelerateConfiguration) *PutBucketAccelerateConfigurationInput {
15172 s.AccelerateConfiguration = v
15176 // SetBucket sets the Bucket field's value.
15177 func (s *PutBucketAccelerateConfigurationInput) SetBucket(v string) *PutBucketAccelerateConfigurationInput {
15182 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAccelerateConfigurationOutput
15183 type PutBucketAccelerateConfigurationOutput struct {
15184 _ struct{} `type:"structure"`
15187 // String returns the string representation
15188 func (s PutBucketAccelerateConfigurationOutput) String() string {
15189 return awsutil.Prettify(s)
15192 // GoString returns the string representation
15193 func (s PutBucketAccelerateConfigurationOutput) GoString() string {
15197 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAclRequest
15198 type PutBucketAclInput struct {
15199 _ struct{} `type:"structure" payload:"AccessControlPolicy"`
15201 // The canned ACL to apply to the bucket.
15202 ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"BucketCannedACL"`
15204 AccessControlPolicy *AccessControlPolicy `locationName:"AccessControlPolicy" type:"structure"`
15206 // Bucket is a required field
15207 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
15209 // Allows grantee the read, write, read ACP, and write ACP permissions on the
15211 GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
15213 // Allows grantee to list the objects in the bucket.
15214 GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"`
15216 // Allows grantee to read the bucket ACL.
15217 GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"`
15219 // Allows grantee to create, overwrite, and delete any object in the bucket.
15220 GrantWrite *string `location:"header" locationName:"x-amz-grant-write" type:"string"`
15222 // Allows grantee to write the ACL for the applicable bucket.
15223 GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`
15226 // String returns the string representation
15227 func (s PutBucketAclInput) String() string {
15228 return awsutil.Prettify(s)
15231 // GoString returns the string representation
15232 func (s PutBucketAclInput) GoString() string {
15236 // Validate inspects the fields of the type to determine if they are valid.
15237 func (s *PutBucketAclInput) Validate() error {
15238 invalidParams := request.ErrInvalidParams{Context: "PutBucketAclInput"}
15239 if s.Bucket == nil {
15240 invalidParams.Add(request.NewErrParamRequired("Bucket"))
15242 if s.AccessControlPolicy != nil {
15243 if err := s.AccessControlPolicy.Validate(); err != nil {
15244 invalidParams.AddNested("AccessControlPolicy", err.(request.ErrInvalidParams))
15248 if invalidParams.Len() > 0 {
15249 return invalidParams
15254 // SetACL sets the ACL field's value.
15255 func (s *PutBucketAclInput) SetACL(v string) *PutBucketAclInput {
15260 // SetAccessControlPolicy sets the AccessControlPolicy field's value.
15261 func (s *PutBucketAclInput) SetAccessControlPolicy(v *AccessControlPolicy) *PutBucketAclInput {
15262 s.AccessControlPolicy = v
15266 // SetBucket sets the Bucket field's value.
15267 func (s *PutBucketAclInput) SetBucket(v string) *PutBucketAclInput {
15272 // SetGrantFullControl sets the GrantFullControl field's value.
15273 func (s *PutBucketAclInput) SetGrantFullControl(v string) *PutBucketAclInput {
15274 s.GrantFullControl = &v
15278 // SetGrantRead sets the GrantRead field's value.
15279 func (s *PutBucketAclInput) SetGrantRead(v string) *PutBucketAclInput {
15284 // SetGrantReadACP sets the GrantReadACP field's value.
15285 func (s *PutBucketAclInput) SetGrantReadACP(v string) *PutBucketAclInput {
15286 s.GrantReadACP = &v
15290 // SetGrantWrite sets the GrantWrite field's value.
15291 func (s *PutBucketAclInput) SetGrantWrite(v string) *PutBucketAclInput {
15296 // SetGrantWriteACP sets the GrantWriteACP field's value.
15297 func (s *PutBucketAclInput) SetGrantWriteACP(v string) *PutBucketAclInput {
15298 s.GrantWriteACP = &v
15302 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAclOutput
15303 type PutBucketAclOutput struct {
15304 _ struct{} `type:"structure"`
15307 // String returns the string representation
15308 func (s PutBucketAclOutput) String() string {
15309 return awsutil.Prettify(s)
15312 // GoString returns the string representation
15313 func (s PutBucketAclOutput) GoString() string {
15317 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAnalyticsConfigurationRequest
15318 type PutBucketAnalyticsConfigurationInput struct {
15319 _ struct{} `type:"structure" payload:"AnalyticsConfiguration"`
15321 // The configuration and any analyses for the analytics filter.
15323 // AnalyticsConfiguration is a required field
15324 AnalyticsConfiguration *AnalyticsConfiguration `locationName:"AnalyticsConfiguration" type:"structure" required:"true"`
15326 // The name of the bucket to which an analytics configuration is stored.
15328 // Bucket is a required field
15329 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
15331 // The identifier used to represent an analytics configuration.
15333 // Id is a required field
15334 Id *string `location:"querystring" locationName:"id" type:"string" required:"true"`
15337 // String returns the string representation
15338 func (s PutBucketAnalyticsConfigurationInput) String() string {
15339 return awsutil.Prettify(s)
15342 // GoString returns the string representation
15343 func (s PutBucketAnalyticsConfigurationInput) GoString() string {
15347 // Validate inspects the fields of the type to determine if they are valid.
15348 func (s *PutBucketAnalyticsConfigurationInput) Validate() error {
15349 invalidParams := request.ErrInvalidParams{Context: "PutBucketAnalyticsConfigurationInput"}
15350 if s.AnalyticsConfiguration == nil {
15351 invalidParams.Add(request.NewErrParamRequired("AnalyticsConfiguration"))
15353 if s.Bucket == nil {
15354 invalidParams.Add(request.NewErrParamRequired("Bucket"))
15357 invalidParams.Add(request.NewErrParamRequired("Id"))
15359 if s.AnalyticsConfiguration != nil {
15360 if err := s.AnalyticsConfiguration.Validate(); err != nil {
15361 invalidParams.AddNested("AnalyticsConfiguration", err.(request.ErrInvalidParams))
15365 if invalidParams.Len() > 0 {
15366 return invalidParams
15371 // SetAnalyticsConfiguration sets the AnalyticsConfiguration field's value.
15372 func (s *PutBucketAnalyticsConfigurationInput) SetAnalyticsConfiguration(v *AnalyticsConfiguration) *PutBucketAnalyticsConfigurationInput {
15373 s.AnalyticsConfiguration = v
15377 // SetBucket sets the Bucket field's value.
15378 func (s *PutBucketAnalyticsConfigurationInput) SetBucket(v string) *PutBucketAnalyticsConfigurationInput {
15383 // SetId sets the Id field's value.
15384 func (s *PutBucketAnalyticsConfigurationInput) SetId(v string) *PutBucketAnalyticsConfigurationInput {
15389 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketAnalyticsConfigurationOutput
15390 type PutBucketAnalyticsConfigurationOutput struct {
15391 _ struct{} `type:"structure"`
15394 // String returns the string representation
15395 func (s PutBucketAnalyticsConfigurationOutput) String() string {
15396 return awsutil.Prettify(s)
15399 // GoString returns the string representation
15400 func (s PutBucketAnalyticsConfigurationOutput) GoString() string {
15404 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketCorsRequest
15405 type PutBucketCorsInput struct {
15406 _ struct{} `type:"structure" payload:"CORSConfiguration"`
15408 // Bucket is a required field
15409 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
15411 // CORSConfiguration is a required field
15412 CORSConfiguration *CORSConfiguration `locationName:"CORSConfiguration" type:"structure" required:"true"`
15415 // String returns the string representation
15416 func (s PutBucketCorsInput) String() string {
15417 return awsutil.Prettify(s)
15420 // GoString returns the string representation
15421 func (s PutBucketCorsInput) GoString() string {
15425 // Validate inspects the fields of the type to determine if they are valid.
15426 func (s *PutBucketCorsInput) Validate() error {
15427 invalidParams := request.ErrInvalidParams{Context: "PutBucketCorsInput"}
15428 if s.Bucket == nil {
15429 invalidParams.Add(request.NewErrParamRequired("Bucket"))
15431 if s.CORSConfiguration == nil {
15432 invalidParams.Add(request.NewErrParamRequired("CORSConfiguration"))
15434 if s.CORSConfiguration != nil {
15435 if err := s.CORSConfiguration.Validate(); err != nil {
15436 invalidParams.AddNested("CORSConfiguration", err.(request.ErrInvalidParams))
15440 if invalidParams.Len() > 0 {
15441 return invalidParams
15446 // SetBucket sets the Bucket field's value.
15447 func (s *PutBucketCorsInput) SetBucket(v string) *PutBucketCorsInput {
15452 // SetCORSConfiguration sets the CORSConfiguration field's value.
15453 func (s *PutBucketCorsInput) SetCORSConfiguration(v *CORSConfiguration) *PutBucketCorsInput {
15454 s.CORSConfiguration = v
15458 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketCorsOutput
15459 type PutBucketCorsOutput struct {
15460 _ struct{} `type:"structure"`
15463 // String returns the string representation
15464 func (s PutBucketCorsOutput) String() string {
15465 return awsutil.Prettify(s)
15468 // GoString returns the string representation
15469 func (s PutBucketCorsOutput) GoString() string {
15473 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketInventoryConfigurationRequest
15474 type PutBucketInventoryConfigurationInput struct {
15475 _ struct{} `type:"structure" payload:"InventoryConfiguration"`
15477 // The name of the bucket where the inventory configuration will be stored.
15479 // Bucket is a required field
15480 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
15482 // The ID used to identify the inventory configuration.
15484 // Id is a required field
15485 Id *string `location:"querystring" locationName:"id" type:"string" required:"true"`
15487 // Specifies the inventory configuration.
15489 // InventoryConfiguration is a required field
15490 InventoryConfiguration *InventoryConfiguration `locationName:"InventoryConfiguration" type:"structure" required:"true"`
15493 // String returns the string representation
15494 func (s PutBucketInventoryConfigurationInput) String() string {
15495 return awsutil.Prettify(s)
15498 // GoString returns the string representation
15499 func (s PutBucketInventoryConfigurationInput) GoString() string {
15503 // Validate inspects the fields of the type to determine if they are valid.
15504 func (s *PutBucketInventoryConfigurationInput) Validate() error {
15505 invalidParams := request.ErrInvalidParams{Context: "PutBucketInventoryConfigurationInput"}
15506 if s.Bucket == nil {
15507 invalidParams.Add(request.NewErrParamRequired("Bucket"))
15510 invalidParams.Add(request.NewErrParamRequired("Id"))
15512 if s.InventoryConfiguration == nil {
15513 invalidParams.Add(request.NewErrParamRequired("InventoryConfiguration"))
15515 if s.InventoryConfiguration != nil {
15516 if err := s.InventoryConfiguration.Validate(); err != nil {
15517 invalidParams.AddNested("InventoryConfiguration", err.(request.ErrInvalidParams))
15521 if invalidParams.Len() > 0 {
15522 return invalidParams
15527 // SetBucket sets the Bucket field's value.
15528 func (s *PutBucketInventoryConfigurationInput) SetBucket(v string) *PutBucketInventoryConfigurationInput {
15533 // SetId sets the Id field's value.
15534 func (s *PutBucketInventoryConfigurationInput) SetId(v string) *PutBucketInventoryConfigurationInput {
15539 // SetInventoryConfiguration sets the InventoryConfiguration field's value.
15540 func (s *PutBucketInventoryConfigurationInput) SetInventoryConfiguration(v *InventoryConfiguration) *PutBucketInventoryConfigurationInput {
15541 s.InventoryConfiguration = v
15545 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketInventoryConfigurationOutput
15546 type PutBucketInventoryConfigurationOutput struct {
15547 _ struct{} `type:"structure"`
15550 // String returns the string representation
15551 func (s PutBucketInventoryConfigurationOutput) String() string {
15552 return awsutil.Prettify(s)
15555 // GoString returns the string representation
15556 func (s PutBucketInventoryConfigurationOutput) GoString() string {
15560 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleConfigurationRequest
15561 type PutBucketLifecycleConfigurationInput struct {
15562 _ struct{} `type:"structure" payload:"LifecycleConfiguration"`
15564 // Bucket is a required field
15565 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
15567 LifecycleConfiguration *BucketLifecycleConfiguration `locationName:"LifecycleConfiguration" type:"structure"`
15570 // String returns the string representation
15571 func (s PutBucketLifecycleConfigurationInput) String() string {
15572 return awsutil.Prettify(s)
15575 // GoString returns the string representation
15576 func (s PutBucketLifecycleConfigurationInput) GoString() string {
15580 // Validate inspects the fields of the type to determine if they are valid.
15581 func (s *PutBucketLifecycleConfigurationInput) Validate() error {
15582 invalidParams := request.ErrInvalidParams{Context: "PutBucketLifecycleConfigurationInput"}
15583 if s.Bucket == nil {
15584 invalidParams.Add(request.NewErrParamRequired("Bucket"))
15586 if s.LifecycleConfiguration != nil {
15587 if err := s.LifecycleConfiguration.Validate(); err != nil {
15588 invalidParams.AddNested("LifecycleConfiguration", err.(request.ErrInvalidParams))
15592 if invalidParams.Len() > 0 {
15593 return invalidParams
15598 // SetBucket sets the Bucket field's value.
15599 func (s *PutBucketLifecycleConfigurationInput) SetBucket(v string) *PutBucketLifecycleConfigurationInput {
15604 // SetLifecycleConfiguration sets the LifecycleConfiguration field's value.
15605 func (s *PutBucketLifecycleConfigurationInput) SetLifecycleConfiguration(v *BucketLifecycleConfiguration) *PutBucketLifecycleConfigurationInput {
15606 s.LifecycleConfiguration = v
15610 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleConfigurationOutput
15611 type PutBucketLifecycleConfigurationOutput struct {
15612 _ struct{} `type:"structure"`
15615 // String returns the string representation
15616 func (s PutBucketLifecycleConfigurationOutput) String() string {
15617 return awsutil.Prettify(s)
15620 // GoString returns the string representation
15621 func (s PutBucketLifecycleConfigurationOutput) GoString() string {
15625 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleRequest
15626 type PutBucketLifecycleInput struct {
15627 _ struct{} `type:"structure" payload:"LifecycleConfiguration"`
15629 // Bucket is a required field
15630 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
15632 LifecycleConfiguration *LifecycleConfiguration `locationName:"LifecycleConfiguration" type:"structure"`
15635 // String returns the string representation
15636 func (s PutBucketLifecycleInput) String() string {
15637 return awsutil.Prettify(s)
15640 // GoString returns the string representation
15641 func (s PutBucketLifecycleInput) GoString() string {
15645 // Validate inspects the fields of the type to determine if they are valid.
15646 func (s *PutBucketLifecycleInput) Validate() error {
15647 invalidParams := request.ErrInvalidParams{Context: "PutBucketLifecycleInput"}
15648 if s.Bucket == nil {
15649 invalidParams.Add(request.NewErrParamRequired("Bucket"))
15651 if s.LifecycleConfiguration != nil {
15652 if err := s.LifecycleConfiguration.Validate(); err != nil {
15653 invalidParams.AddNested("LifecycleConfiguration", err.(request.ErrInvalidParams))
15657 if invalidParams.Len() > 0 {
15658 return invalidParams
15663 // SetBucket sets the Bucket field's value.
15664 func (s *PutBucketLifecycleInput) SetBucket(v string) *PutBucketLifecycleInput {
15669 // SetLifecycleConfiguration sets the LifecycleConfiguration field's value.
15670 func (s *PutBucketLifecycleInput) SetLifecycleConfiguration(v *LifecycleConfiguration) *PutBucketLifecycleInput {
15671 s.LifecycleConfiguration = v
15675 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLifecycleOutput
15676 type PutBucketLifecycleOutput struct {
15677 _ struct{} `type:"structure"`
15680 // String returns the string representation
15681 func (s PutBucketLifecycleOutput) String() string {
15682 return awsutil.Prettify(s)
15685 // GoString returns the string representation
15686 func (s PutBucketLifecycleOutput) GoString() string {
15690 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLoggingRequest
15691 type PutBucketLoggingInput struct {
15692 _ struct{} `type:"structure" payload:"BucketLoggingStatus"`
15694 // Bucket is a required field
15695 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
15697 // BucketLoggingStatus is a required field
15698 BucketLoggingStatus *BucketLoggingStatus `locationName:"BucketLoggingStatus" type:"structure" required:"true"`
15701 // String returns the string representation
15702 func (s PutBucketLoggingInput) String() string {
15703 return awsutil.Prettify(s)
15706 // GoString returns the string representation
15707 func (s PutBucketLoggingInput) GoString() string {
15711 // Validate inspects the fields of the type to determine if they are valid.
15712 func (s *PutBucketLoggingInput) Validate() error {
15713 invalidParams := request.ErrInvalidParams{Context: "PutBucketLoggingInput"}
15714 if s.Bucket == nil {
15715 invalidParams.Add(request.NewErrParamRequired("Bucket"))
15717 if s.BucketLoggingStatus == nil {
15718 invalidParams.Add(request.NewErrParamRequired("BucketLoggingStatus"))
15720 if s.BucketLoggingStatus != nil {
15721 if err := s.BucketLoggingStatus.Validate(); err != nil {
15722 invalidParams.AddNested("BucketLoggingStatus", err.(request.ErrInvalidParams))
15726 if invalidParams.Len() > 0 {
15727 return invalidParams
15732 // SetBucket sets the Bucket field's value.
15733 func (s *PutBucketLoggingInput) SetBucket(v string) *PutBucketLoggingInput {
15738 // SetBucketLoggingStatus sets the BucketLoggingStatus field's value.
15739 func (s *PutBucketLoggingInput) SetBucketLoggingStatus(v *BucketLoggingStatus) *PutBucketLoggingInput {
15740 s.BucketLoggingStatus = v
15744 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketLoggingOutput
15745 type PutBucketLoggingOutput struct {
15746 _ struct{} `type:"structure"`
15749 // String returns the string representation
15750 func (s PutBucketLoggingOutput) String() string {
15751 return awsutil.Prettify(s)
15754 // GoString returns the string representation
15755 func (s PutBucketLoggingOutput) GoString() string {
15759 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketMetricsConfigurationRequest
15760 type PutBucketMetricsConfigurationInput struct {
15761 _ struct{} `type:"structure" payload:"MetricsConfiguration"`
15763 // The name of the bucket for which the metrics configuration is set.
15765 // Bucket is a required field
15766 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
15768 // The ID used to identify the metrics configuration.
15770 // Id is a required field
15771 Id *string `location:"querystring" locationName:"id" type:"string" required:"true"`
15773 // Specifies the metrics configuration.
15775 // MetricsConfiguration is a required field
15776 MetricsConfiguration *MetricsConfiguration `locationName:"MetricsConfiguration" type:"structure" required:"true"`
15779 // String returns the string representation
15780 func (s PutBucketMetricsConfigurationInput) String() string {
15781 return awsutil.Prettify(s)
15784 // GoString returns the string representation
15785 func (s PutBucketMetricsConfigurationInput) GoString() string {
15789 // Validate inspects the fields of the type to determine if they are valid.
15790 func (s *PutBucketMetricsConfigurationInput) Validate() error {
15791 invalidParams := request.ErrInvalidParams{Context: "PutBucketMetricsConfigurationInput"}
15792 if s.Bucket == nil {
15793 invalidParams.Add(request.NewErrParamRequired("Bucket"))
15796 invalidParams.Add(request.NewErrParamRequired("Id"))
15798 if s.MetricsConfiguration == nil {
15799 invalidParams.Add(request.NewErrParamRequired("MetricsConfiguration"))
15801 if s.MetricsConfiguration != nil {
15802 if err := s.MetricsConfiguration.Validate(); err != nil {
15803 invalidParams.AddNested("MetricsConfiguration", err.(request.ErrInvalidParams))
15807 if invalidParams.Len() > 0 {
15808 return invalidParams
15813 // SetBucket sets the Bucket field's value.
15814 func (s *PutBucketMetricsConfigurationInput) SetBucket(v string) *PutBucketMetricsConfigurationInput {
15819 // SetId sets the Id field's value.
15820 func (s *PutBucketMetricsConfigurationInput) SetId(v string) *PutBucketMetricsConfigurationInput {
15825 // SetMetricsConfiguration sets the MetricsConfiguration field's value.
15826 func (s *PutBucketMetricsConfigurationInput) SetMetricsConfiguration(v *MetricsConfiguration) *PutBucketMetricsConfigurationInput {
15827 s.MetricsConfiguration = v
15831 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketMetricsConfigurationOutput
15832 type PutBucketMetricsConfigurationOutput struct {
15833 _ struct{} `type:"structure"`
15836 // String returns the string representation
15837 func (s PutBucketMetricsConfigurationOutput) String() string {
15838 return awsutil.Prettify(s)
15841 // GoString returns the string representation
15842 func (s PutBucketMetricsConfigurationOutput) GoString() string {
15846 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationConfigurationRequest
15847 type PutBucketNotificationConfigurationInput struct {
15848 _ struct{} `type:"structure" payload:"NotificationConfiguration"`
15850 // Bucket is a required field
15851 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
15853 // Container for specifying the notification configuration of the bucket. If
15854 // this element is empty, notifications are turned off on the bucket.
15856 // NotificationConfiguration is a required field
15857 NotificationConfiguration *NotificationConfiguration `locationName:"NotificationConfiguration" type:"structure" required:"true"`
15860 // String returns the string representation
15861 func (s PutBucketNotificationConfigurationInput) String() string {
15862 return awsutil.Prettify(s)
15865 // GoString returns the string representation
15866 func (s PutBucketNotificationConfigurationInput) GoString() string {
15870 // Validate inspects the fields of the type to determine if they are valid.
15871 func (s *PutBucketNotificationConfigurationInput) Validate() error {
15872 invalidParams := request.ErrInvalidParams{Context: "PutBucketNotificationConfigurationInput"}
15873 if s.Bucket == nil {
15874 invalidParams.Add(request.NewErrParamRequired("Bucket"))
15876 if s.NotificationConfiguration == nil {
15877 invalidParams.Add(request.NewErrParamRequired("NotificationConfiguration"))
15879 if s.NotificationConfiguration != nil {
15880 if err := s.NotificationConfiguration.Validate(); err != nil {
15881 invalidParams.AddNested("NotificationConfiguration", err.(request.ErrInvalidParams))
15885 if invalidParams.Len() > 0 {
15886 return invalidParams
15891 // SetBucket sets the Bucket field's value.
15892 func (s *PutBucketNotificationConfigurationInput) SetBucket(v string) *PutBucketNotificationConfigurationInput {
15897 // SetNotificationConfiguration sets the NotificationConfiguration field's value.
15898 func (s *PutBucketNotificationConfigurationInput) SetNotificationConfiguration(v *NotificationConfiguration) *PutBucketNotificationConfigurationInput {
15899 s.NotificationConfiguration = v
15903 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationConfigurationOutput
15904 type PutBucketNotificationConfigurationOutput struct {
15905 _ struct{} `type:"structure"`
15908 // String returns the string representation
15909 func (s PutBucketNotificationConfigurationOutput) String() string {
15910 return awsutil.Prettify(s)
15913 // GoString returns the string representation
15914 func (s PutBucketNotificationConfigurationOutput) GoString() string {
15918 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationRequest
15919 type PutBucketNotificationInput struct {
15920 _ struct{} `type:"structure" payload:"NotificationConfiguration"`
15922 // Bucket is a required field
15923 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
15925 // NotificationConfiguration is a required field
15926 NotificationConfiguration *NotificationConfigurationDeprecated `locationName:"NotificationConfiguration" type:"structure" required:"true"`
15929 // String returns the string representation
15930 func (s PutBucketNotificationInput) String() string {
15931 return awsutil.Prettify(s)
15934 // GoString returns the string representation
15935 func (s PutBucketNotificationInput) GoString() string {
15939 // Validate inspects the fields of the type to determine if they are valid.
15940 func (s *PutBucketNotificationInput) Validate() error {
15941 invalidParams := request.ErrInvalidParams{Context: "PutBucketNotificationInput"}
15942 if s.Bucket == nil {
15943 invalidParams.Add(request.NewErrParamRequired("Bucket"))
15945 if s.NotificationConfiguration == nil {
15946 invalidParams.Add(request.NewErrParamRequired("NotificationConfiguration"))
15949 if invalidParams.Len() > 0 {
15950 return invalidParams
15955 // SetBucket sets the Bucket field's value.
15956 func (s *PutBucketNotificationInput) SetBucket(v string) *PutBucketNotificationInput {
15961 // SetNotificationConfiguration sets the NotificationConfiguration field's value.
15962 func (s *PutBucketNotificationInput) SetNotificationConfiguration(v *NotificationConfigurationDeprecated) *PutBucketNotificationInput {
15963 s.NotificationConfiguration = v
15967 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketNotificationOutput
15968 type PutBucketNotificationOutput struct {
15969 _ struct{} `type:"structure"`
15972 // String returns the string representation
15973 func (s PutBucketNotificationOutput) String() string {
15974 return awsutil.Prettify(s)
15977 // GoString returns the string representation
15978 func (s PutBucketNotificationOutput) GoString() string {
15982 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketPolicyRequest
15983 type PutBucketPolicyInput struct {
15984 _ struct{} `type:"structure" payload:"Policy"`
15986 // Bucket is a required field
15987 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
15989 // The bucket policy as a JSON document.
15991 // Policy is a required field
15992 Policy *string `type:"string" required:"true"`
15995 // String returns the string representation
15996 func (s PutBucketPolicyInput) String() string {
15997 return awsutil.Prettify(s)
16000 // GoString returns the string representation
16001 func (s PutBucketPolicyInput) GoString() string {
16005 // Validate inspects the fields of the type to determine if they are valid.
16006 func (s *PutBucketPolicyInput) Validate() error {
16007 invalidParams := request.ErrInvalidParams{Context: "PutBucketPolicyInput"}
16008 if s.Bucket == nil {
16009 invalidParams.Add(request.NewErrParamRequired("Bucket"))
16011 if s.Policy == nil {
16012 invalidParams.Add(request.NewErrParamRequired("Policy"))
16015 if invalidParams.Len() > 0 {
16016 return invalidParams
16021 // SetBucket sets the Bucket field's value.
16022 func (s *PutBucketPolicyInput) SetBucket(v string) *PutBucketPolicyInput {
16027 // SetPolicy sets the Policy field's value.
16028 func (s *PutBucketPolicyInput) SetPolicy(v string) *PutBucketPolicyInput {
16033 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketPolicyOutput
16034 type PutBucketPolicyOutput struct {
16035 _ struct{} `type:"structure"`
16038 // String returns the string representation
16039 func (s PutBucketPolicyOutput) String() string {
16040 return awsutil.Prettify(s)
16043 // GoString returns the string representation
16044 func (s PutBucketPolicyOutput) GoString() string {
16048 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketReplicationRequest
16049 type PutBucketReplicationInput struct {
16050 _ struct{} `type:"structure" payload:"ReplicationConfiguration"`
16052 // Bucket is a required field
16053 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
16055 // Container for replication rules. You can add as many as 1,000 rules. Total
16056 // replication configuration size can be up to 2 MB.
16058 // ReplicationConfiguration is a required field
16059 ReplicationConfiguration *ReplicationConfiguration `locationName:"ReplicationConfiguration" type:"structure" required:"true"`
16062 // String returns the string representation
16063 func (s PutBucketReplicationInput) String() string {
16064 return awsutil.Prettify(s)
16067 // GoString returns the string representation
16068 func (s PutBucketReplicationInput) GoString() string {
16072 // Validate inspects the fields of the type to determine if they are valid.
16073 func (s *PutBucketReplicationInput) Validate() error {
16074 invalidParams := request.ErrInvalidParams{Context: "PutBucketReplicationInput"}
16075 if s.Bucket == nil {
16076 invalidParams.Add(request.NewErrParamRequired("Bucket"))
16078 if s.ReplicationConfiguration == nil {
16079 invalidParams.Add(request.NewErrParamRequired("ReplicationConfiguration"))
16081 if s.ReplicationConfiguration != nil {
16082 if err := s.ReplicationConfiguration.Validate(); err != nil {
16083 invalidParams.AddNested("ReplicationConfiguration", err.(request.ErrInvalidParams))
16087 if invalidParams.Len() > 0 {
16088 return invalidParams
16093 // SetBucket sets the Bucket field's value.
16094 func (s *PutBucketReplicationInput) SetBucket(v string) *PutBucketReplicationInput {
16099 // SetReplicationConfiguration sets the ReplicationConfiguration field's value.
16100 func (s *PutBucketReplicationInput) SetReplicationConfiguration(v *ReplicationConfiguration) *PutBucketReplicationInput {
16101 s.ReplicationConfiguration = v
16105 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketReplicationOutput
16106 type PutBucketReplicationOutput struct {
16107 _ struct{} `type:"structure"`
16110 // String returns the string representation
16111 func (s PutBucketReplicationOutput) String() string {
16112 return awsutil.Prettify(s)
16115 // GoString returns the string representation
16116 func (s PutBucketReplicationOutput) GoString() string {
16120 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketRequestPaymentRequest
16121 type PutBucketRequestPaymentInput struct {
16122 _ struct{} `type:"structure" payload:"RequestPaymentConfiguration"`
16124 // Bucket is a required field
16125 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
16127 // RequestPaymentConfiguration is a required field
16128 RequestPaymentConfiguration *RequestPaymentConfiguration `locationName:"RequestPaymentConfiguration" type:"structure" required:"true"`
16131 // String returns the string representation
16132 func (s PutBucketRequestPaymentInput) String() string {
16133 return awsutil.Prettify(s)
16136 // GoString returns the string representation
16137 func (s PutBucketRequestPaymentInput) GoString() string {
16141 // Validate inspects the fields of the type to determine if they are valid.
16142 func (s *PutBucketRequestPaymentInput) Validate() error {
16143 invalidParams := request.ErrInvalidParams{Context: "PutBucketRequestPaymentInput"}
16144 if s.Bucket == nil {
16145 invalidParams.Add(request.NewErrParamRequired("Bucket"))
16147 if s.RequestPaymentConfiguration == nil {
16148 invalidParams.Add(request.NewErrParamRequired("RequestPaymentConfiguration"))
16150 if s.RequestPaymentConfiguration != nil {
16151 if err := s.RequestPaymentConfiguration.Validate(); err != nil {
16152 invalidParams.AddNested("RequestPaymentConfiguration", err.(request.ErrInvalidParams))
16156 if invalidParams.Len() > 0 {
16157 return invalidParams
16162 // SetBucket sets the Bucket field's value.
16163 func (s *PutBucketRequestPaymentInput) SetBucket(v string) *PutBucketRequestPaymentInput {
16168 // SetRequestPaymentConfiguration sets the RequestPaymentConfiguration field's value.
16169 func (s *PutBucketRequestPaymentInput) SetRequestPaymentConfiguration(v *RequestPaymentConfiguration) *PutBucketRequestPaymentInput {
16170 s.RequestPaymentConfiguration = v
16174 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketRequestPaymentOutput
16175 type PutBucketRequestPaymentOutput struct {
16176 _ struct{} `type:"structure"`
16179 // String returns the string representation
16180 func (s PutBucketRequestPaymentOutput) String() string {
16181 return awsutil.Prettify(s)
16184 // GoString returns the string representation
16185 func (s PutBucketRequestPaymentOutput) GoString() string {
16189 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketTaggingRequest
16190 type PutBucketTaggingInput struct {
16191 _ struct{} `type:"structure" payload:"Tagging"`
16193 // Bucket is a required field
16194 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
16196 // Tagging is a required field
16197 Tagging *Tagging `locationName:"Tagging" type:"structure" required:"true"`
16200 // String returns the string representation
16201 func (s PutBucketTaggingInput) String() string {
16202 return awsutil.Prettify(s)
16205 // GoString returns the string representation
16206 func (s PutBucketTaggingInput) GoString() string {
16210 // Validate inspects the fields of the type to determine if they are valid.
16211 func (s *PutBucketTaggingInput) Validate() error {
16212 invalidParams := request.ErrInvalidParams{Context: "PutBucketTaggingInput"}
16213 if s.Bucket == nil {
16214 invalidParams.Add(request.NewErrParamRequired("Bucket"))
16216 if s.Tagging == nil {
16217 invalidParams.Add(request.NewErrParamRequired("Tagging"))
16219 if s.Tagging != nil {
16220 if err := s.Tagging.Validate(); err != nil {
16221 invalidParams.AddNested("Tagging", err.(request.ErrInvalidParams))
16225 if invalidParams.Len() > 0 {
16226 return invalidParams
16231 // SetBucket sets the Bucket field's value.
16232 func (s *PutBucketTaggingInput) SetBucket(v string) *PutBucketTaggingInput {
16237 // SetTagging sets the Tagging field's value.
16238 func (s *PutBucketTaggingInput) SetTagging(v *Tagging) *PutBucketTaggingInput {
16243 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketTaggingOutput
16244 type PutBucketTaggingOutput struct {
16245 _ struct{} `type:"structure"`
16248 // String returns the string representation
16249 func (s PutBucketTaggingOutput) String() string {
16250 return awsutil.Prettify(s)
16253 // GoString returns the string representation
16254 func (s PutBucketTaggingOutput) GoString() string {
16258 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketVersioningRequest
16259 type PutBucketVersioningInput struct {
16260 _ struct{} `type:"structure" payload:"VersioningConfiguration"`
16262 // Bucket is a required field
16263 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
16265 // The concatenation of the authentication device's serial number, a space,
16266 // and the value that is displayed on your authentication device.
16267 MFA *string `location:"header" locationName:"x-amz-mfa" type:"string"`
16269 // VersioningConfiguration is a required field
16270 VersioningConfiguration *VersioningConfiguration `locationName:"VersioningConfiguration" type:"structure" required:"true"`
16273 // String returns the string representation
16274 func (s PutBucketVersioningInput) String() string {
16275 return awsutil.Prettify(s)
16278 // GoString returns the string representation
16279 func (s PutBucketVersioningInput) GoString() string {
16283 // Validate inspects the fields of the type to determine if they are valid.
16284 func (s *PutBucketVersioningInput) Validate() error {
16285 invalidParams := request.ErrInvalidParams{Context: "PutBucketVersioningInput"}
16286 if s.Bucket == nil {
16287 invalidParams.Add(request.NewErrParamRequired("Bucket"))
16289 if s.VersioningConfiguration == nil {
16290 invalidParams.Add(request.NewErrParamRequired("VersioningConfiguration"))
16293 if invalidParams.Len() > 0 {
16294 return invalidParams
16299 // SetBucket sets the Bucket field's value.
16300 func (s *PutBucketVersioningInput) SetBucket(v string) *PutBucketVersioningInput {
16305 // SetMFA sets the MFA field's value.
16306 func (s *PutBucketVersioningInput) SetMFA(v string) *PutBucketVersioningInput {
16311 // SetVersioningConfiguration sets the VersioningConfiguration field's value.
16312 func (s *PutBucketVersioningInput) SetVersioningConfiguration(v *VersioningConfiguration) *PutBucketVersioningInput {
16313 s.VersioningConfiguration = v
16317 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketVersioningOutput
16318 type PutBucketVersioningOutput struct {
16319 _ struct{} `type:"structure"`
16322 // String returns the string representation
16323 func (s PutBucketVersioningOutput) String() string {
16324 return awsutil.Prettify(s)
16327 // GoString returns the string representation
16328 func (s PutBucketVersioningOutput) GoString() string {
16332 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketWebsiteRequest
16333 type PutBucketWebsiteInput struct {
16334 _ struct{} `type:"structure" payload:"WebsiteConfiguration"`
16336 // Bucket is a required field
16337 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
16339 // WebsiteConfiguration is a required field
16340 WebsiteConfiguration *WebsiteConfiguration `locationName:"WebsiteConfiguration" type:"structure" required:"true"`
16343 // String returns the string representation
16344 func (s PutBucketWebsiteInput) String() string {
16345 return awsutil.Prettify(s)
16348 // GoString returns the string representation
16349 func (s PutBucketWebsiteInput) GoString() string {
16353 // Validate inspects the fields of the type to determine if they are valid.
16354 func (s *PutBucketWebsiteInput) Validate() error {
16355 invalidParams := request.ErrInvalidParams{Context: "PutBucketWebsiteInput"}
16356 if s.Bucket == nil {
16357 invalidParams.Add(request.NewErrParamRequired("Bucket"))
16359 if s.WebsiteConfiguration == nil {
16360 invalidParams.Add(request.NewErrParamRequired("WebsiteConfiguration"))
16362 if s.WebsiteConfiguration != nil {
16363 if err := s.WebsiteConfiguration.Validate(); err != nil {
16364 invalidParams.AddNested("WebsiteConfiguration", err.(request.ErrInvalidParams))
16368 if invalidParams.Len() > 0 {
16369 return invalidParams
16374 // SetBucket sets the Bucket field's value.
16375 func (s *PutBucketWebsiteInput) SetBucket(v string) *PutBucketWebsiteInput {
16380 // SetWebsiteConfiguration sets the WebsiteConfiguration field's value.
16381 func (s *PutBucketWebsiteInput) SetWebsiteConfiguration(v *WebsiteConfiguration) *PutBucketWebsiteInput {
16382 s.WebsiteConfiguration = v
16386 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketWebsiteOutput
16387 type PutBucketWebsiteOutput struct {
16388 _ struct{} `type:"structure"`
16391 // String returns the string representation
16392 func (s PutBucketWebsiteOutput) String() string {
16393 return awsutil.Prettify(s)
16396 // GoString returns the string representation
16397 func (s PutBucketWebsiteOutput) GoString() string {
16401 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectAclRequest
16402 type PutObjectAclInput struct {
16403 _ struct{} `type:"structure" payload:"AccessControlPolicy"`
16405 // The canned ACL to apply to the object.
16406 ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`
16408 AccessControlPolicy *AccessControlPolicy `locationName:"AccessControlPolicy" type:"structure"`
16410 // Bucket is a required field
16411 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
16413 // Allows grantee the read, write, read ACP, and write ACP permissions on the
16415 GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
16417 // Allows grantee to list the objects in the bucket.
16418 GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"`
16420 // Allows grantee to read the bucket ACL.
16421 GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"`
16423 // Allows grantee to create, overwrite, and delete any object in the bucket.
16424 GrantWrite *string `location:"header" locationName:"x-amz-grant-write" type:"string"`
16426 // Allows grantee to write the ACL for the applicable bucket.
16427 GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`
16429 // Key is a required field
16430 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
16432 // Confirms that the requester knows that she or he will be charged for the
16433 // request. Bucket owners need not specify this parameter in their requests.
16434 // Documentation on downloading objects from requester pays buckets can be found
16435 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
16436 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
16438 // VersionId used to reference a specific version of the object.
16439 VersionId *string `location:"querystring" locationName:"versionId" type:"string"`
16442 // String returns the string representation
16443 func (s PutObjectAclInput) String() string {
16444 return awsutil.Prettify(s)
16447 // GoString returns the string representation
16448 func (s PutObjectAclInput) GoString() string {
16452 // Validate inspects the fields of the type to determine if they are valid.
16453 func (s *PutObjectAclInput) Validate() error {
16454 invalidParams := request.ErrInvalidParams{Context: "PutObjectAclInput"}
16455 if s.Bucket == nil {
16456 invalidParams.Add(request.NewErrParamRequired("Bucket"))
16459 invalidParams.Add(request.NewErrParamRequired("Key"))
16461 if s.Key != nil && len(*s.Key) < 1 {
16462 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
16464 if s.AccessControlPolicy != nil {
16465 if err := s.AccessControlPolicy.Validate(); err != nil {
16466 invalidParams.AddNested("AccessControlPolicy", err.(request.ErrInvalidParams))
16470 if invalidParams.Len() > 0 {
16471 return invalidParams
16476 // SetACL sets the ACL field's value.
16477 func (s *PutObjectAclInput) SetACL(v string) *PutObjectAclInput {
16482 // SetAccessControlPolicy sets the AccessControlPolicy field's value.
16483 func (s *PutObjectAclInput) SetAccessControlPolicy(v *AccessControlPolicy) *PutObjectAclInput {
16484 s.AccessControlPolicy = v
16488 // SetBucket sets the Bucket field's value.
16489 func (s *PutObjectAclInput) SetBucket(v string) *PutObjectAclInput {
16494 // SetGrantFullControl sets the GrantFullControl field's value.
16495 func (s *PutObjectAclInput) SetGrantFullControl(v string) *PutObjectAclInput {
16496 s.GrantFullControl = &v
16500 // SetGrantRead sets the GrantRead field's value.
16501 func (s *PutObjectAclInput) SetGrantRead(v string) *PutObjectAclInput {
16506 // SetGrantReadACP sets the GrantReadACP field's value.
16507 func (s *PutObjectAclInput) SetGrantReadACP(v string) *PutObjectAclInput {
16508 s.GrantReadACP = &v
16512 // SetGrantWrite sets the GrantWrite field's value.
16513 func (s *PutObjectAclInput) SetGrantWrite(v string) *PutObjectAclInput {
16518 // SetGrantWriteACP sets the GrantWriteACP field's value.
16519 func (s *PutObjectAclInput) SetGrantWriteACP(v string) *PutObjectAclInput {
16520 s.GrantWriteACP = &v
16524 // SetKey sets the Key field's value.
16525 func (s *PutObjectAclInput) SetKey(v string) *PutObjectAclInput {
16530 // SetRequestPayer sets the RequestPayer field's value.
16531 func (s *PutObjectAclInput) SetRequestPayer(v string) *PutObjectAclInput {
16532 s.RequestPayer = &v
16536 // SetVersionId sets the VersionId field's value.
16537 func (s *PutObjectAclInput) SetVersionId(v string) *PutObjectAclInput {
16542 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectAclOutput
16543 type PutObjectAclOutput struct {
16544 _ struct{} `type:"structure"`
16546 // If present, indicates that the requester was successfully charged for the
16548 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
16551 // String returns the string representation
16552 func (s PutObjectAclOutput) String() string {
16553 return awsutil.Prettify(s)
16556 // GoString returns the string representation
16557 func (s PutObjectAclOutput) GoString() string {
16561 // SetRequestCharged sets the RequestCharged field's value.
16562 func (s *PutObjectAclOutput) SetRequestCharged(v string) *PutObjectAclOutput {
16563 s.RequestCharged = &v
16567 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectRequest
16568 type PutObjectInput struct {
16569 _ struct{} `type:"structure" payload:"Body"`
16571 // The canned ACL to apply to the object.
16572 ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`
16575 Body io.ReadSeeker `type:"blob"`
16577 // Name of the bucket to which the PUT operation was initiated.
16579 // Bucket is a required field
16580 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
16582 // Specifies caching behavior along the request/reply chain.
16583 CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"`
16585 // Specifies presentational information for the object.
16586 ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`
16588 // Specifies what content encodings have been applied to the object and thus
16589 // what decoding mechanisms must be applied to obtain the media-type referenced
16590 // by the Content-Type header field.
16591 ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"`
16593 // The language the content is in.
16594 ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`
16596 // Size of the body in bytes. This parameter is useful when the size of the
16597 // body cannot be determined automatically.
16598 ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"`
16600 // A standard MIME type describing the format of the object data.
16601 ContentType *string `location:"header" locationName:"Content-Type" type:"string"`
16603 // The date and time at which the object is no longer cacheable.
16604 Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp" timestampFormat:"rfc822"`
16606 // Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
16607 GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`
16609 // Allows grantee to read the object data and its metadata.
16610 GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"`
16612 // Allows grantee to read the object ACL.
16613 GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"`
16615 // Allows grantee to write the ACL for the applicable object.
16616 GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`
16618 // Object key for which the PUT operation was initiated.
16620 // Key is a required field
16621 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
16623 // A map of metadata to store with the object in S3.
16624 Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`
16626 // Confirms that the requester knows that she or he will be charged for the
16627 // request. Bucket owners need not specify this parameter in their requests.
16628 // Documentation on downloading objects from requester pays buckets can be found
16629 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
16630 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
16632 // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
16633 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
16635 // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
16636 // data. This value is used to store the object and then it is discarded; Amazon
16637 // does not store the encryption key. The key must be appropriate for use with
16638 // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
16640 SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"`
16642 // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
16643 // Amazon S3 uses this header for a message integrity check to ensure the encryption
16644 // key was transmitted without error.
16645 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
16647 // Specifies the AWS KMS key ID to use for object encryption. All GET and PUT
16648 // requests for an object protected by AWS KMS will fail if not made via SSL
16649 // or using SigV4. Documentation on configuring any of the officially supported
16650 // AWS SDKs and CLI can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version
16651 SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
16653 // The Server-side encryption algorithm used when storing this object in S3
16654 // (e.g., AES256, aws:kms).
16655 ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
16657 // The type of storage to use for the object. Defaults to 'STANDARD'.
16658 StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`
16660 // The tag-set for the object. The tag-set must be encoded as URL Query parameters
16661 Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"`
16663 // If the bucket is configured as a website, redirects requests for this object
16664 // to another object in the same bucket or to an external URL. Amazon S3 stores
16665 // the value of this header in the object metadata.
16666 WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"`
16669 // String returns the string representation
16670 func (s PutObjectInput) String() string {
16671 return awsutil.Prettify(s)
16674 // GoString returns the string representation
16675 func (s PutObjectInput) GoString() string {
16679 // Validate inspects the fields of the type to determine if they are valid.
16680 func (s *PutObjectInput) Validate() error {
16681 invalidParams := request.ErrInvalidParams{Context: "PutObjectInput"}
16682 if s.Bucket == nil {
16683 invalidParams.Add(request.NewErrParamRequired("Bucket"))
16686 invalidParams.Add(request.NewErrParamRequired("Key"))
16688 if s.Key != nil && len(*s.Key) < 1 {
16689 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
16692 if invalidParams.Len() > 0 {
16693 return invalidParams
16698 // SetACL sets the ACL field's value.
16699 func (s *PutObjectInput) SetACL(v string) *PutObjectInput {
16704 // SetBody sets the Body field's value.
16705 func (s *PutObjectInput) SetBody(v io.ReadSeeker) *PutObjectInput {
16710 // SetBucket sets the Bucket field's value.
16711 func (s *PutObjectInput) SetBucket(v string) *PutObjectInput {
16716 // SetCacheControl sets the CacheControl field's value.
16717 func (s *PutObjectInput) SetCacheControl(v string) *PutObjectInput {
16718 s.CacheControl = &v
16722 // SetContentDisposition sets the ContentDisposition field's value.
16723 func (s *PutObjectInput) SetContentDisposition(v string) *PutObjectInput {
16724 s.ContentDisposition = &v
16728 // SetContentEncoding sets the ContentEncoding field's value.
16729 func (s *PutObjectInput) SetContentEncoding(v string) *PutObjectInput {
16730 s.ContentEncoding = &v
16734 // SetContentLanguage sets the ContentLanguage field's value.
16735 func (s *PutObjectInput) SetContentLanguage(v string) *PutObjectInput {
16736 s.ContentLanguage = &v
16740 // SetContentLength sets the ContentLength field's value.
16741 func (s *PutObjectInput) SetContentLength(v int64) *PutObjectInput {
16742 s.ContentLength = &v
16746 // SetContentType sets the ContentType field's value.
16747 func (s *PutObjectInput) SetContentType(v string) *PutObjectInput {
16752 // SetExpires sets the Expires field's value.
16753 func (s *PutObjectInput) SetExpires(v time.Time) *PutObjectInput {
16758 // SetGrantFullControl sets the GrantFullControl field's value.
16759 func (s *PutObjectInput) SetGrantFullControl(v string) *PutObjectInput {
16760 s.GrantFullControl = &v
16764 // SetGrantRead sets the GrantRead field's value.
16765 func (s *PutObjectInput) SetGrantRead(v string) *PutObjectInput {
16770 // SetGrantReadACP sets the GrantReadACP field's value.
16771 func (s *PutObjectInput) SetGrantReadACP(v string) *PutObjectInput {
16772 s.GrantReadACP = &v
16776 // SetGrantWriteACP sets the GrantWriteACP field's value.
16777 func (s *PutObjectInput) SetGrantWriteACP(v string) *PutObjectInput {
16778 s.GrantWriteACP = &v
16782 // SetKey sets the Key field's value.
16783 func (s *PutObjectInput) SetKey(v string) *PutObjectInput {
16788 // SetMetadata sets the Metadata field's value.
16789 func (s *PutObjectInput) SetMetadata(v map[string]*string) *PutObjectInput {
16794 // SetRequestPayer sets the RequestPayer field's value.
16795 func (s *PutObjectInput) SetRequestPayer(v string) *PutObjectInput {
16796 s.RequestPayer = &v
16800 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
16801 func (s *PutObjectInput) SetSSECustomerAlgorithm(v string) *PutObjectInput {
16802 s.SSECustomerAlgorithm = &v
16806 // SetSSECustomerKey sets the SSECustomerKey field's value.
16807 func (s *PutObjectInput) SetSSECustomerKey(v string) *PutObjectInput {
16808 s.SSECustomerKey = &v
16812 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
16813 func (s *PutObjectInput) SetSSECustomerKeyMD5(v string) *PutObjectInput {
16814 s.SSECustomerKeyMD5 = &v
16818 // SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
16819 func (s *PutObjectInput) SetSSEKMSKeyId(v string) *PutObjectInput {
16824 // SetServerSideEncryption sets the ServerSideEncryption field's value.
16825 func (s *PutObjectInput) SetServerSideEncryption(v string) *PutObjectInput {
16826 s.ServerSideEncryption = &v
16830 // SetStorageClass sets the StorageClass field's value.
16831 func (s *PutObjectInput) SetStorageClass(v string) *PutObjectInput {
16832 s.StorageClass = &v
16836 // SetTagging sets the Tagging field's value.
16837 func (s *PutObjectInput) SetTagging(v string) *PutObjectInput {
16842 // SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.
16843 func (s *PutObjectInput) SetWebsiteRedirectLocation(v string) *PutObjectInput {
16844 s.WebsiteRedirectLocation = &v
16848 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectOutput
16849 type PutObjectOutput struct {
16850 _ struct{} `type:"structure"`
16852 // Entity tag for the uploaded object.
16853 ETag *string `location:"header" locationName:"ETag" type:"string"`
16855 // If the object expiration is configured, this will contain the expiration
16856 // date (expiry-date) and rule ID (rule-id). The value of rule-id is URL encoded.
16857 Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"`
16859 // If present, indicates that the requester was successfully charged for the
16861 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
16863 // If server-side encryption with a customer-provided encryption key was requested,
16864 // the response will include this header confirming the encryption algorithm
16866 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
16868 // If server-side encryption with a customer-provided encryption key was requested,
16869 // the response will include this header to provide round trip message integrity
16870 // verification of the customer-provided encryption key.
16871 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
16873 // If present, specifies the ID of the AWS Key Management Service (KMS) master
16874 // encryption key that was used for the object.
16875 SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
16877 // The Server-side encryption algorithm used when storing this object in S3
16878 // (e.g., AES256, aws:kms).
16879 ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
16881 // Version of the object.
16882 VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
16885 // String returns the string representation
16886 func (s PutObjectOutput) String() string {
16887 return awsutil.Prettify(s)
16890 // GoString returns the string representation
16891 func (s PutObjectOutput) GoString() string {
16895 // SetETag sets the ETag field's value.
16896 func (s *PutObjectOutput) SetETag(v string) *PutObjectOutput {
16901 // SetExpiration sets the Expiration field's value.
16902 func (s *PutObjectOutput) SetExpiration(v string) *PutObjectOutput {
16907 // SetRequestCharged sets the RequestCharged field's value.
16908 func (s *PutObjectOutput) SetRequestCharged(v string) *PutObjectOutput {
16909 s.RequestCharged = &v
16913 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
16914 func (s *PutObjectOutput) SetSSECustomerAlgorithm(v string) *PutObjectOutput {
16915 s.SSECustomerAlgorithm = &v
16919 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
16920 func (s *PutObjectOutput) SetSSECustomerKeyMD5(v string) *PutObjectOutput {
16921 s.SSECustomerKeyMD5 = &v
16925 // SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
16926 func (s *PutObjectOutput) SetSSEKMSKeyId(v string) *PutObjectOutput {
16931 // SetServerSideEncryption sets the ServerSideEncryption field's value.
16932 func (s *PutObjectOutput) SetServerSideEncryption(v string) *PutObjectOutput {
16933 s.ServerSideEncryption = &v
16937 // SetVersionId sets the VersionId field's value.
16938 func (s *PutObjectOutput) SetVersionId(v string) *PutObjectOutput {
16943 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectTaggingRequest
16944 type PutObjectTaggingInput struct {
16945 _ struct{} `type:"structure" payload:"Tagging"`
16947 // Bucket is a required field
16948 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
16950 // Key is a required field
16951 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
16953 // Tagging is a required field
16954 Tagging *Tagging `locationName:"Tagging" type:"structure" required:"true"`
16956 VersionId *string `location:"querystring" locationName:"versionId" type:"string"`
16959 // String returns the string representation
16960 func (s PutObjectTaggingInput) String() string {
16961 return awsutil.Prettify(s)
16964 // GoString returns the string representation
16965 func (s PutObjectTaggingInput) GoString() string {
16969 // Validate inspects the fields of the type to determine if they are valid.
16970 func (s *PutObjectTaggingInput) Validate() error {
16971 invalidParams := request.ErrInvalidParams{Context: "PutObjectTaggingInput"}
16972 if s.Bucket == nil {
16973 invalidParams.Add(request.NewErrParamRequired("Bucket"))
16976 invalidParams.Add(request.NewErrParamRequired("Key"))
16978 if s.Key != nil && len(*s.Key) < 1 {
16979 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
16981 if s.Tagging == nil {
16982 invalidParams.Add(request.NewErrParamRequired("Tagging"))
16984 if s.Tagging != nil {
16985 if err := s.Tagging.Validate(); err != nil {
16986 invalidParams.AddNested("Tagging", err.(request.ErrInvalidParams))
16990 if invalidParams.Len() > 0 {
16991 return invalidParams
16996 // SetBucket sets the Bucket field's value.
16997 func (s *PutObjectTaggingInput) SetBucket(v string) *PutObjectTaggingInput {
17002 // SetKey sets the Key field's value.
17003 func (s *PutObjectTaggingInput) SetKey(v string) *PutObjectTaggingInput {
17008 // SetTagging sets the Tagging field's value.
17009 func (s *PutObjectTaggingInput) SetTagging(v *Tagging) *PutObjectTaggingInput {
17014 // SetVersionId sets the VersionId field's value.
17015 func (s *PutObjectTaggingInput) SetVersionId(v string) *PutObjectTaggingInput {
17020 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObjectTaggingOutput
17021 type PutObjectTaggingOutput struct {
17022 _ struct{} `type:"structure"`
17024 VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`
17027 // String returns the string representation
17028 func (s PutObjectTaggingOutput) String() string {
17029 return awsutil.Prettify(s)
17032 // GoString returns the string representation
17033 func (s PutObjectTaggingOutput) GoString() string {
17037 // SetVersionId sets the VersionId field's value.
17038 func (s *PutObjectTaggingOutput) SetVersionId(v string) *PutObjectTaggingOutput {
17043 // Container for specifying an configuration when you want Amazon S3 to publish
17044 // events to an Amazon Simple Queue Service (Amazon SQS) queue.
17045 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/QueueConfiguration
17046 type QueueConfiguration struct {
17047 _ struct{} `type:"structure"`
17049 // Events is a required field
17050 Events []*string `locationName:"Event" type:"list" flattened:"true" required:"true"`
17052 // Container for object key name filtering rules. For information about key
17053 // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html)
17054 Filter *NotificationConfigurationFilter `type:"structure"`
17056 // Optional unique identifier for configurations in a notification configuration.
17057 // If you don't provide one, Amazon S3 will assign an ID.
17058 Id *string `type:"string"`
17060 // Amazon SQS queue ARN to which Amazon S3 will publish a message when it detects
17061 // events of specified type.
17063 // QueueArn is a required field
17064 QueueArn *string `locationName:"Queue" type:"string" required:"true"`
17067 // String returns the string representation
17068 func (s QueueConfiguration) String() string {
17069 return awsutil.Prettify(s)
17072 // GoString returns the string representation
17073 func (s QueueConfiguration) GoString() string {
17077 // Validate inspects the fields of the type to determine if they are valid.
17078 func (s *QueueConfiguration) Validate() error {
17079 invalidParams := request.ErrInvalidParams{Context: "QueueConfiguration"}
17080 if s.Events == nil {
17081 invalidParams.Add(request.NewErrParamRequired("Events"))
17083 if s.QueueArn == nil {
17084 invalidParams.Add(request.NewErrParamRequired("QueueArn"))
17087 if invalidParams.Len() > 0 {
17088 return invalidParams
17093 // SetEvents sets the Events field's value.
17094 func (s *QueueConfiguration) SetEvents(v []*string) *QueueConfiguration {
17099 // SetFilter sets the Filter field's value.
17100 func (s *QueueConfiguration) SetFilter(v *NotificationConfigurationFilter) *QueueConfiguration {
17105 // SetId sets the Id field's value.
17106 func (s *QueueConfiguration) SetId(v string) *QueueConfiguration {
17111 // SetQueueArn sets the QueueArn field's value.
17112 func (s *QueueConfiguration) SetQueueArn(v string) *QueueConfiguration {
17117 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/QueueConfigurationDeprecated
17118 type QueueConfigurationDeprecated struct {
17119 _ struct{} `type:"structure"`
17121 // Bucket event for which to send notifications.
17122 Event *string `deprecated:"true" type:"string" enum:"Event"`
17124 Events []*string `locationName:"Event" type:"list" flattened:"true"`
17126 // Optional unique identifier for configurations in a notification configuration.
17127 // If you don't provide one, Amazon S3 will assign an ID.
17128 Id *string `type:"string"`
17130 Queue *string `type:"string"`
17133 // String returns the string representation
17134 func (s QueueConfigurationDeprecated) String() string {
17135 return awsutil.Prettify(s)
17138 // GoString returns the string representation
17139 func (s QueueConfigurationDeprecated) GoString() string {
17143 // SetEvent sets the Event field's value.
17144 func (s *QueueConfigurationDeprecated) SetEvent(v string) *QueueConfigurationDeprecated {
17149 // SetEvents sets the Events field's value.
17150 func (s *QueueConfigurationDeprecated) SetEvents(v []*string) *QueueConfigurationDeprecated {
17155 // SetId sets the Id field's value.
17156 func (s *QueueConfigurationDeprecated) SetId(v string) *QueueConfigurationDeprecated {
17161 // SetQueue sets the Queue field's value.
17162 func (s *QueueConfigurationDeprecated) SetQueue(v string) *QueueConfigurationDeprecated {
17167 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Redirect
17168 type Redirect struct {
17169 _ struct{} `type:"structure"`
17171 // The host name to use in the redirect request.
17172 HostName *string `type:"string"`
17174 // The HTTP redirect code to use on the response. Not required if one of the
17175 // siblings is present.
17176 HttpRedirectCode *string `type:"string"`
17178 // Protocol to use (http, https) when redirecting requests. The default is the
17179 // protocol that is used in the original request.
17180 Protocol *string `type:"string" enum:"Protocol"`
17182 // The object key prefix to use in the redirect request. For example, to redirect
17183 // requests for all pages with prefix docs/ (objects in the docs/ folder) to
17184 // documents/, you can set a condition block with KeyPrefixEquals set to docs/
17185 // and in the Redirect set ReplaceKeyPrefixWith to /documents. Not required
17186 // if one of the siblings is present. Can be present only if ReplaceKeyWith
17187 // is not provided.
17188 ReplaceKeyPrefixWith *string `type:"string"`
17190 // The specific object key to use in the redirect request. For example, redirect
17191 // request to error.html. Not required if one of the sibling is present. Can
17192 // be present only if ReplaceKeyPrefixWith is not provided.
17193 ReplaceKeyWith *string `type:"string"`
17196 // String returns the string representation
17197 func (s Redirect) String() string {
17198 return awsutil.Prettify(s)
17201 // GoString returns the string representation
17202 func (s Redirect) GoString() string {
17206 // SetHostName sets the HostName field's value.
17207 func (s *Redirect) SetHostName(v string) *Redirect {
17212 // SetHttpRedirectCode sets the HttpRedirectCode field's value.
17213 func (s *Redirect) SetHttpRedirectCode(v string) *Redirect {
17214 s.HttpRedirectCode = &v
17218 // SetProtocol sets the Protocol field's value.
17219 func (s *Redirect) SetProtocol(v string) *Redirect {
17224 // SetReplaceKeyPrefixWith sets the ReplaceKeyPrefixWith field's value.
17225 func (s *Redirect) SetReplaceKeyPrefixWith(v string) *Redirect {
17226 s.ReplaceKeyPrefixWith = &v
17230 // SetReplaceKeyWith sets the ReplaceKeyWith field's value.
17231 func (s *Redirect) SetReplaceKeyWith(v string) *Redirect {
17232 s.ReplaceKeyWith = &v
17236 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RedirectAllRequestsTo
17237 type RedirectAllRequestsTo struct {
17238 _ struct{} `type:"structure"`
17240 // Name of the host where requests will be redirected.
17242 // HostName is a required field
17243 HostName *string `type:"string" required:"true"`
17245 // Protocol to use (http, https) when redirecting requests. The default is the
17246 // protocol that is used in the original request.
17247 Protocol *string `type:"string" enum:"Protocol"`
17250 // String returns the string representation
17251 func (s RedirectAllRequestsTo) String() string {
17252 return awsutil.Prettify(s)
17255 // GoString returns the string representation
17256 func (s RedirectAllRequestsTo) GoString() string {
17260 // Validate inspects the fields of the type to determine if they are valid.
17261 func (s *RedirectAllRequestsTo) Validate() error {
17262 invalidParams := request.ErrInvalidParams{Context: "RedirectAllRequestsTo"}
17263 if s.HostName == nil {
17264 invalidParams.Add(request.NewErrParamRequired("HostName"))
17267 if invalidParams.Len() > 0 {
17268 return invalidParams
17273 // SetHostName sets the HostName field's value.
17274 func (s *RedirectAllRequestsTo) SetHostName(v string) *RedirectAllRequestsTo {
17279 // SetProtocol sets the Protocol field's value.
17280 func (s *RedirectAllRequestsTo) SetProtocol(v string) *RedirectAllRequestsTo {
17285 // Container for replication rules. You can add as many as 1,000 rules. Total
17286 // replication configuration size can be up to 2 MB.
17287 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ReplicationConfiguration
17288 type ReplicationConfiguration struct {
17289 _ struct{} `type:"structure"`
17291 // Amazon Resource Name (ARN) of an IAM role for Amazon S3 to assume when replicating
17294 // Role is a required field
17295 Role *string `type:"string" required:"true"`
17297 // Container for information about a particular replication rule. Replication
17298 // configuration must have at least one rule and can contain up to 1,000 rules.
17300 // Rules is a required field
17301 Rules []*ReplicationRule `locationName:"Rule" type:"list" flattened:"true" required:"true"`
17304 // String returns the string representation
17305 func (s ReplicationConfiguration) String() string {
17306 return awsutil.Prettify(s)
17309 // GoString returns the string representation
17310 func (s ReplicationConfiguration) GoString() string {
17314 // Validate inspects the fields of the type to determine if they are valid.
17315 func (s *ReplicationConfiguration) Validate() error {
17316 invalidParams := request.ErrInvalidParams{Context: "ReplicationConfiguration"}
17318 invalidParams.Add(request.NewErrParamRequired("Role"))
17320 if s.Rules == nil {
17321 invalidParams.Add(request.NewErrParamRequired("Rules"))
17323 if s.Rules != nil {
17324 for i, v := range s.Rules {
17328 if err := v.Validate(); err != nil {
17329 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Rules", i), err.(request.ErrInvalidParams))
17334 if invalidParams.Len() > 0 {
17335 return invalidParams
17340 // SetRole sets the Role field's value.
17341 func (s *ReplicationConfiguration) SetRole(v string) *ReplicationConfiguration {
17346 // SetRules sets the Rules field's value.
17347 func (s *ReplicationConfiguration) SetRules(v []*ReplicationRule) *ReplicationConfiguration {
17352 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ReplicationRule
17353 type ReplicationRule struct {
17354 _ struct{} `type:"structure"`
17356 // Destination is a required field
17357 Destination *Destination `type:"structure" required:"true"`
17359 // Unique identifier for the rule. The value cannot be longer than 255 characters.
17360 ID *string `type:"string"`
17362 // Object keyname prefix identifying one or more objects to which the rule applies.
17363 // Maximum prefix length can be up to 1,024 characters. Overlapping prefixes
17364 // are not supported.
17366 // Prefix is a required field
17367 Prefix *string `type:"string" required:"true"`
17369 // The rule is ignored if status is not Enabled.
17371 // Status is a required field
17372 Status *string `type:"string" required:"true" enum:"ReplicationRuleStatus"`
17375 // String returns the string representation
17376 func (s ReplicationRule) String() string {
17377 return awsutil.Prettify(s)
17380 // GoString returns the string representation
17381 func (s ReplicationRule) GoString() string {
17385 // Validate inspects the fields of the type to determine if they are valid.
17386 func (s *ReplicationRule) Validate() error {
17387 invalidParams := request.ErrInvalidParams{Context: "ReplicationRule"}
17388 if s.Destination == nil {
17389 invalidParams.Add(request.NewErrParamRequired("Destination"))
17391 if s.Prefix == nil {
17392 invalidParams.Add(request.NewErrParamRequired("Prefix"))
17394 if s.Status == nil {
17395 invalidParams.Add(request.NewErrParamRequired("Status"))
17397 if s.Destination != nil {
17398 if err := s.Destination.Validate(); err != nil {
17399 invalidParams.AddNested("Destination", err.(request.ErrInvalidParams))
17403 if invalidParams.Len() > 0 {
17404 return invalidParams
17409 // SetDestination sets the Destination field's value.
17410 func (s *ReplicationRule) SetDestination(v *Destination) *ReplicationRule {
17415 // SetID sets the ID field's value.
17416 func (s *ReplicationRule) SetID(v string) *ReplicationRule {
17421 // SetPrefix sets the Prefix field's value.
17422 func (s *ReplicationRule) SetPrefix(v string) *ReplicationRule {
17427 // SetStatus sets the Status field's value.
17428 func (s *ReplicationRule) SetStatus(v string) *ReplicationRule {
17433 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RequestPaymentConfiguration
17434 type RequestPaymentConfiguration struct {
17435 _ struct{} `type:"structure"`
17437 // Specifies who pays for the download and request fees.
17439 // Payer is a required field
17440 Payer *string `type:"string" required:"true" enum:"Payer"`
17443 // String returns the string representation
17444 func (s RequestPaymentConfiguration) String() string {
17445 return awsutil.Prettify(s)
17448 // GoString returns the string representation
17449 func (s RequestPaymentConfiguration) GoString() string {
17453 // Validate inspects the fields of the type to determine if they are valid.
17454 func (s *RequestPaymentConfiguration) Validate() error {
17455 invalidParams := request.ErrInvalidParams{Context: "RequestPaymentConfiguration"}
17456 if s.Payer == nil {
17457 invalidParams.Add(request.NewErrParamRequired("Payer"))
17460 if invalidParams.Len() > 0 {
17461 return invalidParams
17466 // SetPayer sets the Payer field's value.
17467 func (s *RequestPaymentConfiguration) SetPayer(v string) *RequestPaymentConfiguration {
17472 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObjectRequest
17473 type RestoreObjectInput struct {
17474 _ struct{} `type:"structure" payload:"RestoreRequest"`
17476 // Bucket is a required field
17477 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
17479 // Key is a required field
17480 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
17482 // Confirms that the requester knows that she or he will be charged for the
17483 // request. Bucket owners need not specify this parameter in their requests.
17484 // Documentation on downloading objects from requester pays buckets can be found
17485 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
17486 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
17488 RestoreRequest *RestoreRequest `locationName:"RestoreRequest" type:"structure"`
17490 VersionId *string `location:"querystring" locationName:"versionId" type:"string"`
17493 // String returns the string representation
17494 func (s RestoreObjectInput) String() string {
17495 return awsutil.Prettify(s)
17498 // GoString returns the string representation
17499 func (s RestoreObjectInput) GoString() string {
17503 // Validate inspects the fields of the type to determine if they are valid.
17504 func (s *RestoreObjectInput) Validate() error {
17505 invalidParams := request.ErrInvalidParams{Context: "RestoreObjectInput"}
17506 if s.Bucket == nil {
17507 invalidParams.Add(request.NewErrParamRequired("Bucket"))
17510 invalidParams.Add(request.NewErrParamRequired("Key"))
17512 if s.Key != nil && len(*s.Key) < 1 {
17513 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
17515 if s.RestoreRequest != nil {
17516 if err := s.RestoreRequest.Validate(); err != nil {
17517 invalidParams.AddNested("RestoreRequest", err.(request.ErrInvalidParams))
17521 if invalidParams.Len() > 0 {
17522 return invalidParams
17527 // SetBucket sets the Bucket field's value.
17528 func (s *RestoreObjectInput) SetBucket(v string) *RestoreObjectInput {
17533 // SetKey sets the Key field's value.
17534 func (s *RestoreObjectInput) SetKey(v string) *RestoreObjectInput {
17539 // SetRequestPayer sets the RequestPayer field's value.
17540 func (s *RestoreObjectInput) SetRequestPayer(v string) *RestoreObjectInput {
17541 s.RequestPayer = &v
17545 // SetRestoreRequest sets the RestoreRequest field's value.
17546 func (s *RestoreObjectInput) SetRestoreRequest(v *RestoreRequest) *RestoreObjectInput {
17547 s.RestoreRequest = v
17551 // SetVersionId sets the VersionId field's value.
17552 func (s *RestoreObjectInput) SetVersionId(v string) *RestoreObjectInput {
17557 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreObjectOutput
17558 type RestoreObjectOutput struct {
17559 _ struct{} `type:"structure"`
17561 // If present, indicates that the requester was successfully charged for the
17563 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
17566 // String returns the string representation
17567 func (s RestoreObjectOutput) String() string {
17568 return awsutil.Prettify(s)
17571 // GoString returns the string representation
17572 func (s RestoreObjectOutput) GoString() string {
17576 // SetRequestCharged sets the RequestCharged field's value.
17577 func (s *RestoreObjectOutput) SetRequestCharged(v string) *RestoreObjectOutput {
17578 s.RequestCharged = &v
17582 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RestoreRequest
17583 type RestoreRequest struct {
17584 _ struct{} `type:"structure"`
17586 // Lifetime of the active copy in days
17588 // Days is a required field
17589 Days *int64 `type:"integer" required:"true"`
17591 // Glacier related prameters pertaining to this job.
17592 GlacierJobParameters *GlacierJobParameters `type:"structure"`
17595 // String returns the string representation
17596 func (s RestoreRequest) String() string {
17597 return awsutil.Prettify(s)
17600 // GoString returns the string representation
17601 func (s RestoreRequest) GoString() string {
17605 // Validate inspects the fields of the type to determine if they are valid.
17606 func (s *RestoreRequest) Validate() error {
17607 invalidParams := request.ErrInvalidParams{Context: "RestoreRequest"}
17609 invalidParams.Add(request.NewErrParamRequired("Days"))
17611 if s.GlacierJobParameters != nil {
17612 if err := s.GlacierJobParameters.Validate(); err != nil {
17613 invalidParams.AddNested("GlacierJobParameters", err.(request.ErrInvalidParams))
17617 if invalidParams.Len() > 0 {
17618 return invalidParams
17623 // SetDays sets the Days field's value.
17624 func (s *RestoreRequest) SetDays(v int64) *RestoreRequest {
17629 // SetGlacierJobParameters sets the GlacierJobParameters field's value.
17630 func (s *RestoreRequest) SetGlacierJobParameters(v *GlacierJobParameters) *RestoreRequest {
17631 s.GlacierJobParameters = v
17635 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/RoutingRule
17636 type RoutingRule struct {
17637 _ struct{} `type:"structure"`
17639 // A container for describing a condition that must be met for the specified
17640 // redirect to apply. For example, 1. If request is for pages in the /docs folder,
17641 // redirect to the /documents folder. 2. If request results in HTTP error 4xx,
17642 // redirect request to another host where you might process the error.
17643 Condition *Condition `type:"structure"`
17645 // Container for redirect information. You can redirect requests to another
17646 // host, to another page, or with another protocol. In the event of an error,
17647 // you can can specify a different error code to return.
17649 // Redirect is a required field
17650 Redirect *Redirect `type:"structure" required:"true"`
17653 // String returns the string representation
17654 func (s RoutingRule) String() string {
17655 return awsutil.Prettify(s)
17658 // GoString returns the string representation
17659 func (s RoutingRule) GoString() string {
17663 // Validate inspects the fields of the type to determine if they are valid.
17664 func (s *RoutingRule) Validate() error {
17665 invalidParams := request.ErrInvalidParams{Context: "RoutingRule"}
17666 if s.Redirect == nil {
17667 invalidParams.Add(request.NewErrParamRequired("Redirect"))
17670 if invalidParams.Len() > 0 {
17671 return invalidParams
17676 // SetCondition sets the Condition field's value.
17677 func (s *RoutingRule) SetCondition(v *Condition) *RoutingRule {
17682 // SetRedirect sets the Redirect field's value.
17683 func (s *RoutingRule) SetRedirect(v *Redirect) *RoutingRule {
17688 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Rule
17690 _ struct{} `type:"structure"`
17692 // Specifies the days since the initiation of an Incomplete Multipart Upload
17693 // that Lifecycle will wait before permanently removing all parts of the upload.
17694 AbortIncompleteMultipartUpload *AbortIncompleteMultipartUpload `type:"structure"`
17696 Expiration *LifecycleExpiration `type:"structure"`
17698 // Unique identifier for the rule. The value cannot be longer than 255 characters.
17699 ID *string `type:"string"`
17701 // Specifies when noncurrent object versions expire. Upon expiration, Amazon
17702 // S3 permanently deletes the noncurrent object versions. You set this lifecycle
17703 // configuration action on a bucket that has versioning enabled (or suspended)
17704 // to request that Amazon S3 delete noncurrent object versions at a specific
17705 // period in the object's lifetime.
17706 NoncurrentVersionExpiration *NoncurrentVersionExpiration `type:"structure"`
17708 // Container for the transition rule that describes when noncurrent objects
17709 // transition to the STANDARD_IA or GLACIER storage class. If your bucket is
17710 // versioning-enabled (or versioning is suspended), you can set this action
17711 // to request that Amazon S3 transition noncurrent object versions to the STANDARD_IA
17712 // or GLACIER storage class at a specific period in the object's lifetime.
17713 NoncurrentVersionTransition *NoncurrentVersionTransition `type:"structure"`
17715 // Prefix identifying one or more objects to which the rule applies.
17717 // Prefix is a required field
17718 Prefix *string `type:"string" required:"true"`
17720 // If 'Enabled', the rule is currently being applied. If 'Disabled', the rule
17721 // is not currently being applied.
17723 // Status is a required field
17724 Status *string `type:"string" required:"true" enum:"ExpirationStatus"`
17726 Transition *Transition `type:"structure"`
17729 // String returns the string representation
17730 func (s Rule) String() string {
17731 return awsutil.Prettify(s)
17734 // GoString returns the string representation
17735 func (s Rule) GoString() string {
17739 // Validate inspects the fields of the type to determine if they are valid.
17740 func (s *Rule) Validate() error {
17741 invalidParams := request.ErrInvalidParams{Context: "Rule"}
17742 if s.Prefix == nil {
17743 invalidParams.Add(request.NewErrParamRequired("Prefix"))
17745 if s.Status == nil {
17746 invalidParams.Add(request.NewErrParamRequired("Status"))
17749 if invalidParams.Len() > 0 {
17750 return invalidParams
17755 // SetAbortIncompleteMultipartUpload sets the AbortIncompleteMultipartUpload field's value.
17756 func (s *Rule) SetAbortIncompleteMultipartUpload(v *AbortIncompleteMultipartUpload) *Rule {
17757 s.AbortIncompleteMultipartUpload = v
17761 // SetExpiration sets the Expiration field's value.
17762 func (s *Rule) SetExpiration(v *LifecycleExpiration) *Rule {
17767 // SetID sets the ID field's value.
17768 func (s *Rule) SetID(v string) *Rule {
17773 // SetNoncurrentVersionExpiration sets the NoncurrentVersionExpiration field's value.
17774 func (s *Rule) SetNoncurrentVersionExpiration(v *NoncurrentVersionExpiration) *Rule {
17775 s.NoncurrentVersionExpiration = v
17779 // SetNoncurrentVersionTransition sets the NoncurrentVersionTransition field's value.
17780 func (s *Rule) SetNoncurrentVersionTransition(v *NoncurrentVersionTransition) *Rule {
17781 s.NoncurrentVersionTransition = v
17785 // SetPrefix sets the Prefix field's value.
17786 func (s *Rule) SetPrefix(v string) *Rule {
17791 // SetStatus sets the Status field's value.
17792 func (s *Rule) SetStatus(v string) *Rule {
17797 // SetTransition sets the Transition field's value.
17798 func (s *Rule) SetTransition(v *Transition) *Rule {
17803 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/StorageClassAnalysis
17804 type StorageClassAnalysis struct {
17805 _ struct{} `type:"structure"`
17807 // A container used to describe how data related to the storage class analysis
17808 // should be exported.
17809 DataExport *StorageClassAnalysisDataExport `type:"structure"`
17812 // String returns the string representation
17813 func (s StorageClassAnalysis) String() string {
17814 return awsutil.Prettify(s)
17817 // GoString returns the string representation
17818 func (s StorageClassAnalysis) GoString() string {
17822 // Validate inspects the fields of the type to determine if they are valid.
17823 func (s *StorageClassAnalysis) Validate() error {
17824 invalidParams := request.ErrInvalidParams{Context: "StorageClassAnalysis"}
17825 if s.DataExport != nil {
17826 if err := s.DataExport.Validate(); err != nil {
17827 invalidParams.AddNested("DataExport", err.(request.ErrInvalidParams))
17831 if invalidParams.Len() > 0 {
17832 return invalidParams
17837 // SetDataExport sets the DataExport field's value.
17838 func (s *StorageClassAnalysis) SetDataExport(v *StorageClassAnalysisDataExport) *StorageClassAnalysis {
17843 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/StorageClassAnalysisDataExport
17844 type StorageClassAnalysisDataExport struct {
17845 _ struct{} `type:"structure"`
17847 // The place to store the data for an analysis.
17849 // Destination is a required field
17850 Destination *AnalyticsExportDestination `type:"structure" required:"true"`
17852 // The version of the output schema to use when exporting data. Must be V_1.
17854 // OutputSchemaVersion is a required field
17855 OutputSchemaVersion *string `type:"string" required:"true" enum:"StorageClassAnalysisSchemaVersion"`
17858 // String returns the string representation
17859 func (s StorageClassAnalysisDataExport) String() string {
17860 return awsutil.Prettify(s)
17863 // GoString returns the string representation
17864 func (s StorageClassAnalysisDataExport) GoString() string {
17868 // Validate inspects the fields of the type to determine if they are valid.
17869 func (s *StorageClassAnalysisDataExport) Validate() error {
17870 invalidParams := request.ErrInvalidParams{Context: "StorageClassAnalysisDataExport"}
17871 if s.Destination == nil {
17872 invalidParams.Add(request.NewErrParamRequired("Destination"))
17874 if s.OutputSchemaVersion == nil {
17875 invalidParams.Add(request.NewErrParamRequired("OutputSchemaVersion"))
17877 if s.Destination != nil {
17878 if err := s.Destination.Validate(); err != nil {
17879 invalidParams.AddNested("Destination", err.(request.ErrInvalidParams))
17883 if invalidParams.Len() > 0 {
17884 return invalidParams
17889 // SetDestination sets the Destination field's value.
17890 func (s *StorageClassAnalysisDataExport) SetDestination(v *AnalyticsExportDestination) *StorageClassAnalysisDataExport {
17895 // SetOutputSchemaVersion sets the OutputSchemaVersion field's value.
17896 func (s *StorageClassAnalysisDataExport) SetOutputSchemaVersion(v string) *StorageClassAnalysisDataExport {
17897 s.OutputSchemaVersion = &v
17901 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Tag
17903 _ struct{} `type:"structure"`
17905 // Name of the tag.
17907 // Key is a required field
17908 Key *string `min:"1" type:"string" required:"true"`
17910 // Value of the tag.
17912 // Value is a required field
17913 Value *string `type:"string" required:"true"`
17916 // String returns the string representation
17917 func (s Tag) String() string {
17918 return awsutil.Prettify(s)
17921 // GoString returns the string representation
17922 func (s Tag) GoString() string {
17926 // Validate inspects the fields of the type to determine if they are valid.
17927 func (s *Tag) Validate() error {
17928 invalidParams := request.ErrInvalidParams{Context: "Tag"}
17930 invalidParams.Add(request.NewErrParamRequired("Key"))
17932 if s.Key != nil && len(*s.Key) < 1 {
17933 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
17935 if s.Value == nil {
17936 invalidParams.Add(request.NewErrParamRequired("Value"))
17939 if invalidParams.Len() > 0 {
17940 return invalidParams
17945 // SetKey sets the Key field's value.
17946 func (s *Tag) SetKey(v string) *Tag {
17951 // SetValue sets the Value field's value.
17952 func (s *Tag) SetValue(v string) *Tag {
17957 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Tagging
17958 type Tagging struct {
17959 _ struct{} `type:"structure"`
17961 // TagSet is a required field
17962 TagSet []*Tag `locationNameList:"Tag" type:"list" required:"true"`
17965 // String returns the string representation
17966 func (s Tagging) String() string {
17967 return awsutil.Prettify(s)
17970 // GoString returns the string representation
17971 func (s Tagging) GoString() string {
17975 // Validate inspects the fields of the type to determine if they are valid.
17976 func (s *Tagging) Validate() error {
17977 invalidParams := request.ErrInvalidParams{Context: "Tagging"}
17978 if s.TagSet == nil {
17979 invalidParams.Add(request.NewErrParamRequired("TagSet"))
17981 if s.TagSet != nil {
17982 for i, v := range s.TagSet {
17986 if err := v.Validate(); err != nil {
17987 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TagSet", i), err.(request.ErrInvalidParams))
17992 if invalidParams.Len() > 0 {
17993 return invalidParams
17998 // SetTagSet sets the TagSet field's value.
17999 func (s *Tagging) SetTagSet(v []*Tag) *Tagging {
18004 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/TargetGrant
18005 type TargetGrant struct {
18006 _ struct{} `type:"structure"`
18008 Grantee *Grantee `type:"structure"`
18010 // Logging permissions assigned to the Grantee for the bucket.
18011 Permission *string `type:"string" enum:"BucketLogsPermission"`
18014 // String returns the string representation
18015 func (s TargetGrant) String() string {
18016 return awsutil.Prettify(s)
18019 // GoString returns the string representation
18020 func (s TargetGrant) GoString() string {
18024 // Validate inspects the fields of the type to determine if they are valid.
18025 func (s *TargetGrant) Validate() error {
18026 invalidParams := request.ErrInvalidParams{Context: "TargetGrant"}
18027 if s.Grantee != nil {
18028 if err := s.Grantee.Validate(); err != nil {
18029 invalidParams.AddNested("Grantee", err.(request.ErrInvalidParams))
18033 if invalidParams.Len() > 0 {
18034 return invalidParams
18039 // SetGrantee sets the Grantee field's value.
18040 func (s *TargetGrant) SetGrantee(v *Grantee) *TargetGrant {
18045 // SetPermission sets the Permission field's value.
18046 func (s *TargetGrant) SetPermission(v string) *TargetGrant {
18051 // Container for specifying the configuration when you want Amazon S3 to publish
18052 // events to an Amazon Simple Notification Service (Amazon SNS) topic.
18053 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/TopicConfiguration
18054 type TopicConfiguration struct {
18055 _ struct{} `type:"structure"`
18057 // Events is a required field
18058 Events []*string `locationName:"Event" type:"list" flattened:"true" required:"true"`
18060 // Container for object key name filtering rules. For information about key
18061 // name filtering, go to Configuring Event Notifications (http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html)
18062 Filter *NotificationConfigurationFilter `type:"structure"`
18064 // Optional unique identifier for configurations in a notification configuration.
18065 // If you don't provide one, Amazon S3 will assign an ID.
18066 Id *string `type:"string"`
18068 // Amazon SNS topic ARN to which Amazon S3 will publish a message when it detects
18069 // events of specified type.
18071 // TopicArn is a required field
18072 TopicArn *string `locationName:"Topic" type:"string" required:"true"`
18075 // String returns the string representation
18076 func (s TopicConfiguration) String() string {
18077 return awsutil.Prettify(s)
18080 // GoString returns the string representation
18081 func (s TopicConfiguration) GoString() string {
18085 // Validate inspects the fields of the type to determine if they are valid.
18086 func (s *TopicConfiguration) Validate() error {
18087 invalidParams := request.ErrInvalidParams{Context: "TopicConfiguration"}
18088 if s.Events == nil {
18089 invalidParams.Add(request.NewErrParamRequired("Events"))
18091 if s.TopicArn == nil {
18092 invalidParams.Add(request.NewErrParamRequired("TopicArn"))
18095 if invalidParams.Len() > 0 {
18096 return invalidParams
18101 // SetEvents sets the Events field's value.
18102 func (s *TopicConfiguration) SetEvents(v []*string) *TopicConfiguration {
18107 // SetFilter sets the Filter field's value.
18108 func (s *TopicConfiguration) SetFilter(v *NotificationConfigurationFilter) *TopicConfiguration {
18113 // SetId sets the Id field's value.
18114 func (s *TopicConfiguration) SetId(v string) *TopicConfiguration {
18119 // SetTopicArn sets the TopicArn field's value.
18120 func (s *TopicConfiguration) SetTopicArn(v string) *TopicConfiguration {
18125 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/TopicConfigurationDeprecated
18126 type TopicConfigurationDeprecated struct {
18127 _ struct{} `type:"structure"`
18129 // Bucket event for which to send notifications.
18130 Event *string `deprecated:"true" type:"string" enum:"Event"`
18132 Events []*string `locationName:"Event" type:"list" flattened:"true"`
18134 // Optional unique identifier for configurations in a notification configuration.
18135 // If you don't provide one, Amazon S3 will assign an ID.
18136 Id *string `type:"string"`
18138 // Amazon SNS topic to which Amazon S3 will publish a message to report the
18139 // specified events for the bucket.
18140 Topic *string `type:"string"`
18143 // String returns the string representation
18144 func (s TopicConfigurationDeprecated) String() string {
18145 return awsutil.Prettify(s)
18148 // GoString returns the string representation
18149 func (s TopicConfigurationDeprecated) GoString() string {
18153 // SetEvent sets the Event field's value.
18154 func (s *TopicConfigurationDeprecated) SetEvent(v string) *TopicConfigurationDeprecated {
18159 // SetEvents sets the Events field's value.
18160 func (s *TopicConfigurationDeprecated) SetEvents(v []*string) *TopicConfigurationDeprecated {
18165 // SetId sets the Id field's value.
18166 func (s *TopicConfigurationDeprecated) SetId(v string) *TopicConfigurationDeprecated {
18171 // SetTopic sets the Topic field's value.
18172 func (s *TopicConfigurationDeprecated) SetTopic(v string) *TopicConfigurationDeprecated {
18177 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/Transition
18178 type Transition struct {
18179 _ struct{} `type:"structure"`
18181 // Indicates at what date the object is to be moved or deleted. Should be in
18182 // GMT ISO 8601 Format.
18183 Date *time.Time `type:"timestamp" timestampFormat:"iso8601"`
18185 // Indicates the lifetime, in days, of the objects that are subject to the rule.
18186 // The value must be a non-zero positive integer.
18187 Days *int64 `type:"integer"`
18189 // The class of storage used to store the object.
18190 StorageClass *string `type:"string" enum:"TransitionStorageClass"`
18193 // String returns the string representation
18194 func (s Transition) String() string {
18195 return awsutil.Prettify(s)
18198 // GoString returns the string representation
18199 func (s Transition) GoString() string {
18203 // SetDate sets the Date field's value.
18204 func (s *Transition) SetDate(v time.Time) *Transition {
18209 // SetDays sets the Days field's value.
18210 func (s *Transition) SetDays(v int64) *Transition {
18215 // SetStorageClass sets the StorageClass field's value.
18216 func (s *Transition) SetStorageClass(v string) *Transition {
18217 s.StorageClass = &v
18221 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartCopyRequest
18222 type UploadPartCopyInput struct {
18223 _ struct{} `type:"structure"`
18225 // Bucket is a required field
18226 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
18228 // The name of the source bucket and key name of the source object, separated
18229 // by a slash (/). Must be URL-encoded.
18231 // CopySource is a required field
18232 CopySource *string `location:"header" locationName:"x-amz-copy-source" type:"string" required:"true"`
18234 // Copies the object if its entity tag (ETag) matches the specified tag.
18235 CopySourceIfMatch *string `location:"header" locationName:"x-amz-copy-source-if-match" type:"string"`
18237 // Copies the object if it has been modified since the specified time.
18238 CopySourceIfModifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-modified-since" type:"timestamp" timestampFormat:"rfc822"`
18240 // Copies the object if its entity tag (ETag) is different than the specified
18242 CopySourceIfNoneMatch *string `location:"header" locationName:"x-amz-copy-source-if-none-match" type:"string"`
18244 // Copies the object if it hasn't been modified since the specified time.
18245 CopySourceIfUnmodifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-unmodified-since" type:"timestamp" timestampFormat:"rfc822"`
18247 // The range of bytes to copy from the source object. The range value must use
18248 // the form bytes=first-last, where the first and last are the zero-based byte
18249 // offsets to copy. For example, bytes=0-9 indicates that you want to copy the
18250 // first ten bytes of the source. You can copy a range only if the source object
18251 // is greater than 5 GB.
18252 CopySourceRange *string `location:"header" locationName:"x-amz-copy-source-range" type:"string"`
18254 // Specifies the algorithm to use when decrypting the source object (e.g., AES256).
18255 CopySourceSSECustomerAlgorithm *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-algorithm" type:"string"`
18257 // Specifies the customer-provided encryption key for Amazon S3 to use to decrypt
18258 // the source object. The encryption key provided in this header must be one
18259 // that was used when the source object was created.
18260 CopySourceSSECustomerKey *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key" type:"string"`
18262 // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
18263 // Amazon S3 uses this header for a message integrity check to ensure the encryption
18264 // key was transmitted without error.
18265 CopySourceSSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5" type:"string"`
18267 // Key is a required field
18268 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
18270 // Part number of part being copied. This is a positive integer between 1 and
18273 // PartNumber is a required field
18274 PartNumber *int64 `location:"querystring" locationName:"partNumber" type:"integer" required:"true"`
18276 // Confirms that the requester knows that she or he will be charged for the
18277 // request. Bucket owners need not specify this parameter in their requests.
18278 // Documentation on downloading objects from requester pays buckets can be found
18279 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
18280 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
18282 // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
18283 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
18285 // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
18286 // data. This value is used to store the object and then it is discarded; Amazon
18287 // does not store the encryption key. The key must be appropriate for use with
18288 // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
18289 // header. This must be the same encryption key specified in the initiate multipart
18291 SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"`
18293 // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
18294 // Amazon S3 uses this header for a message integrity check to ensure the encryption
18295 // key was transmitted without error.
18296 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
18298 // Upload ID identifying the multipart upload whose part is being copied.
18300 // UploadId is a required field
18301 UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"`
18304 // String returns the string representation
18305 func (s UploadPartCopyInput) String() string {
18306 return awsutil.Prettify(s)
18309 // GoString returns the string representation
18310 func (s UploadPartCopyInput) GoString() string {
18314 // Validate inspects the fields of the type to determine if they are valid.
18315 func (s *UploadPartCopyInput) Validate() error {
18316 invalidParams := request.ErrInvalidParams{Context: "UploadPartCopyInput"}
18317 if s.Bucket == nil {
18318 invalidParams.Add(request.NewErrParamRequired("Bucket"))
18320 if s.CopySource == nil {
18321 invalidParams.Add(request.NewErrParamRequired("CopySource"))
18324 invalidParams.Add(request.NewErrParamRequired("Key"))
18326 if s.Key != nil && len(*s.Key) < 1 {
18327 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
18329 if s.PartNumber == nil {
18330 invalidParams.Add(request.NewErrParamRequired("PartNumber"))
18332 if s.UploadId == nil {
18333 invalidParams.Add(request.NewErrParamRequired("UploadId"))
18336 if invalidParams.Len() > 0 {
18337 return invalidParams
18342 // SetBucket sets the Bucket field's value.
18343 func (s *UploadPartCopyInput) SetBucket(v string) *UploadPartCopyInput {
18348 // SetCopySource sets the CopySource field's value.
18349 func (s *UploadPartCopyInput) SetCopySource(v string) *UploadPartCopyInput {
18354 // SetCopySourceIfMatch sets the CopySourceIfMatch field's value.
18355 func (s *UploadPartCopyInput) SetCopySourceIfMatch(v string) *UploadPartCopyInput {
18356 s.CopySourceIfMatch = &v
18360 // SetCopySourceIfModifiedSince sets the CopySourceIfModifiedSince field's value.
18361 func (s *UploadPartCopyInput) SetCopySourceIfModifiedSince(v time.Time) *UploadPartCopyInput {
18362 s.CopySourceIfModifiedSince = &v
18366 // SetCopySourceIfNoneMatch sets the CopySourceIfNoneMatch field's value.
18367 func (s *UploadPartCopyInput) SetCopySourceIfNoneMatch(v string) *UploadPartCopyInput {
18368 s.CopySourceIfNoneMatch = &v
18372 // SetCopySourceIfUnmodifiedSince sets the CopySourceIfUnmodifiedSince field's value.
18373 func (s *UploadPartCopyInput) SetCopySourceIfUnmodifiedSince(v time.Time) *UploadPartCopyInput {
18374 s.CopySourceIfUnmodifiedSince = &v
18378 // SetCopySourceRange sets the CopySourceRange field's value.
18379 func (s *UploadPartCopyInput) SetCopySourceRange(v string) *UploadPartCopyInput {
18380 s.CopySourceRange = &v
18384 // SetCopySourceSSECustomerAlgorithm sets the CopySourceSSECustomerAlgorithm field's value.
18385 func (s *UploadPartCopyInput) SetCopySourceSSECustomerAlgorithm(v string) *UploadPartCopyInput {
18386 s.CopySourceSSECustomerAlgorithm = &v
18390 // SetCopySourceSSECustomerKey sets the CopySourceSSECustomerKey field's value.
18391 func (s *UploadPartCopyInput) SetCopySourceSSECustomerKey(v string) *UploadPartCopyInput {
18392 s.CopySourceSSECustomerKey = &v
18396 // SetCopySourceSSECustomerKeyMD5 sets the CopySourceSSECustomerKeyMD5 field's value.
18397 func (s *UploadPartCopyInput) SetCopySourceSSECustomerKeyMD5(v string) *UploadPartCopyInput {
18398 s.CopySourceSSECustomerKeyMD5 = &v
18402 // SetKey sets the Key field's value.
18403 func (s *UploadPartCopyInput) SetKey(v string) *UploadPartCopyInput {
18408 // SetPartNumber sets the PartNumber field's value.
18409 func (s *UploadPartCopyInput) SetPartNumber(v int64) *UploadPartCopyInput {
18414 // SetRequestPayer sets the RequestPayer field's value.
18415 func (s *UploadPartCopyInput) SetRequestPayer(v string) *UploadPartCopyInput {
18416 s.RequestPayer = &v
18420 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
18421 func (s *UploadPartCopyInput) SetSSECustomerAlgorithm(v string) *UploadPartCopyInput {
18422 s.SSECustomerAlgorithm = &v
18426 // SetSSECustomerKey sets the SSECustomerKey field's value.
18427 func (s *UploadPartCopyInput) SetSSECustomerKey(v string) *UploadPartCopyInput {
18428 s.SSECustomerKey = &v
18432 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
18433 func (s *UploadPartCopyInput) SetSSECustomerKeyMD5(v string) *UploadPartCopyInput {
18434 s.SSECustomerKeyMD5 = &v
18438 // SetUploadId sets the UploadId field's value.
18439 func (s *UploadPartCopyInput) SetUploadId(v string) *UploadPartCopyInput {
18444 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartCopyOutput
18445 type UploadPartCopyOutput struct {
18446 _ struct{} `type:"structure" payload:"CopyPartResult"`
18448 CopyPartResult *CopyPartResult `type:"structure"`
18450 // The version of the source object that was copied, if you have enabled versioning
18451 // on the source bucket.
18452 CopySourceVersionId *string `location:"header" locationName:"x-amz-copy-source-version-id" type:"string"`
18454 // If present, indicates that the requester was successfully charged for the
18456 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
18458 // If server-side encryption with a customer-provided encryption key was requested,
18459 // the response will include this header confirming the encryption algorithm
18461 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
18463 // If server-side encryption with a customer-provided encryption key was requested,
18464 // the response will include this header to provide round trip message integrity
18465 // verification of the customer-provided encryption key.
18466 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
18468 // If present, specifies the ID of the AWS Key Management Service (KMS) master
18469 // encryption key that was used for the object.
18470 SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
18472 // The Server-side encryption algorithm used when storing this object in S3
18473 // (e.g., AES256, aws:kms).
18474 ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
18477 // String returns the string representation
18478 func (s UploadPartCopyOutput) String() string {
18479 return awsutil.Prettify(s)
18482 // GoString returns the string representation
18483 func (s UploadPartCopyOutput) GoString() string {
18487 // SetCopyPartResult sets the CopyPartResult field's value.
18488 func (s *UploadPartCopyOutput) SetCopyPartResult(v *CopyPartResult) *UploadPartCopyOutput {
18489 s.CopyPartResult = v
18493 // SetCopySourceVersionId sets the CopySourceVersionId field's value.
18494 func (s *UploadPartCopyOutput) SetCopySourceVersionId(v string) *UploadPartCopyOutput {
18495 s.CopySourceVersionId = &v
18499 // SetRequestCharged sets the RequestCharged field's value.
18500 func (s *UploadPartCopyOutput) SetRequestCharged(v string) *UploadPartCopyOutput {
18501 s.RequestCharged = &v
18505 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
18506 func (s *UploadPartCopyOutput) SetSSECustomerAlgorithm(v string) *UploadPartCopyOutput {
18507 s.SSECustomerAlgorithm = &v
18511 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
18512 func (s *UploadPartCopyOutput) SetSSECustomerKeyMD5(v string) *UploadPartCopyOutput {
18513 s.SSECustomerKeyMD5 = &v
18517 // SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
18518 func (s *UploadPartCopyOutput) SetSSEKMSKeyId(v string) *UploadPartCopyOutput {
18523 // SetServerSideEncryption sets the ServerSideEncryption field's value.
18524 func (s *UploadPartCopyOutput) SetServerSideEncryption(v string) *UploadPartCopyOutput {
18525 s.ServerSideEncryption = &v
18529 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartRequest
18530 type UploadPartInput struct {
18531 _ struct{} `type:"structure" payload:"Body"`
18534 Body io.ReadSeeker `type:"blob"`
18536 // Name of the bucket to which the multipart upload was initiated.
18538 // Bucket is a required field
18539 Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`
18541 // Size of the body in bytes. This parameter is useful when the size of the
18542 // body cannot be determined automatically.
18543 ContentLength *int64 `location:"header" locationName:"Content-Length" type:"long"`
18545 // Object key for which the multipart upload was initiated.
18547 // Key is a required field
18548 Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
18550 // Part number of part being uploaded. This is a positive integer between 1
18553 // PartNumber is a required field
18554 PartNumber *int64 `location:"querystring" locationName:"partNumber" type:"integer" required:"true"`
18556 // Confirms that the requester knows that she or he will be charged for the
18557 // request. Bucket owners need not specify this parameter in their requests.
18558 // Documentation on downloading objects from requester pays buckets can be found
18559 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
18560 RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
18562 // Specifies the algorithm to use to when encrypting the object (e.g., AES256).
18563 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
18565 // Specifies the customer-provided encryption key for Amazon S3 to use in encrypting
18566 // data. This value is used to store the object and then it is discarded; Amazon
18567 // does not store the encryption key. The key must be appropriate for use with
18568 // the algorithm specified in the x-amz-server-side​-encryption​-customer-algorithm
18569 // header. This must be the same encryption key specified in the initiate multipart
18571 SSECustomerKey *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string"`
18573 // Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
18574 // Amazon S3 uses this header for a message integrity check to ensure the encryption
18575 // key was transmitted without error.
18576 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
18578 // Upload ID identifying the multipart upload whose part is being uploaded.
18580 // UploadId is a required field
18581 UploadId *string `location:"querystring" locationName:"uploadId" type:"string" required:"true"`
18584 // String returns the string representation
18585 func (s UploadPartInput) String() string {
18586 return awsutil.Prettify(s)
18589 // GoString returns the string representation
18590 func (s UploadPartInput) GoString() string {
18594 // Validate inspects the fields of the type to determine if they are valid.
18595 func (s *UploadPartInput) Validate() error {
18596 invalidParams := request.ErrInvalidParams{Context: "UploadPartInput"}
18597 if s.Bucket == nil {
18598 invalidParams.Add(request.NewErrParamRequired("Bucket"))
18601 invalidParams.Add(request.NewErrParamRequired("Key"))
18603 if s.Key != nil && len(*s.Key) < 1 {
18604 invalidParams.Add(request.NewErrParamMinLen("Key", 1))
18606 if s.PartNumber == nil {
18607 invalidParams.Add(request.NewErrParamRequired("PartNumber"))
18609 if s.UploadId == nil {
18610 invalidParams.Add(request.NewErrParamRequired("UploadId"))
18613 if invalidParams.Len() > 0 {
18614 return invalidParams
18619 // SetBody sets the Body field's value.
18620 func (s *UploadPartInput) SetBody(v io.ReadSeeker) *UploadPartInput {
18625 // SetBucket sets the Bucket field's value.
18626 func (s *UploadPartInput) SetBucket(v string) *UploadPartInput {
18631 // SetContentLength sets the ContentLength field's value.
18632 func (s *UploadPartInput) SetContentLength(v int64) *UploadPartInput {
18633 s.ContentLength = &v
18637 // SetKey sets the Key field's value.
18638 func (s *UploadPartInput) SetKey(v string) *UploadPartInput {
18643 // SetPartNumber sets the PartNumber field's value.
18644 func (s *UploadPartInput) SetPartNumber(v int64) *UploadPartInput {
18649 // SetRequestPayer sets the RequestPayer field's value.
18650 func (s *UploadPartInput) SetRequestPayer(v string) *UploadPartInput {
18651 s.RequestPayer = &v
18655 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
18656 func (s *UploadPartInput) SetSSECustomerAlgorithm(v string) *UploadPartInput {
18657 s.SSECustomerAlgorithm = &v
18661 // SetSSECustomerKey sets the SSECustomerKey field's value.
18662 func (s *UploadPartInput) SetSSECustomerKey(v string) *UploadPartInput {
18663 s.SSECustomerKey = &v
18667 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
18668 func (s *UploadPartInput) SetSSECustomerKeyMD5(v string) *UploadPartInput {
18669 s.SSECustomerKeyMD5 = &v
18673 // SetUploadId sets the UploadId field's value.
18674 func (s *UploadPartInput) SetUploadId(v string) *UploadPartInput {
18679 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartOutput
18680 type UploadPartOutput struct {
18681 _ struct{} `type:"structure"`
18683 // Entity tag for the uploaded object.
18684 ETag *string `location:"header" locationName:"ETag" type:"string"`
18686 // If present, indicates that the requester was successfully charged for the
18688 RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`
18690 // If server-side encryption with a customer-provided encryption key was requested,
18691 // the response will include this header confirming the encryption algorithm
18693 SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`
18695 // If server-side encryption with a customer-provided encryption key was requested,
18696 // the response will include this header to provide round trip message integrity
18697 // verification of the customer-provided encryption key.
18698 SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`
18700 // If present, specifies the ID of the AWS Key Management Service (KMS) master
18701 // encryption key that was used for the object.
18702 SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string"`
18704 // The Server-side encryption algorithm used when storing this object in S3
18705 // (e.g., AES256, aws:kms).
18706 ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`
18709 // String returns the string representation
18710 func (s UploadPartOutput) String() string {
18711 return awsutil.Prettify(s)
18714 // GoString returns the string representation
18715 func (s UploadPartOutput) GoString() string {
18719 // SetETag sets the ETag field's value.
18720 func (s *UploadPartOutput) SetETag(v string) *UploadPartOutput {
18725 // SetRequestCharged sets the RequestCharged field's value.
18726 func (s *UploadPartOutput) SetRequestCharged(v string) *UploadPartOutput {
18727 s.RequestCharged = &v
18731 // SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
18732 func (s *UploadPartOutput) SetSSECustomerAlgorithm(v string) *UploadPartOutput {
18733 s.SSECustomerAlgorithm = &v
18737 // SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
18738 func (s *UploadPartOutput) SetSSECustomerKeyMD5(v string) *UploadPartOutput {
18739 s.SSECustomerKeyMD5 = &v
18743 // SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
18744 func (s *UploadPartOutput) SetSSEKMSKeyId(v string) *UploadPartOutput {
18749 // SetServerSideEncryption sets the ServerSideEncryption field's value.
18750 func (s *UploadPartOutput) SetServerSideEncryption(v string) *UploadPartOutput {
18751 s.ServerSideEncryption = &v
18755 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/VersioningConfiguration
18756 type VersioningConfiguration struct {
18757 _ struct{} `type:"structure"`
18759 // Specifies whether MFA delete is enabled in the bucket versioning configuration.
18760 // This element is only returned if the bucket has been configured with MFA
18761 // delete. If the bucket has never been so configured, this element is not returned.
18762 MFADelete *string `locationName:"MfaDelete" type:"string" enum:"MFADelete"`
18764 // The versioning state of the bucket.
18765 Status *string `type:"string" enum:"BucketVersioningStatus"`
18768 // String returns the string representation
18769 func (s VersioningConfiguration) String() string {
18770 return awsutil.Prettify(s)
18773 // GoString returns the string representation
18774 func (s VersioningConfiguration) GoString() string {
18778 // SetMFADelete sets the MFADelete field's value.
18779 func (s *VersioningConfiguration) SetMFADelete(v string) *VersioningConfiguration {
18784 // SetStatus sets the Status field's value.
18785 func (s *VersioningConfiguration) SetStatus(v string) *VersioningConfiguration {
18790 // Please also see https://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/WebsiteConfiguration
18791 type WebsiteConfiguration struct {
18792 _ struct{} `type:"structure"`
18794 ErrorDocument *ErrorDocument `type:"structure"`
18796 IndexDocument *IndexDocument `type:"structure"`
18798 RedirectAllRequestsTo *RedirectAllRequestsTo `type:"structure"`
18800 RoutingRules []*RoutingRule `locationNameList:"RoutingRule" type:"list"`
18803 // String returns the string representation
18804 func (s WebsiteConfiguration) String() string {
18805 return awsutil.Prettify(s)
18808 // GoString returns the string representation
18809 func (s WebsiteConfiguration) GoString() string {
18813 // Validate inspects the fields of the type to determine if they are valid.
18814 func (s *WebsiteConfiguration) Validate() error {
18815 invalidParams := request.ErrInvalidParams{Context: "WebsiteConfiguration"}
18816 if s.ErrorDocument != nil {
18817 if err := s.ErrorDocument.Validate(); err != nil {
18818 invalidParams.AddNested("ErrorDocument", err.(request.ErrInvalidParams))
18821 if s.IndexDocument != nil {
18822 if err := s.IndexDocument.Validate(); err != nil {
18823 invalidParams.AddNested("IndexDocument", err.(request.ErrInvalidParams))
18826 if s.RedirectAllRequestsTo != nil {
18827 if err := s.RedirectAllRequestsTo.Validate(); err != nil {
18828 invalidParams.AddNested("RedirectAllRequestsTo", err.(request.ErrInvalidParams))
18831 if s.RoutingRules != nil {
18832 for i, v := range s.RoutingRules {
18836 if err := v.Validate(); err != nil {
18837 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RoutingRules", i), err.(request.ErrInvalidParams))
18842 if invalidParams.Len() > 0 {
18843 return invalidParams
18848 // SetErrorDocument sets the ErrorDocument field's value.
18849 func (s *WebsiteConfiguration) SetErrorDocument(v *ErrorDocument) *WebsiteConfiguration {
18850 s.ErrorDocument = v
18854 // SetIndexDocument sets the IndexDocument field's value.
18855 func (s *WebsiteConfiguration) SetIndexDocument(v *IndexDocument) *WebsiteConfiguration {
18856 s.IndexDocument = v
18860 // SetRedirectAllRequestsTo sets the RedirectAllRequestsTo field's value.
18861 func (s *WebsiteConfiguration) SetRedirectAllRequestsTo(v *RedirectAllRequestsTo) *WebsiteConfiguration {
18862 s.RedirectAllRequestsTo = v
18866 // SetRoutingRules sets the RoutingRules field's value.
18867 func (s *WebsiteConfiguration) SetRoutingRules(v []*RoutingRule) *WebsiteConfiguration {
18873 // AnalyticsS3ExportFileFormatCsv is a AnalyticsS3ExportFileFormat enum value
18874 AnalyticsS3ExportFileFormatCsv = "CSV"
18878 // BucketAccelerateStatusEnabled is a BucketAccelerateStatus enum value
18879 BucketAccelerateStatusEnabled = "Enabled"
18881 // BucketAccelerateStatusSuspended is a BucketAccelerateStatus enum value
18882 BucketAccelerateStatusSuspended = "Suspended"
18886 // BucketCannedACLPrivate is a BucketCannedACL enum value
18887 BucketCannedACLPrivate = "private"
18889 // BucketCannedACLPublicRead is a BucketCannedACL enum value
18890 BucketCannedACLPublicRead = "public-read"
18892 // BucketCannedACLPublicReadWrite is a BucketCannedACL enum value
18893 BucketCannedACLPublicReadWrite = "public-read-write"
18895 // BucketCannedACLAuthenticatedRead is a BucketCannedACL enum value
18896 BucketCannedACLAuthenticatedRead = "authenticated-read"
18900 // BucketLocationConstraintEu is a BucketLocationConstraint enum value
18901 BucketLocationConstraintEu = "EU"
18903 // BucketLocationConstraintEuWest1 is a BucketLocationConstraint enum value
18904 BucketLocationConstraintEuWest1 = "eu-west-1"
18906 // BucketLocationConstraintUsWest1 is a BucketLocationConstraint enum value
18907 BucketLocationConstraintUsWest1 = "us-west-1"
18909 // BucketLocationConstraintUsWest2 is a BucketLocationConstraint enum value
18910 BucketLocationConstraintUsWest2 = "us-west-2"
18912 // BucketLocationConstraintApSouth1 is a BucketLocationConstraint enum value
18913 BucketLocationConstraintApSouth1 = "ap-south-1"
18915 // BucketLocationConstraintApSoutheast1 is a BucketLocationConstraint enum value
18916 BucketLocationConstraintApSoutheast1 = "ap-southeast-1"
18918 // BucketLocationConstraintApSoutheast2 is a BucketLocationConstraint enum value
18919 BucketLocationConstraintApSoutheast2 = "ap-southeast-2"
18921 // BucketLocationConstraintApNortheast1 is a BucketLocationConstraint enum value
18922 BucketLocationConstraintApNortheast1 = "ap-northeast-1"
18924 // BucketLocationConstraintSaEast1 is a BucketLocationConstraint enum value
18925 BucketLocationConstraintSaEast1 = "sa-east-1"
18927 // BucketLocationConstraintCnNorth1 is a BucketLocationConstraint enum value
18928 BucketLocationConstraintCnNorth1 = "cn-north-1"
18930 // BucketLocationConstraintEuCentral1 is a BucketLocationConstraint enum value
18931 BucketLocationConstraintEuCentral1 = "eu-central-1"
18935 // BucketLogsPermissionFullControl is a BucketLogsPermission enum value
18936 BucketLogsPermissionFullControl = "FULL_CONTROL"
18938 // BucketLogsPermissionRead is a BucketLogsPermission enum value
18939 BucketLogsPermissionRead = "READ"
18941 // BucketLogsPermissionWrite is a BucketLogsPermission enum value
18942 BucketLogsPermissionWrite = "WRITE"
18946 // BucketVersioningStatusEnabled is a BucketVersioningStatus enum value
18947 BucketVersioningStatusEnabled = "Enabled"
18949 // BucketVersioningStatusSuspended is a BucketVersioningStatus enum value
18950 BucketVersioningStatusSuspended = "Suspended"
18953 // Requests Amazon S3 to encode the object keys in the response and specifies
18954 // the encoding method to use. An object key may contain any Unicode character;
18955 // however, XML 1.0 parser cannot parse some characters, such as characters
18956 // with an ASCII value from 0 to 10. For characters that are not supported in
18957 // XML 1.0, you can add this parameter to request that Amazon S3 encode the
18958 // keys in the response.
18960 // EncodingTypeUrl is a EncodingType enum value
18961 EncodingTypeUrl = "url"
18964 // Bucket event for which to send notifications.
18966 // EventS3ReducedRedundancyLostObject is a Event enum value
18967 EventS3ReducedRedundancyLostObject = "s3:ReducedRedundancyLostObject"
18969 // EventS3ObjectCreated is a Event enum value
18970 EventS3ObjectCreated = "s3:ObjectCreated:*"
18972 // EventS3ObjectCreatedPut is a Event enum value
18973 EventS3ObjectCreatedPut = "s3:ObjectCreated:Put"
18975 // EventS3ObjectCreatedPost is a Event enum value
18976 EventS3ObjectCreatedPost = "s3:ObjectCreated:Post"
18978 // EventS3ObjectCreatedCopy is a Event enum value
18979 EventS3ObjectCreatedCopy = "s3:ObjectCreated:Copy"
18981 // EventS3ObjectCreatedCompleteMultipartUpload is a Event enum value
18982 EventS3ObjectCreatedCompleteMultipartUpload = "s3:ObjectCreated:CompleteMultipartUpload"
18984 // EventS3ObjectRemoved is a Event enum value
18985 EventS3ObjectRemoved = "s3:ObjectRemoved:*"
18987 // EventS3ObjectRemovedDelete is a Event enum value
18988 EventS3ObjectRemovedDelete = "s3:ObjectRemoved:Delete"
18990 // EventS3ObjectRemovedDeleteMarkerCreated is a Event enum value
18991 EventS3ObjectRemovedDeleteMarkerCreated = "s3:ObjectRemoved:DeleteMarkerCreated"
18995 // ExpirationStatusEnabled is a ExpirationStatus enum value
18996 ExpirationStatusEnabled = "Enabled"
18998 // ExpirationStatusDisabled is a ExpirationStatus enum value
18999 ExpirationStatusDisabled = "Disabled"
19003 // FilterRuleNamePrefix is a FilterRuleName enum value
19004 FilterRuleNamePrefix = "prefix"
19006 // FilterRuleNameSuffix is a FilterRuleName enum value
19007 FilterRuleNameSuffix = "suffix"
19011 // InventoryFormatCsv is a InventoryFormat enum value
19012 InventoryFormatCsv = "CSV"
19016 // InventoryFrequencyDaily is a InventoryFrequency enum value
19017 InventoryFrequencyDaily = "Daily"
19019 // InventoryFrequencyWeekly is a InventoryFrequency enum value
19020 InventoryFrequencyWeekly = "Weekly"
19024 // InventoryIncludedObjectVersionsAll is a InventoryIncludedObjectVersions enum value
19025 InventoryIncludedObjectVersionsAll = "All"
19027 // InventoryIncludedObjectVersionsCurrent is a InventoryIncludedObjectVersions enum value
19028 InventoryIncludedObjectVersionsCurrent = "Current"
19032 // InventoryOptionalFieldSize is a InventoryOptionalField enum value
19033 InventoryOptionalFieldSize = "Size"
19035 // InventoryOptionalFieldLastModifiedDate is a InventoryOptionalField enum value
19036 InventoryOptionalFieldLastModifiedDate = "LastModifiedDate"
19038 // InventoryOptionalFieldStorageClass is a InventoryOptionalField enum value
19039 InventoryOptionalFieldStorageClass = "StorageClass"
19041 // InventoryOptionalFieldEtag is a InventoryOptionalField enum value
19042 InventoryOptionalFieldEtag = "ETag"
19044 // InventoryOptionalFieldIsMultipartUploaded is a InventoryOptionalField enum value
19045 InventoryOptionalFieldIsMultipartUploaded = "IsMultipartUploaded"
19047 // InventoryOptionalFieldReplicationStatus is a InventoryOptionalField enum value
19048 InventoryOptionalFieldReplicationStatus = "ReplicationStatus"
19052 // MFADeleteEnabled is a MFADelete enum value
19053 MFADeleteEnabled = "Enabled"
19055 // MFADeleteDisabled is a MFADelete enum value
19056 MFADeleteDisabled = "Disabled"
19060 // MFADeleteStatusEnabled is a MFADeleteStatus enum value
19061 MFADeleteStatusEnabled = "Enabled"
19063 // MFADeleteStatusDisabled is a MFADeleteStatus enum value
19064 MFADeleteStatusDisabled = "Disabled"
19068 // MetadataDirectiveCopy is a MetadataDirective enum value
19069 MetadataDirectiveCopy = "COPY"
19071 // MetadataDirectiveReplace is a MetadataDirective enum value
19072 MetadataDirectiveReplace = "REPLACE"
19076 // ObjectCannedACLPrivate is a ObjectCannedACL enum value
19077 ObjectCannedACLPrivate = "private"
19079 // ObjectCannedACLPublicRead is a ObjectCannedACL enum value
19080 ObjectCannedACLPublicRead = "public-read"
19082 // ObjectCannedACLPublicReadWrite is a ObjectCannedACL enum value
19083 ObjectCannedACLPublicReadWrite = "public-read-write"
19085 // ObjectCannedACLAuthenticatedRead is a ObjectCannedACL enum value
19086 ObjectCannedACLAuthenticatedRead = "authenticated-read"
19088 // ObjectCannedACLAwsExecRead is a ObjectCannedACL enum value
19089 ObjectCannedACLAwsExecRead = "aws-exec-read"
19091 // ObjectCannedACLBucketOwnerRead is a ObjectCannedACL enum value
19092 ObjectCannedACLBucketOwnerRead = "bucket-owner-read"
19094 // ObjectCannedACLBucketOwnerFullControl is a ObjectCannedACL enum value
19095 ObjectCannedACLBucketOwnerFullControl = "bucket-owner-full-control"
19099 // ObjectStorageClassStandard is a ObjectStorageClass enum value
19100 ObjectStorageClassStandard = "STANDARD"
19102 // ObjectStorageClassReducedRedundancy is a ObjectStorageClass enum value
19103 ObjectStorageClassReducedRedundancy = "REDUCED_REDUNDANCY"
19105 // ObjectStorageClassGlacier is a ObjectStorageClass enum value
19106 ObjectStorageClassGlacier = "GLACIER"
19110 // ObjectVersionStorageClassStandard is a ObjectVersionStorageClass enum value
19111 ObjectVersionStorageClassStandard = "STANDARD"
19115 // PayerRequester is a Payer enum value
19116 PayerRequester = "Requester"
19118 // PayerBucketOwner is a Payer enum value
19119 PayerBucketOwner = "BucketOwner"
19123 // PermissionFullControl is a Permission enum value
19124 PermissionFullControl = "FULL_CONTROL"
19126 // PermissionWrite is a Permission enum value
19127 PermissionWrite = "WRITE"
19129 // PermissionWriteAcp is a Permission enum value
19130 PermissionWriteAcp = "WRITE_ACP"
19132 // PermissionRead is a Permission enum value
19133 PermissionRead = "READ"
19135 // PermissionReadAcp is a Permission enum value
19136 PermissionReadAcp = "READ_ACP"
19140 // ProtocolHttp is a Protocol enum value
19141 ProtocolHttp = "http"
19143 // ProtocolHttps is a Protocol enum value
19144 ProtocolHttps = "https"
19148 // ReplicationRuleStatusEnabled is a ReplicationRuleStatus enum value
19149 ReplicationRuleStatusEnabled = "Enabled"
19151 // ReplicationRuleStatusDisabled is a ReplicationRuleStatus enum value
19152 ReplicationRuleStatusDisabled = "Disabled"
19156 // ReplicationStatusComplete is a ReplicationStatus enum value
19157 ReplicationStatusComplete = "COMPLETE"
19159 // ReplicationStatusPending is a ReplicationStatus enum value
19160 ReplicationStatusPending = "PENDING"
19162 // ReplicationStatusFailed is a ReplicationStatus enum value
19163 ReplicationStatusFailed = "FAILED"
19165 // ReplicationStatusReplica is a ReplicationStatus enum value
19166 ReplicationStatusReplica = "REPLICA"
19169 // If present, indicates that the requester was successfully charged for the
19172 // RequestChargedRequester is a RequestCharged enum value
19173 RequestChargedRequester = "requester"
19176 // Confirms that the requester knows that she or he will be charged for the
19177 // request. Bucket owners need not specify this parameter in their requests.
19178 // Documentation on downloading objects from requester pays buckets can be found
19179 // at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
19181 // RequestPayerRequester is a RequestPayer enum value
19182 RequestPayerRequester = "requester"
19186 // ServerSideEncryptionAes256 is a ServerSideEncryption enum value
19187 ServerSideEncryptionAes256 = "AES256"
19189 // ServerSideEncryptionAwsKms is a ServerSideEncryption enum value
19190 ServerSideEncryptionAwsKms = "aws:kms"
19194 // StorageClassStandard is a StorageClass enum value
19195 StorageClassStandard = "STANDARD"
19197 // StorageClassReducedRedundancy is a StorageClass enum value
19198 StorageClassReducedRedundancy = "REDUCED_REDUNDANCY"
19200 // StorageClassStandardIa is a StorageClass enum value
19201 StorageClassStandardIa = "STANDARD_IA"
19205 // StorageClassAnalysisSchemaVersionV1 is a StorageClassAnalysisSchemaVersion enum value
19206 StorageClassAnalysisSchemaVersionV1 = "V_1"
19210 // TaggingDirectiveCopy is a TaggingDirective enum value
19211 TaggingDirectiveCopy = "COPY"
19213 // TaggingDirectiveReplace is a TaggingDirective enum value
19214 TaggingDirectiveReplace = "REPLACE"
19218 // TierStandard is a Tier enum value
19219 TierStandard = "Standard"
19221 // TierBulk is a Tier enum value
19224 // TierExpedited is a Tier enum value
19225 TierExpedited = "Expedited"
19229 // TransitionStorageClassGlacier is a TransitionStorageClass enum value
19230 TransitionStorageClassGlacier = "GLACIER"
19232 // TransitionStorageClassStandardIa is a TransitionStorageClass enum value
19233 TransitionStorageClassStandardIa = "STANDARD_IA"
19237 // TypeCanonicalUser is a Type enum value
19238 TypeCanonicalUser = "CanonicalUser"
19240 // TypeAmazonCustomerByEmail is a Type enum value
19241 TypeAmazonCustomerByEmail = "AmazonCustomerByEmail"
19243 // TypeGroup is a Type enum value
19244 TypeGroup = "Group"