chore: upgrade dependencies
This commit is contained in:
499
vendor/github.com/aws/aws-sdk-go-v2/service/s3/serializers.go
generated
vendored
499
vendor/github.com/aws/aws-sdk-go-v2/service/s3/serializers.go
generated
vendored
@@ -14,6 +14,7 @@ import (
|
||||
smithytime "github.com/aws/smithy-go/time"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -176,6 +177,26 @@ func awsRestxml_serializeOpHttpBindingsCompleteMultipartUploadInput(v *CompleteM
|
||||
}
|
||||
}
|
||||
|
||||
if v.ChecksumCRC32 != nil && len(*v.ChecksumCRC32) > 0 {
|
||||
locationName := "X-Amz-Checksum-Crc32"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumCRC32)
|
||||
}
|
||||
|
||||
if v.ChecksumCRC32C != nil && len(*v.ChecksumCRC32C) > 0 {
|
||||
locationName := "X-Amz-Checksum-Crc32c"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumCRC32C)
|
||||
}
|
||||
|
||||
if v.ChecksumSHA1 != nil && len(*v.ChecksumSHA1) > 0 {
|
||||
locationName := "X-Amz-Checksum-Sha1"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumSHA1)
|
||||
}
|
||||
|
||||
if v.ChecksumSHA256 != nil && len(*v.ChecksumSHA256) > 0 {
|
||||
locationName := "X-Amz-Checksum-Sha256"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumSHA256)
|
||||
}
|
||||
|
||||
if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 {
|
||||
locationName := "X-Amz-Expected-Bucket-Owner"
|
||||
encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner)
|
||||
@@ -195,6 +216,21 @@ func awsRestxml_serializeOpHttpBindingsCompleteMultipartUploadInput(v *CompleteM
|
||||
encoder.SetHeader(locationName).String(string(v.RequestPayer))
|
||||
}
|
||||
|
||||
if v.SSECustomerAlgorithm != nil && len(*v.SSECustomerAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Server-Side-Encryption-Customer-Algorithm"
|
||||
encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm)
|
||||
}
|
||||
|
||||
if v.SSECustomerKey != nil && len(*v.SSECustomerKey) > 0 {
|
||||
locationName := "X-Amz-Server-Side-Encryption-Customer-Key"
|
||||
encoder.SetHeader(locationName).String(*v.SSECustomerKey)
|
||||
}
|
||||
|
||||
if v.SSECustomerKeyMD5 != nil && len(*v.SSECustomerKeyMD5) > 0 {
|
||||
locationName := "X-Amz-Server-Side-Encryption-Customer-Key-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5)
|
||||
}
|
||||
|
||||
if v.UploadId != nil {
|
||||
encoder.SetQuery("uploadId").String(*v.UploadId)
|
||||
}
|
||||
@@ -272,6 +308,11 @@ func awsRestxml_serializeOpHttpBindingsCopyObjectInput(v *CopyObjectInput, encod
|
||||
encoder.SetHeader(locationName).String(*v.CacheControl)
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentDisposition != nil && len(*v.ContentDisposition) > 0 {
|
||||
locationName := "Content-Disposition"
|
||||
encoder.SetHeader(locationName).String(*v.ContentDisposition)
|
||||
@@ -576,6 +617,11 @@ func awsRestxml_serializeOpHttpBindingsCreateBucketInput(v *CreateBucketInput, e
|
||||
encoder.SetHeader(locationName).Boolean(v.ObjectLockEnabledForBucket)
|
||||
}
|
||||
|
||||
if len(v.ObjectOwnership) > 0 {
|
||||
locationName := "X-Amz-Object-Ownership"
|
||||
encoder.SetHeader(locationName).String(string(v.ObjectOwnership))
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -649,6 +695,11 @@ func awsRestxml_serializeOpHttpBindingsCreateMultipartUploadInput(v *CreateMulti
|
||||
encoder.SetHeader(locationName).String(*v.CacheControl)
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentDisposition != nil && len(*v.ContentDisposition) > 0 {
|
||||
locationName := "Content-Disposition"
|
||||
encoder.SetHeader(locationName).String(*v.ContentDisposition)
|
||||
@@ -1789,6 +1840,11 @@ func awsRestxml_serializeOpHttpBindingsDeleteObjectsInput(v *DeleteObjectsInput,
|
||||
encoder.SetHeader(locationName).Boolean(v.BypassGovernanceRetention)
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 {
|
||||
locationName := "X-Amz-Expected-Bucket-Owner"
|
||||
encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner)
|
||||
@@ -3272,6 +3328,11 @@ func awsRestxml_serializeOpHttpBindingsGetObjectInput(v *GetObjectInput, encoder
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumMode) > 0 {
|
||||
locationName := "X-Amz-Checksum-Mode"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumMode))
|
||||
}
|
||||
|
||||
if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 {
|
||||
locationName := "X-Amz-Expected-Bucket-Owner"
|
||||
encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner)
|
||||
@@ -3447,6 +3508,126 @@ func awsRestxml_serializeOpHttpBindingsGetObjectAclInput(v *GetObjectAclInput, e
|
||||
return nil
|
||||
}
|
||||
|
||||
type awsRestxml_serializeOpGetObjectAttributes struct {
|
||||
}
|
||||
|
||||
func (*awsRestxml_serializeOpGetObjectAttributes) ID() string {
|
||||
return "OperationSerializer"
|
||||
}
|
||||
|
||||
func (m *awsRestxml_serializeOpGetObjectAttributes) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
||||
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
request, ok := in.Request.(*smithyhttp.Request)
|
||||
if !ok {
|
||||
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
|
||||
}
|
||||
|
||||
input, ok := in.Parameters.(*GetObjectAttributesInput)
|
||||
_ = input
|
||||
if !ok {
|
||||
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
||||
}
|
||||
|
||||
opPath, opQuery := httpbinding.SplitURI("/{Bucket}/{Key+}?attributes")
|
||||
request.URL.Path = smithyhttp.JoinPath(request.URL.Path, opPath)
|
||||
request.URL.RawQuery = smithyhttp.JoinRawQuery(request.URL.RawQuery, opQuery)
|
||||
request.Method = "GET"
|
||||
restEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
||||
if err != nil {
|
||||
return out, metadata, &smithy.SerializationError{Err: err}
|
||||
}
|
||||
|
||||
if err := awsRestxml_serializeOpHttpBindingsGetObjectAttributesInput(input, restEncoder); err != nil {
|
||||
return out, metadata, &smithy.SerializationError{Err: err}
|
||||
}
|
||||
|
||||
if request.Request, err = restEncoder.Encode(request.Request); err != nil {
|
||||
return out, metadata, &smithy.SerializationError{Err: err}
|
||||
}
|
||||
in.Request = request
|
||||
|
||||
return next.HandleSerialize(ctx, in)
|
||||
}
|
||||
func awsRestxml_serializeOpHttpBindingsGetObjectAttributesInput(v *GetObjectAttributesInput, encoder *httpbinding.Encoder) error {
|
||||
if v == nil {
|
||||
return fmt.Errorf("unsupported serialization of nil %T", v)
|
||||
}
|
||||
|
||||
if v.Bucket == nil || len(*v.Bucket) == 0 {
|
||||
return &smithy.SerializationError{Err: fmt.Errorf("input member Bucket must not be empty")}
|
||||
}
|
||||
if v.Bucket != nil {
|
||||
if err := encoder.SetURI("Bucket").String(*v.Bucket); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 {
|
||||
locationName := "X-Amz-Expected-Bucket-Owner"
|
||||
encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner)
|
||||
}
|
||||
|
||||
if v.Key == nil || len(*v.Key) == 0 {
|
||||
return &smithy.SerializationError{Err: fmt.Errorf("input member Key must not be empty")}
|
||||
}
|
||||
if v.Key != nil {
|
||||
if err := encoder.SetURI("Key").String(*v.Key); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if v.MaxParts != 0 {
|
||||
locationName := "X-Amz-Max-Parts"
|
||||
encoder.SetHeader(locationName).Integer(v.MaxParts)
|
||||
}
|
||||
|
||||
if v.ObjectAttributes != nil {
|
||||
locationName := "X-Amz-Object-Attributes"
|
||||
for i := range v.ObjectAttributes {
|
||||
if len(v.ObjectAttributes[i]) > 0 {
|
||||
escaped := string(v.ObjectAttributes[i])
|
||||
if strings.Index(string(v.ObjectAttributes[i]), `,`) != -1 || strings.Index(string(v.ObjectAttributes[i]), `"`) != -1 {
|
||||
escaped = strconv.Quote(string(v.ObjectAttributes[i]))
|
||||
}
|
||||
|
||||
encoder.AddHeader(locationName).String(string(escaped))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if v.PartNumberMarker != nil && len(*v.PartNumberMarker) > 0 {
|
||||
locationName := "X-Amz-Part-Number-Marker"
|
||||
encoder.SetHeader(locationName).String(*v.PartNumberMarker)
|
||||
}
|
||||
|
||||
if len(v.RequestPayer) > 0 {
|
||||
locationName := "X-Amz-Request-Payer"
|
||||
encoder.SetHeader(locationName).String(string(v.RequestPayer))
|
||||
}
|
||||
|
||||
if v.SSECustomerAlgorithm != nil && len(*v.SSECustomerAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Server-Side-Encryption-Customer-Algorithm"
|
||||
encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm)
|
||||
}
|
||||
|
||||
if v.SSECustomerKey != nil && len(*v.SSECustomerKey) > 0 {
|
||||
locationName := "X-Amz-Server-Side-Encryption-Customer-Key"
|
||||
encoder.SetHeader(locationName).String(*v.SSECustomerKey)
|
||||
}
|
||||
|
||||
if v.SSECustomerKeyMD5 != nil && len(*v.SSECustomerKeyMD5) > 0 {
|
||||
locationName := "X-Amz-Server-Side-Encryption-Customer-Key-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5)
|
||||
}
|
||||
|
||||
if v.VersionId != nil {
|
||||
encoder.SetQuery("versionId").String(*v.VersionId)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
type awsRestxml_serializeOpGetObjectLegalHold struct {
|
||||
}
|
||||
|
||||
@@ -4011,6 +4192,11 @@ func awsRestxml_serializeOpHttpBindingsHeadObjectInput(v *HeadObjectInput, encod
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumMode) > 0 {
|
||||
locationName := "X-Amz-Checksum-Mode"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumMode))
|
||||
}
|
||||
|
||||
if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 {
|
||||
locationName := "X-Amz-Expected-Bucket-Owner"
|
||||
encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner)
|
||||
@@ -4829,6 +5015,21 @@ func awsRestxml_serializeOpHttpBindingsListPartsInput(v *ListPartsInput, encoder
|
||||
encoder.SetHeader(locationName).String(string(v.RequestPayer))
|
||||
}
|
||||
|
||||
if v.SSECustomerAlgorithm != nil && len(*v.SSECustomerAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Server-Side-Encryption-Customer-Algorithm"
|
||||
encoder.SetHeader(locationName).String(*v.SSECustomerAlgorithm)
|
||||
}
|
||||
|
||||
if v.SSECustomerKey != nil && len(*v.SSECustomerKey) > 0 {
|
||||
locationName := "X-Amz-Server-Side-Encryption-Customer-Key"
|
||||
encoder.SetHeader(locationName).String(*v.SSECustomerKey)
|
||||
}
|
||||
|
||||
if v.SSECustomerKeyMD5 != nil && len(*v.SSECustomerKeyMD5) > 0 {
|
||||
locationName := "X-Amz-Server-Side-Encryption-Customer-Key-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.SSECustomerKeyMD5)
|
||||
}
|
||||
|
||||
if v.UploadId != nil {
|
||||
encoder.SetQuery("uploadId").String(*v.UploadId)
|
||||
}
|
||||
@@ -4914,6 +5115,11 @@ func awsRestxml_serializeOpHttpBindingsPutBucketAccelerateConfigurationInput(v *
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 {
|
||||
locationName := "X-Amz-Expected-Bucket-Owner"
|
||||
encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner)
|
||||
@@ -5005,6 +5211,11 @@ func awsRestxml_serializeOpHttpBindingsPutBucketAclInput(v *PutBucketAclInput, e
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -5211,6 +5422,11 @@ func awsRestxml_serializeOpHttpBindingsPutBucketCorsInput(v *PutBucketCorsInput,
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -5302,6 +5518,11 @@ func awsRestxml_serializeOpHttpBindingsPutBucketEncryptionInput(v *PutBucketEncr
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -5568,6 +5789,11 @@ func awsRestxml_serializeOpHttpBindingsPutBucketLifecycleConfigurationInput(v *P
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 {
|
||||
locationName := "X-Amz-Expected-Bucket-Owner"
|
||||
encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner)
|
||||
@@ -5654,6 +5880,11 @@ func awsRestxml_serializeOpHttpBindingsPutBucketLoggingInput(v *PutBucketLogging
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -5840,6 +6071,11 @@ func awsRestxml_serializeOpHttpBindingsPutBucketNotificationConfigurationInput(v
|
||||
encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner)
|
||||
}
|
||||
|
||||
if v.SkipDestinationValidation {
|
||||
locationName := "X-Amz-Skip-Destination-Validation"
|
||||
encoder.SetHeader(locationName).Boolean(v.SkipDestinationValidation)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -6000,6 +6236,11 @@ func awsRestxml_serializeOpHttpBindingsPutBucketPolicyInput(v *PutBucketPolicyIn
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ConfirmRemoveSelfBucketAccess {
|
||||
locationName := "X-Amz-Confirm-Remove-Self-Bucket-Access"
|
||||
encoder.SetHeader(locationName).Boolean(v.ConfirmRemoveSelfBucketAccess)
|
||||
@@ -6096,6 +6337,11 @@ func awsRestxml_serializeOpHttpBindingsPutBucketReplicationInput(v *PutBucketRep
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -6192,6 +6438,11 @@ func awsRestxml_serializeOpHttpBindingsPutBucketRequestPaymentInput(v *PutBucket
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -6283,6 +6534,11 @@ func awsRestxml_serializeOpHttpBindingsPutBucketTaggingInput(v *PutBucketTagging
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -6374,6 +6630,11 @@ func awsRestxml_serializeOpHttpBindingsPutBucketVersioningInput(v *PutBucketVers
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -6470,6 +6731,11 @@ func awsRestxml_serializeOpHttpBindingsPutBucketWebsiteInput(v *PutBucketWebsite
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -6564,6 +6830,31 @@ func awsRestxml_serializeOpHttpBindingsPutObjectInput(v *PutObjectInput, encoder
|
||||
encoder.SetHeader(locationName).String(*v.CacheControl)
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ChecksumCRC32 != nil && len(*v.ChecksumCRC32) > 0 {
|
||||
locationName := "X-Amz-Checksum-Crc32"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumCRC32)
|
||||
}
|
||||
|
||||
if v.ChecksumCRC32C != nil && len(*v.ChecksumCRC32C) > 0 {
|
||||
locationName := "X-Amz-Checksum-Crc32c"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumCRC32C)
|
||||
}
|
||||
|
||||
if v.ChecksumSHA1 != nil && len(*v.ChecksumSHA1) > 0 {
|
||||
locationName := "X-Amz-Checksum-Sha1"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumSHA1)
|
||||
}
|
||||
|
||||
if v.ChecksumSHA256 != nil && len(*v.ChecksumSHA256) > 0 {
|
||||
locationName := "X-Amz-Checksum-Sha256"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumSHA256)
|
||||
}
|
||||
|
||||
if v.ContentDisposition != nil && len(*v.ContentDisposition) > 0 {
|
||||
locationName := "Content-Disposition"
|
||||
encoder.SetHeader(locationName).String(*v.ContentDisposition)
|
||||
@@ -6793,6 +7084,11 @@ func awsRestxml_serializeOpHttpBindingsPutObjectAclInput(v *PutObjectAclInput, e
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -6927,6 +7223,11 @@ func awsRestxml_serializeOpHttpBindingsPutObjectLegalHoldInput(v *PutObjectLegal
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -7036,6 +7337,11 @@ func awsRestxml_serializeOpHttpBindingsPutObjectLockConfigurationInput(v *PutObj
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -7142,6 +7448,11 @@ func awsRestxml_serializeOpHttpBindingsPutObjectRetentionInput(v *PutObjectReten
|
||||
encoder.SetHeader(locationName).Boolean(v.BypassGovernanceRetention)
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -7251,6 +7562,11 @@ func awsRestxml_serializeOpHttpBindingsPutObjectTaggingInput(v *PutObjectTagging
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -7360,6 +7676,11 @@ func awsRestxml_serializeOpHttpBindingsPutPublicAccessBlockInput(v *PutPublicAcc
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ContentMD5 != nil && len(*v.ContentMD5) > 0 {
|
||||
locationName := "Content-Md5"
|
||||
encoder.SetHeader(locationName).String(*v.ContentMD5)
|
||||
@@ -7451,6 +7772,11 @@ func awsRestxml_serializeOpHttpBindingsRestoreObjectInput(v *RestoreObjectInput,
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ExpectedBucketOwner != nil && len(*v.ExpectedBucketOwner) > 0 {
|
||||
locationName := "X-Amz-Expected-Bucket-Owner"
|
||||
encoder.SetHeader(locationName).String(*v.ExpectedBucketOwner)
|
||||
@@ -7727,6 +8053,31 @@ func awsRestxml_serializeOpHttpBindingsUploadPartInput(v *UploadPartInput, encod
|
||||
}
|
||||
}
|
||||
|
||||
if len(v.ChecksumAlgorithm) > 0 {
|
||||
locationName := "X-Amz-Sdk-Checksum-Algorithm"
|
||||
encoder.SetHeader(locationName).String(string(v.ChecksumAlgorithm))
|
||||
}
|
||||
|
||||
if v.ChecksumCRC32 != nil && len(*v.ChecksumCRC32) > 0 {
|
||||
locationName := "X-Amz-Checksum-Crc32"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumCRC32)
|
||||
}
|
||||
|
||||
if v.ChecksumCRC32C != nil && len(*v.ChecksumCRC32C) > 0 {
|
||||
locationName := "X-Amz-Checksum-Crc32c"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumCRC32C)
|
||||
}
|
||||
|
||||
if v.ChecksumSHA1 != nil && len(*v.ChecksumSHA1) > 0 {
|
||||
locationName := "X-Amz-Checksum-Sha1"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumSHA1)
|
||||
}
|
||||
|
||||
if v.ChecksumSHA256 != nil && len(*v.ChecksumSHA256) > 0 {
|
||||
locationName := "X-Amz-Checksum-Sha256"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumSHA256)
|
||||
}
|
||||
|
||||
if v.ContentLength != 0 {
|
||||
locationName := "Content-Length"
|
||||
encoder.SetHeader(locationName).Long(v.ContentLength)
|
||||
@@ -8004,6 +8355,26 @@ func awsRestxml_serializeOpHttpBindingsWriteGetObjectResponseInput(v *WriteGetOb
|
||||
encoder.SetHeader(locationName).String(*v.CacheControl)
|
||||
}
|
||||
|
||||
if v.ChecksumCRC32 != nil && len(*v.ChecksumCRC32) > 0 {
|
||||
locationName := "X-Amz-Fwd-Header-X-Amz-Checksum-Crc32"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumCRC32)
|
||||
}
|
||||
|
||||
if v.ChecksumCRC32C != nil && len(*v.ChecksumCRC32C) > 0 {
|
||||
locationName := "X-Amz-Fwd-Header-X-Amz-Checksum-Crc32c"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumCRC32C)
|
||||
}
|
||||
|
||||
if v.ChecksumSHA1 != nil && len(*v.ChecksumSHA1) > 0 {
|
||||
locationName := "X-Amz-Fwd-Header-X-Amz-Checksum-Sha1"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumSHA1)
|
||||
}
|
||||
|
||||
if v.ChecksumSHA256 != nil && len(*v.ChecksumSHA256) > 0 {
|
||||
locationName := "X-Amz-Fwd-Header-X-Amz-Checksum-Sha256"
|
||||
encoder.SetHeader(locationName).String(*v.ChecksumSHA256)
|
||||
}
|
||||
|
||||
if v.ContentDisposition != nil && len(*v.ContentDisposition) > 0 {
|
||||
locationName := "X-Amz-Fwd-Header-Content-Disposition"
|
||||
encoder.SetHeader(locationName).String(*v.ContentDisposition)
|
||||
@@ -8530,6 +8901,50 @@ func awsRestxml_serializeDocumentCompletedMultipartUpload(v *types.CompletedMult
|
||||
|
||||
func awsRestxml_serializeDocumentCompletedPart(v *types.CompletedPart, value smithyxml.Value) error {
|
||||
defer value.Close()
|
||||
if v.ChecksumCRC32 != nil {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
Name: smithyxml.Name{
|
||||
Local: "ChecksumCRC32",
|
||||
},
|
||||
Attr: rootAttr,
|
||||
}
|
||||
el := value.MemberElement(root)
|
||||
el.String(*v.ChecksumCRC32)
|
||||
}
|
||||
if v.ChecksumCRC32C != nil {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
Name: smithyxml.Name{
|
||||
Local: "ChecksumCRC32C",
|
||||
},
|
||||
Attr: rootAttr,
|
||||
}
|
||||
el := value.MemberElement(root)
|
||||
el.String(*v.ChecksumCRC32C)
|
||||
}
|
||||
if v.ChecksumSHA1 != nil {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
Name: smithyxml.Name{
|
||||
Local: "ChecksumSHA1",
|
||||
},
|
||||
Attr: rootAttr,
|
||||
}
|
||||
el := value.MemberElement(root)
|
||||
el.String(*v.ChecksumSHA1)
|
||||
}
|
||||
if v.ChecksumSHA256 != nil {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
Name: smithyxml.Name{
|
||||
Local: "ChecksumSHA256",
|
||||
},
|
||||
Attr: rootAttr,
|
||||
}
|
||||
el := value.MemberElement(root)
|
||||
el.String(*v.ChecksumSHA256)
|
||||
}
|
||||
if v.ETag != nil {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
@@ -9110,6 +9525,11 @@ func awsRestxml_serializeDocumentErrorDocument(v *types.ErrorDocument, value smi
|
||||
return nil
|
||||
}
|
||||
|
||||
func awsRestxml_serializeDocumentEventBridgeConfiguration(v *types.EventBridgeConfiguration, value smithyxml.Value) error {
|
||||
defer value.Close()
|
||||
return nil
|
||||
}
|
||||
|
||||
func awsRestxml_serializeDocumentEventList(v []types.Event, value smithyxml.Value) error {
|
||||
var array *smithyxml.Array
|
||||
if !value.IsFlattened() {
|
||||
@@ -10020,6 +10440,28 @@ func awsRestxml_serializeDocumentLifecycleRule(v *types.LifecycleRule, value smi
|
||||
|
||||
func awsRestxml_serializeDocumentLifecycleRuleAndOperator(v *types.LifecycleRuleAndOperator, value smithyxml.Value) error {
|
||||
defer value.Close()
|
||||
if v.ObjectSizeGreaterThan != 0 {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
Name: smithyxml.Name{
|
||||
Local: "ObjectSizeGreaterThan",
|
||||
},
|
||||
Attr: rootAttr,
|
||||
}
|
||||
el := value.MemberElement(root)
|
||||
el.Long(v.ObjectSizeGreaterThan)
|
||||
}
|
||||
if v.ObjectSizeLessThan != 0 {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
Name: smithyxml.Name{
|
||||
Local: "ObjectSizeLessThan",
|
||||
},
|
||||
Attr: rootAttr,
|
||||
}
|
||||
el := value.MemberElement(root)
|
||||
el.Long(v.ObjectSizeLessThan)
|
||||
}
|
||||
if v.Prefix != nil {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
@@ -10063,6 +10505,28 @@ func awsRestxml_serializeDocumentLifecycleRuleFilter(v types.LifecycleRuleFilter
|
||||
return err
|
||||
}
|
||||
|
||||
case *types.LifecycleRuleFilterMemberObjectSizeGreaterThan:
|
||||
customMemberNameAttr := []smithyxml.Attr{}
|
||||
customMemberName := smithyxml.StartElement{
|
||||
Name: smithyxml.Name{
|
||||
Local: "ObjectSizeGreaterThan",
|
||||
},
|
||||
Attr: customMemberNameAttr,
|
||||
}
|
||||
av := value.MemberElement(customMemberName)
|
||||
av.Long(uv.Value)
|
||||
|
||||
case *types.LifecycleRuleFilterMemberObjectSizeLessThan:
|
||||
customMemberNameAttr := []smithyxml.Attr{}
|
||||
customMemberName := smithyxml.StartElement{
|
||||
Name: smithyxml.Name{
|
||||
Local: "ObjectSizeLessThan",
|
||||
},
|
||||
Attr: customMemberNameAttr,
|
||||
}
|
||||
av := value.MemberElement(customMemberName)
|
||||
av.Long(uv.Value)
|
||||
|
||||
case *types.LifecycleRuleFilterMemberPrefix:
|
||||
customMemberNameAttr := []smithyxml.Attr{}
|
||||
customMemberName := smithyxml.StartElement{
|
||||
@@ -10334,6 +10798,17 @@ func awsRestxml_serializeDocumentMetricsFilter(v types.MetricsFilter, value smit
|
||||
|
||||
func awsRestxml_serializeDocumentNoncurrentVersionExpiration(v *types.NoncurrentVersionExpiration, value smithyxml.Value) error {
|
||||
defer value.Close()
|
||||
if v.NewerNoncurrentVersions != 0 {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
Name: smithyxml.Name{
|
||||
Local: "NewerNoncurrentVersions",
|
||||
},
|
||||
Attr: rootAttr,
|
||||
}
|
||||
el := value.MemberElement(root)
|
||||
el.Integer(v.NewerNoncurrentVersions)
|
||||
}
|
||||
if v.NoncurrentDays != 0 {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
@@ -10350,6 +10825,17 @@ func awsRestxml_serializeDocumentNoncurrentVersionExpiration(v *types.Noncurrent
|
||||
|
||||
func awsRestxml_serializeDocumentNoncurrentVersionTransition(v *types.NoncurrentVersionTransition, value smithyxml.Value) error {
|
||||
defer value.Close()
|
||||
if v.NewerNoncurrentVersions != 0 {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
Name: smithyxml.Name{
|
||||
Local: "NewerNoncurrentVersions",
|
||||
},
|
||||
Attr: rootAttr,
|
||||
}
|
||||
el := value.MemberElement(root)
|
||||
el.Integer(v.NewerNoncurrentVersions)
|
||||
}
|
||||
if v.NoncurrentDays != 0 {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
@@ -10392,6 +10878,19 @@ func awsRestxml_serializeDocumentNoncurrentVersionTransitionList(v []types.Noncu
|
||||
|
||||
func awsRestxml_serializeDocumentNotificationConfiguration(v *types.NotificationConfiguration, value smithyxml.Value) error {
|
||||
defer value.Close()
|
||||
if v.EventBridgeConfiguration != nil {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
Name: smithyxml.Name{
|
||||
Local: "EventBridgeConfiguration",
|
||||
},
|
||||
Attr: rootAttr,
|
||||
}
|
||||
el := value.MemberElement(root)
|
||||
if err := awsRestxml_serializeDocumentEventBridgeConfiguration(v.EventBridgeConfiguration, el); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if v.LambdaFunctionConfigurations != nil {
|
||||
rootAttr := []smithyxml.Attr{}
|
||||
root := smithyxml.StartElement{
|
||||
|
||||
Reference in New Issue
Block a user