Struct: s3.DeleteObjectTaggingInput

import "../ibm-cos-sdk-go/service/s3"

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`

The bucket name containing the objects from which to remove the tags.

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"`

The key that identifies the object in the bucket from which to remove all tags.

Key is a required field

VersionId *string `location:"querystring" locationName:"versionId" type:"string"`

The versionId of the object that the tag-set will be removed from.

_ struct{} `locationName:"DeleteObjectTaggingRequest" type:"structure"`

Method Details

func (s DeleteObjectTaggingInput) 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”.



10998
10999
11000
// File 'service/s3/api.go', line 10998

func (s DeleteObjectTaggingInput) GoString() string { return s.String() }

func (s *DeleteObjectTaggingInput) SetBucket(v string) *DeleteObjectTaggingInput

SetBucket sets the Bucket field’s value.



11025
11026
11027
11028
// File 'service/s3/api.go', line 11025

func (s *DeleteObjectTaggingInput) SetBucket(v string) *DeleteObjectTaggingInput { s.Bucket = &v return s }

func (s *DeleteObjectTaggingInput) SetExpectedBucketOwner(v string) *DeleteObjectTaggingInput

SetExpectedBucketOwner sets the ExpectedBucketOwner field’s value.



11038
11039
11040
11041
// File 'service/s3/api.go', line 11038

func (s *DeleteObjectTaggingInput) SetExpectedBucketOwner(v string) *DeleteObjectTaggingInput { s.ExpectedBucketOwner = &v return s }

func (s *DeleteObjectTaggingInput) SetKey(v string) *DeleteObjectTaggingInput

SetKey sets the Key field’s value.



11044
11045
11046
11047
// File 'service/s3/api.go', line 11044

func (s *DeleteObjectTaggingInput) SetKey(v string) *DeleteObjectTaggingInput { s.Key = &v return s }

func (s *DeleteObjectTaggingInput) SetVersionId(v string) *DeleteObjectTaggingInput

SetVersionId sets the VersionId field’s value.



11050
11051
11052
11053
// File 'service/s3/api.go', line 11050

func (s *DeleteObjectTaggingInput) SetVersionId(v string) *DeleteObjectTaggingInput { s.VersionId = &v return s }

func (s DeleteObjectTaggingInput) 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”.



10989
10990
10991
// File 'service/s3/api.go', line 10989

func (s DeleteObjectTaggingInput) String() string { return awsutil.Prettify(s) }

func (s *DeleteObjectTaggingInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.



11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
// File 'service/s3/api.go', line 11003

func (s *DeleteObjectTaggingInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteObjectTaggingInput"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } if s.Bucket != nil && len(*s.Bucket) < 1 { invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil }