Struct: s3.RestoreObjectInput
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Bucket *string
The bucket name containing the object to restore.
-
ExpectedBucketOwner *string
Ignored by COS.
-
Key *string
Object key for which the action was initiated.
-
RequestPayer *string
Confirms that the requester knows that they will be charged for the request.
-
RestoreRequest *RestoreRequest
Container for restore job parameters.
-
VersionId *string
VersionId used to reference a specific version of the object.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetBucket(string) *RestoreObjectInput
operation
SetBucket sets the Bucket field's value.
-
SetExpectedBucketOwner(string) *RestoreObjectInput
operation
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
-
SetKey(string) *RestoreObjectInput
operation
SetKey sets the Key field's value.
-
SetRequestPayer(string) *RestoreObjectInput
operation
SetRequestPayer sets the RequestPayer field's value.
-
SetVersionId(string) *RestoreObjectInput
operation
SetVersionId sets the VersionId field's value.
-
String() string
operation
String returns the string representation.
-
Validate() error
operation
Validate inspects the fields of the type to determine if they are valid.
Request Methods
Structure Field Details
Bucket *string
`location:"uri" locationName:"Bucket" type:"string" required:"true"`
The bucket name containing the object to restore.
When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points (docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the Amazon S3 User Guide.
When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see What is S3 on Outposts? (docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the Amazon S3 User Guide.
Bucket is a required field
ExpectedBucketOwner *string
`location:"header" locationName:"x-amz-expected-bucket-owner" type:"string"`
Ignored by COS.
Key *string
`location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`
Object key for which the action was initiated.
Key is a required field
RequestPayer *string
`location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination Amazon S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets (docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the Amazon S3 User Guide.
RestoreRequest *RestoreRequest
`locationName:"RestoreRequest" type:"structure" xmlURI:"http://s3.amazonaws.com/doc/2006-03-01/"`
Container for restore job parameters.
VersionId *string
`location:"querystring" locationName:"versionId" type:"string"`
VersionId used to reference a specific version of the object.
_ struct{}
`locationName:"RestoreObjectRequest" type:"structure" payload:"RestoreRequest"`
Method Details
func (s RestoreObjectInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
21582 21583 21584 |
// File 'service/s3/api.go', line 21582
|
func (s *RestoreObjectInput) SetBucket(v string) *RestoreObjectInput
SetBucket sets the Bucket field's value.
21614 21615 21616 21617 |
// File 'service/s3/api.go', line 21614
|
func (s *RestoreObjectInput) SetExpectedBucketOwner(v string) *RestoreObjectInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field's value.
21627 21628 21629 21630 |
// File 'service/s3/api.go', line 21627
|
func (s *RestoreObjectInput) SetKey(v string) *RestoreObjectInput
SetKey sets the Key field's value.
21633 21634 21635 21636 |
// File 'service/s3/api.go', line 21633
|
func (s *RestoreObjectInput) SetRequestPayer(v string) *RestoreObjectInput
SetRequestPayer sets the RequestPayer field's value.
21639 21640 21641 21642 |
// File 'service/s3/api.go', line 21639
|
func (s *RestoreObjectInput) SetRestoreRequest(v *RestoreRequest) *RestoreObjectInput
You must call the Send() method on the returned request object in order to execute the request.
SetRestoreRequest generates a request.Request object representing the client request for the SetRestore() operation. The output
return value can be used to capture response data after Request.Send() is called.
Creating a request object using this method should be used when you want to inject custom logic into the request lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the service operation method directly instead.
21645 21646 21647 21648 |
// File 'service/s3/api.go', line 21645
|
func (s *RestoreObjectInput) SetVersionId(v string) *RestoreObjectInput
SetVersionId sets the VersionId field's value.
21651 21652 21653 21654 |
// File 'service/s3/api.go', line 21651
|
func (s RestoreObjectInput) String() string
String returns the string representation.
API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.
21573 21574 21575 |
// File 'service/s3/api.go', line 21573
|
func (s *RestoreObjectInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
21587 21588 21589 21590 21591 21592 21593 21594 21595 21596 21597 21598 21599 21600 21601 21602 21603 21604 21605 21606 21607 21608 21609 21610 21611 |
// File 'service/s3/api.go', line 21587
|