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”.
22347 22348 22349 |
// File 'service/s3/api.go', line 22347
|
func (s *RestoreObjectInput) SetBucket(v string) *RestoreObjectInput
SetBucket sets the Bucket field’s value.
22379 22380 22381 22382 |
// File 'service/s3/api.go', line 22379
|
func (s *RestoreObjectInput) SetExpectedBucketOwner(v string) *RestoreObjectInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.
22392 22393 22394 22395 |
// File 'service/s3/api.go', line 22392
|
func (s *RestoreObjectInput) SetKey(v string) *RestoreObjectInput
SetKey sets the Key field’s value.
22398 22399 22400 22401 |
// File 'service/s3/api.go', line 22398
|
func (s *RestoreObjectInput) SetRequestPayer(v string) *RestoreObjectInput
SetRequestPayer sets the RequestPayer field’s value.
22404 22405 22406 22407 |
// File 'service/s3/api.go', line 22404
|
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.
22410 22411 22412 22413 |
// File 'service/s3/api.go', line 22410
|
func (s *RestoreObjectInput) SetVersionId(v string) *RestoreObjectInput
SetVersionId sets the VersionId field’s value.
22416 22417 22418 22419 |
// File 'service/s3/api.go', line 22416
|
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”.
22338 22339 22340 |
// File 'service/s3/api.go', line 22338
|
func (s *RestoreObjectInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
22352 22353 22354 22355 22356 22357 22358 22359 22360 22361 22362 22363 22364 22365 22366 22367 22368 22369 22370 22371 22372 22373 22374 22375 22376 |
// File 'service/s3/api.go', line 22352
|