Struct: s3.DeleteObjectInput
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom
Structure Field Summary collapse
-
Bucket *string
The bucket name of the bucket containing the object.
-
BypassGovernanceRetention *bool
Indicates whether S3 Object Lock should bypass Governance-mode restrictions to process this operation.
-
ExpectedBucketOwner *string
Ignored by COS.
-
Key *string
Key name of the object to delete.
-
MFA *string
The concatenation of the authentication device’s serial number, a space, and the value that is displayed on your authentication device.
-
RequestPayer *string
Confirms that the requester knows that they will be charged for the request.
-
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) *DeleteObjectInput
operation
SetBucket sets the Bucket field’s value.
-
SetBypassGovernanceRetention(bool) *DeleteObjectInput
operation
SetBypassGovernanceRetention sets the BypassGovernanceRetention field’s value.
-
SetExpectedBucketOwner(string) *DeleteObjectInput
operation
SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.
-
SetKey(string) *DeleteObjectInput
operation
SetKey sets the Key field’s value.
-
SetMFA(string) *DeleteObjectInput
operation
SetMFA sets the MFA field’s value.
-
SetRequestPayer(string) *DeleteObjectInput
operation
SetRequestPayer sets the RequestPayer field’s value.
-
SetVersionId(string) *DeleteObjectInput
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 of the bucket containing the object.
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
BypassGovernanceRetention *bool
`location:"header" locationName:"x-amz-bypass-governance-retention" type:"boolean"`
Indicates whether S3 Object Lock should bypass Governance-mode restrictions to process this operation.
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"`
Key name of the object to delete.
Key is a required field
MFA *string
`location:"header" locationName:"x-amz-mfa" type:"string"`
The concatenation of the authentication device’s serial number, a space, and the value that is displayed on your authentication device. Required to permanently delete a versioned object if versioning is configured with MFA delete enabled.
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.
VersionId *string
`location:"querystring" locationName:"versionId" type:"string"`
VersionId used to reference a specific version of the object.
_ struct{}
`locationName:"DeleteObjectRequest" type:"structure"`
Method Details
func (s DeleteObjectInput) 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”.
10819 10820 10821 |
// File 'service/s3/api.go', line 10819
|
func (s *DeleteObjectInput) SetBucket(v string) *DeleteObjectInput
SetBucket sets the Bucket field’s value.
10846 10847 10848 10849 |
// File 'service/s3/api.go', line 10846
|
func (s *DeleteObjectInput) SetBypassGovernanceRetention(v bool) *DeleteObjectInput
SetBypassGovernanceRetention sets the BypassGovernanceRetention field’s value.
10859 10860 10861 10862 |
// File 'service/s3/api.go', line 10859
|
func (s *DeleteObjectInput) SetExpectedBucketOwner(v string) *DeleteObjectInput
SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.
10865 10866 10867 10868 |
// File 'service/s3/api.go', line 10865
|
func (s *DeleteObjectInput) SetKey(v string) *DeleteObjectInput
SetKey sets the Key field’s value.
10871 10872 10873 10874 |
// File 'service/s3/api.go', line 10871
|
func (s *DeleteObjectInput) SetMFA(v string) *DeleteObjectInput
SetMFA sets the MFA field’s value.
10877 10878 10879 10880 |
// File 'service/s3/api.go', line 10877
|
func (s *DeleteObjectInput) SetRequestPayer(v string) *DeleteObjectInput
SetRequestPayer sets the RequestPayer field’s value.
10883 10884 10885 10886 |
// File 'service/s3/api.go', line 10883
|
func (s *DeleteObjectInput) SetVersionId(v string) *DeleteObjectInput
SetVersionId sets the VersionId field’s value.
10889 10890 10891 10892 |
// File 'service/s3/api.go', line 10889
|
func (s DeleteObjectInput) 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”.
10810 10811 10812 |
// File 'service/s3/api.go', line 10810
|
func (s *DeleteObjectInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 |
// File 'service/s3/api.go', line 10824
|