Struct: s3.GetObjectRetentionInput
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Bucket *string
The bucket name containing the object whose retention settings you want to retrieve.
-
ExpectedBucketOwner *string
Ignored by COS.
-
Key *string
The key name for the object whose retention settings you want to retrieve.
-
RequestPayer *string
Ignored by COS.
-
VersionId *string
The version ID for the object whose retention settings you want to retrieve.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetBucket(string) *GetObjectRetentionInput
operation
SetBucket sets the Bucket field’s value.
-
SetExpectedBucketOwner(string) *GetObjectRetentionInput
operation
SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.
-
SetKey(string) *GetObjectRetentionInput
operation
SetKey sets the Key field’s value.
-
SetRequestPayer(string) *GetObjectRetentionInput
operation
SetRequestPayer sets the RequestPayer field’s value.
-
SetVersionId(string) *GetObjectRetentionInput
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.
Structure Field Details
Bucket *string
`location:"uri" locationName:"Bucket" type:"string" required:"true"`
The bucket name containing the object whose retention settings you want to retrieve.
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.
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"`
The key name for the object whose retention settings you want to retrieve.
Key is a required field
RequestPayer *string
`location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`
Ignored by COS.
VersionId *string
`location:"querystring" locationName:"versionId" type:"string"`
The version ID for the object whose retention settings you want to retrieve.
_ struct{}
`locationName:"GetObjectRetentionRequest" type:"structure"`
Method Details
func (s GetObjectRetentionInput) 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”.
14152 14153 14154 |
// File 'service/s3/api.go', line 14152
|
func (s *GetObjectRetentionInput) SetBucket(v string) *GetObjectRetentionInput
SetBucket sets the Bucket field’s value.
14179 14180 14181 14182 |
// File 'service/s3/api.go', line 14179
|
func (s *GetObjectRetentionInput) SetExpectedBucketOwner(v string) *GetObjectRetentionInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.
14192 14193 14194 14195 |
// File 'service/s3/api.go', line 14192
|
func (s *GetObjectRetentionInput) SetKey(v string) *GetObjectRetentionInput
SetKey sets the Key field’s value.
14198 14199 14200 14201 |
// File 'service/s3/api.go', line 14198
|
func (s *GetObjectRetentionInput) SetRequestPayer(v string) *GetObjectRetentionInput
SetRequestPayer sets the RequestPayer field’s value.
14204 14205 14206 14207 |
// File 'service/s3/api.go', line 14204
|
func (s *GetObjectRetentionInput) SetVersionId(v string) *GetObjectRetentionInput
SetVersionId sets the VersionId field’s value.
14210 14211 14212 14213 |
// File 'service/s3/api.go', line 14210
|
func (s GetObjectRetentionInput) 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”.
14143 14144 14145 |
// File 'service/s3/api.go', line 14143
|
func (s *GetObjectRetentionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 |
// File 'service/s3/api.go', line 14157
|