From e9ce6fc56c1fdfea67805687e31b91add64bae63 Mon Sep 17 00:00:00 2001 From: skotambkar Date: Fri, 6 Nov 2020 15:57:33 -0800 Subject: [PATCH] s3 control client using new host prefix middleware --- service/s3control/api_op_CreateAccessPoint.go | 16 ++++++++-------- service/s3control/api_op_CreateJob.go | 16 ++++++++-------- service/s3control/api_op_DeleteAccessPoint.go | 16 ++++++++-------- .../s3control/api_op_DeleteAccessPointPolicy.go | 16 ++++++++-------- service/s3control/api_op_DeleteBucket.go | 16 ++++++++-------- .../api_op_DeleteBucketLifecycleConfiguration.go | 16 ++++++++-------- service/s3control/api_op_DeleteBucketPolicy.go | 16 ++++++++-------- service/s3control/api_op_DeleteBucketTagging.go | 16 ++++++++-------- service/s3control/api_op_DeleteJobTagging.go | 16 ++++++++-------- .../s3control/api_op_DeletePublicAccessBlock.go | 16 ++++++++-------- service/s3control/api_op_DescribeJob.go | 16 ++++++++-------- service/s3control/api_op_GetAccessPoint.go | 16 ++++++++-------- service/s3control/api_op_GetAccessPointPolicy.go | 16 ++++++++-------- .../api_op_GetAccessPointPolicyStatus.go | 16 ++++++++-------- service/s3control/api_op_GetBucket.go | 16 ++++++++-------- .../api_op_GetBucketLifecycleConfiguration.go | 16 ++++++++-------- service/s3control/api_op_GetBucketPolicy.go | 16 ++++++++-------- service/s3control/api_op_GetBucketTagging.go | 16 ++++++++-------- service/s3control/api_op_GetJobTagging.go | 16 ++++++++-------- service/s3control/api_op_GetPublicAccessBlock.go | 16 ++++++++-------- service/s3control/api_op_ListAccessPoints.go | 16 ++++++++-------- service/s3control/api_op_ListJobs.go | 16 ++++++++-------- service/s3control/api_op_ListRegionalBuckets.go | 16 ++++++++-------- service/s3control/api_op_PutAccessPointPolicy.go | 16 ++++++++-------- .../api_op_PutBucketLifecycleConfiguration.go | 16 ++++++++-------- service/s3control/api_op_PutBucketPolicy.go | 16 ++++++++-------- service/s3control/api_op_PutBucketTagging.go | 16 ++++++++-------- service/s3control/api_op_PutJobTagging.go | 16 ++++++++-------- service/s3control/api_op_PutPublicAccessBlock.go | 16 ++++++++-------- service/s3control/api_op_UpdateJobPriority.go | 16 ++++++++-------- service/s3control/api_op_UpdateJobStatus.go | 16 ++++++++-------- service/s3control/go.mod | 2 +- service/s3control/go.sum | 3 +++ 33 files changed, 252 insertions(+), 249 deletions(-) diff --git a/service/s3control/api_op_CreateAccessPoint.go b/service/s3control/api_op_CreateAccessPoint.go index f108b163e6a..22c0c38fb7b 100644 --- a/service/s3control/api_op_CreateAccessPoint.go +++ b/service/s3control/api_op_CreateAccessPoint.go @@ -192,11 +192,11 @@ func (*endpointPrefix_opCreateAccessPointMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opCreateAccessPointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opCreateAccessPointMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -218,12 +218,12 @@ func (m *endpointPrefix_opCreateAccessPointMiddleware) HandleSerialize(ctx conte prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opCreateAccessPointMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opCreateAccessPointMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opCreateAccessPointMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opCreateAccessPointMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opCreateAccessPoint(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_CreateJob.go b/service/s3control/api_op_CreateJob.go index a31b150b02e..af3c42849ce 100644 --- a/service/s3control/api_op_CreateJob.go +++ b/service/s3control/api_op_CreateJob.go @@ -195,11 +195,11 @@ func (*endpointPrefix_opCreateJobMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opCreateJobMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opCreateJobMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -221,12 +221,12 @@ func (m *endpointPrefix_opCreateJobMiddleware) HandleSerialize(ctx context.Conte prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opCreateJobMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opCreateJobMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opCreateJobMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opCreateJobMiddleware{}, middleware.Before) } type idempotencyToken_initializeOpCreateJob struct { diff --git a/service/s3control/api_op_DeleteAccessPoint.go b/service/s3control/api_op_DeleteAccessPoint.go index 1c5f41340e7..563bd6c7849 100644 --- a/service/s3control/api_op_DeleteAccessPoint.go +++ b/service/s3control/api_op_DeleteAccessPoint.go @@ -148,11 +148,11 @@ func (*endpointPrefix_opDeleteAccessPointMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opDeleteAccessPointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opDeleteAccessPointMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -174,12 +174,12 @@ func (m *endpointPrefix_opDeleteAccessPointMiddleware) HandleSerialize(ctx conte prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opDeleteAccessPointMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opDeleteAccessPointMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opDeleteAccessPointMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opDeleteAccessPointMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opDeleteAccessPoint(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_DeleteAccessPointPolicy.go b/service/s3control/api_op_DeleteAccessPointPolicy.go index ad9c5e16300..c23c7250d0e 100644 --- a/service/s3control/api_op_DeleteAccessPointPolicy.go +++ b/service/s3control/api_op_DeleteAccessPointPolicy.go @@ -144,11 +144,11 @@ func (*endpointPrefix_opDeleteAccessPointPolicyMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opDeleteAccessPointPolicyMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opDeleteAccessPointPolicyMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -170,12 +170,12 @@ func (m *endpointPrefix_opDeleteAccessPointPolicyMiddleware) HandleSerialize(ctx prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opDeleteAccessPointPolicyMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opDeleteAccessPointPolicyMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opDeleteAccessPointPolicyMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opDeleteAccessPointPolicyMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opDeleteAccessPointPolicy(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_DeleteBucket.go b/service/s3control/api_op_DeleteBucket.go index e4ad1c40e92..e536f2b72a6 100644 --- a/service/s3control/api_op_DeleteBucket.go +++ b/service/s3control/api_op_DeleteBucket.go @@ -154,11 +154,11 @@ func (*endpointPrefix_opDeleteBucketMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opDeleteBucketMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opDeleteBucketMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -180,12 +180,12 @@ func (m *endpointPrefix_opDeleteBucketMiddleware) HandleSerialize(ctx context.Co prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opDeleteBucketMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opDeleteBucketMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opDeleteBucketMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opDeleteBucketMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opDeleteBucket(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go b/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go index c1bfa18935c..c23e6158274 100644 --- a/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go +++ b/service/s3control/api_op_DeleteBucketLifecycleConfiguration.go @@ -159,11 +159,11 @@ func (*endpointPrefix_opDeleteBucketLifecycleConfigurationMiddleware) ID() strin return "EndpointHostPrefix" } -func (m *endpointPrefix_opDeleteBucketLifecycleConfigurationMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opDeleteBucketLifecycleConfigurationMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -185,12 +185,12 @@ func (m *endpointPrefix_opDeleteBucketLifecycleConfigurationMiddleware) HandleSe prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opDeleteBucketLifecycleConfigurationMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opDeleteBucketLifecycleConfigurationMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opDeleteBucketLifecycleConfigurationMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opDeleteBucketLifecycleConfigurationMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opDeleteBucketLifecycleConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_DeleteBucketPolicy.go b/service/s3control/api_op_DeleteBucketPolicy.go index a4e41abc12d..b1e413dc0ec 100644 --- a/service/s3control/api_op_DeleteBucketPolicy.go +++ b/service/s3control/api_op_DeleteBucketPolicy.go @@ -162,11 +162,11 @@ func (*endpointPrefix_opDeleteBucketPolicyMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opDeleteBucketPolicyMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opDeleteBucketPolicyMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -188,12 +188,12 @@ func (m *endpointPrefix_opDeleteBucketPolicyMiddleware) HandleSerialize(ctx cont prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opDeleteBucketPolicyMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opDeleteBucketPolicyMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opDeleteBucketPolicyMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opDeleteBucketPolicyMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opDeleteBucketPolicy(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_DeleteBucketTagging.go b/service/s3control/api_op_DeleteBucketTagging.go index c558ca6df3c..0de919f519c 100644 --- a/service/s3control/api_op_DeleteBucketTagging.go +++ b/service/s3control/api_op_DeleteBucketTagging.go @@ -152,11 +152,11 @@ func (*endpointPrefix_opDeleteBucketTaggingMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opDeleteBucketTaggingMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opDeleteBucketTaggingMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -178,12 +178,12 @@ func (m *endpointPrefix_opDeleteBucketTaggingMiddleware) HandleSerialize(ctx con prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opDeleteBucketTaggingMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opDeleteBucketTaggingMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opDeleteBucketTaggingMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opDeleteBucketTaggingMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opDeleteBucketTagging(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_DeleteJobTagging.go b/service/s3control/api_op_DeleteJobTagging.go index ef1b980b4d1..40423a05957 100644 --- a/service/s3control/api_op_DeleteJobTagging.go +++ b/service/s3control/api_op_DeleteJobTagging.go @@ -140,11 +140,11 @@ func (*endpointPrefix_opDeleteJobTaggingMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opDeleteJobTaggingMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opDeleteJobTaggingMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -166,12 +166,12 @@ func (m *endpointPrefix_opDeleteJobTaggingMiddleware) HandleSerialize(ctx contex prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opDeleteJobTaggingMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opDeleteJobTaggingMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opDeleteJobTaggingMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opDeleteJobTaggingMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opDeleteJobTagging(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_DeletePublicAccessBlock.go b/service/s3control/api_op_DeletePublicAccessBlock.go index f19cb3e1fca..453d0d51629 100644 --- a/service/s3control/api_op_DeletePublicAccessBlock.go +++ b/service/s3control/api_op_DeletePublicAccessBlock.go @@ -129,11 +129,11 @@ func (*endpointPrefix_opDeletePublicAccessBlockMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opDeletePublicAccessBlockMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opDeletePublicAccessBlockMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -155,12 +155,12 @@ func (m *endpointPrefix_opDeletePublicAccessBlockMiddleware) HandleSerialize(ctx prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opDeletePublicAccessBlockMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opDeletePublicAccessBlockMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opDeletePublicAccessBlockMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opDeletePublicAccessBlockMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opDeletePublicAccessBlock(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_DescribeJob.go b/service/s3control/api_op_DescribeJob.go index eb06a74f711..bc4290db3ba 100644 --- a/service/s3control/api_op_DescribeJob.go +++ b/service/s3control/api_op_DescribeJob.go @@ -148,11 +148,11 @@ func (*endpointPrefix_opDescribeJobMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opDescribeJobMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opDescribeJobMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -174,12 +174,12 @@ func (m *endpointPrefix_opDescribeJobMiddleware) HandleSerialize(ctx context.Con prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opDescribeJobMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opDescribeJobMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opDescribeJobMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opDescribeJobMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opDescribeJob(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_GetAccessPoint.go b/service/s3control/api_op_GetAccessPoint.go index 442f0cc5f33..f3007230cc1 100644 --- a/service/s3control/api_op_GetAccessPoint.go +++ b/service/s3control/api_op_GetAccessPoint.go @@ -181,11 +181,11 @@ func (*endpointPrefix_opGetAccessPointMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opGetAccessPointMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opGetAccessPointMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -207,12 +207,12 @@ func (m *endpointPrefix_opGetAccessPointMiddleware) HandleSerialize(ctx context. prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opGetAccessPointMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opGetAccessPointMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opGetAccessPointMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opGetAccessPointMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opGetAccessPoint(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_GetAccessPointPolicy.go b/service/s3control/api_op_GetAccessPointPolicy.go index 648c738b506..607b17c2814 100644 --- a/service/s3control/api_op_GetAccessPointPolicy.go +++ b/service/s3control/api_op_GetAccessPointPolicy.go @@ -141,11 +141,11 @@ func (*endpointPrefix_opGetAccessPointPolicyMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opGetAccessPointPolicyMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opGetAccessPointPolicyMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -167,12 +167,12 @@ func (m *endpointPrefix_opGetAccessPointPolicyMiddleware) HandleSerialize(ctx co prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opGetAccessPointPolicyMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opGetAccessPointPolicyMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opGetAccessPointPolicyMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opGetAccessPointPolicyMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opGetAccessPointPolicy(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_GetAccessPointPolicyStatus.go b/service/s3control/api_op_GetAccessPointPolicyStatus.go index e17d6eb3e3e..711448b9620 100644 --- a/service/s3control/api_op_GetAccessPointPolicyStatus.go +++ b/service/s3control/api_op_GetAccessPointPolicyStatus.go @@ -132,11 +132,11 @@ func (*endpointPrefix_opGetAccessPointPolicyStatusMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opGetAccessPointPolicyStatusMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opGetAccessPointPolicyStatusMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -158,12 +158,12 @@ func (m *endpointPrefix_opGetAccessPointPolicyStatusMiddleware) HandleSerialize( prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opGetAccessPointPolicyStatusMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opGetAccessPointPolicyStatusMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opGetAccessPointPolicyStatusMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opGetAccessPointPolicyStatusMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opGetAccessPointPolicyStatus(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_GetBucket.go b/service/s3control/api_op_GetBucket.go index a344077c0b8..5cb1a3a8c7c 100644 --- a/service/s3control/api_op_GetBucket.go +++ b/service/s3control/api_op_GetBucket.go @@ -153,11 +153,11 @@ func (*endpointPrefix_opGetBucketMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opGetBucketMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opGetBucketMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -179,12 +179,12 @@ func (m *endpointPrefix_opGetBucketMiddleware) HandleSerialize(ctx context.Conte prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opGetBucketMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opGetBucketMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opGetBucketMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opGetBucketMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opGetBucket(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_GetBucketLifecycleConfiguration.go b/service/s3control/api_op_GetBucketLifecycleConfiguration.go index d7144b8f40a..48149aa9dd1 100644 --- a/service/s3control/api_op_GetBucketLifecycleConfiguration.go +++ b/service/s3control/api_op_GetBucketLifecycleConfiguration.go @@ -179,11 +179,11 @@ func (*endpointPrefix_opGetBucketLifecycleConfigurationMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opGetBucketLifecycleConfigurationMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opGetBucketLifecycleConfigurationMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -205,12 +205,12 @@ func (m *endpointPrefix_opGetBucketLifecycleConfigurationMiddleware) HandleSeria prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opGetBucketLifecycleConfigurationMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opGetBucketLifecycleConfigurationMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opGetBucketLifecycleConfigurationMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opGetBucketLifecycleConfigurationMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opGetBucketLifecycleConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_GetBucketPolicy.go b/service/s3control/api_op_GetBucketPolicy.go index 9f967592b90..e286295e1b9 100644 --- a/service/s3control/api_op_GetBucketPolicy.go +++ b/service/s3control/api_op_GetBucketPolicy.go @@ -168,11 +168,11 @@ func (*endpointPrefix_opGetBucketPolicyMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opGetBucketPolicyMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opGetBucketPolicyMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -194,12 +194,12 @@ func (m *endpointPrefix_opGetBucketPolicyMiddleware) HandleSerialize(ctx context prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opGetBucketPolicyMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opGetBucketPolicyMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opGetBucketPolicyMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opGetBucketPolicyMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opGetBucketPolicy(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_GetBucketTagging.go b/service/s3control/api_op_GetBucketTagging.go index 7be3a07ad49..5c3e36347e7 100644 --- a/service/s3control/api_op_GetBucketTagging.go +++ b/service/s3control/api_op_GetBucketTagging.go @@ -167,11 +167,11 @@ func (*endpointPrefix_opGetBucketTaggingMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opGetBucketTaggingMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opGetBucketTaggingMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -193,12 +193,12 @@ func (m *endpointPrefix_opGetBucketTaggingMiddleware) HandleSerialize(ctx contex prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opGetBucketTaggingMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opGetBucketTaggingMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opGetBucketTaggingMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opGetBucketTaggingMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opGetBucketTagging(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_GetJobTagging.go b/service/s3control/api_op_GetJobTagging.go index c5b6f831eba..937b55e41c1 100644 --- a/service/s3control/api_op_GetJobTagging.go +++ b/service/s3control/api_op_GetJobTagging.go @@ -144,11 +144,11 @@ func (*endpointPrefix_opGetJobTaggingMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opGetJobTaggingMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opGetJobTaggingMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -170,12 +170,12 @@ func (m *endpointPrefix_opGetJobTaggingMiddleware) HandleSerialize(ctx context.C prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opGetJobTaggingMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opGetJobTaggingMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opGetJobTaggingMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opGetJobTaggingMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opGetJobTagging(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_GetPublicAccessBlock.go b/service/s3control/api_op_GetPublicAccessBlock.go index c936f2470db..0837c47c80b 100644 --- a/service/s3control/api_op_GetPublicAccessBlock.go +++ b/service/s3control/api_op_GetPublicAccessBlock.go @@ -134,11 +134,11 @@ func (*endpointPrefix_opGetPublicAccessBlockMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opGetPublicAccessBlockMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opGetPublicAccessBlockMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -160,12 +160,12 @@ func (m *endpointPrefix_opGetPublicAccessBlockMiddleware) HandleSerialize(ctx co prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opGetPublicAccessBlockMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opGetPublicAccessBlockMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opGetPublicAccessBlockMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opGetPublicAccessBlockMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opGetPublicAccessBlock(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_ListAccessPoints.go b/service/s3control/api_op_ListAccessPoints.go index b58d3131d22..c062c690bd2 100644 --- a/service/s3control/api_op_ListAccessPoints.go +++ b/service/s3control/api_op_ListAccessPoints.go @@ -172,11 +172,11 @@ func (*endpointPrefix_opListAccessPointsMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opListAccessPointsMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opListAccessPointsMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -198,12 +198,12 @@ func (m *endpointPrefix_opListAccessPointsMiddleware) HandleSerialize(ctx contex prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opListAccessPointsMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opListAccessPointsMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opListAccessPointsMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opListAccessPointsMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opListAccessPoints(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_ListJobs.go b/service/s3control/api_op_ListJobs.go index 580ba919af7..5542da7b769 100644 --- a/service/s3control/api_op_ListJobs.go +++ b/service/s3control/api_op_ListJobs.go @@ -163,11 +163,11 @@ func (*endpointPrefix_opListJobsMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opListJobsMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opListJobsMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -189,12 +189,12 @@ func (m *endpointPrefix_opListJobsMiddleware) HandleSerialize(ctx context.Contex prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opListJobsMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opListJobsMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opListJobsMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opListJobsMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opListJobs(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_ListRegionalBuckets.go b/service/s3control/api_op_ListRegionalBuckets.go index 5ef02d5d309..74ee04124d8 100644 --- a/service/s3control/api_op_ListRegionalBuckets.go +++ b/service/s3control/api_op_ListRegionalBuckets.go @@ -144,11 +144,11 @@ func (*endpointPrefix_opListRegionalBucketsMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opListRegionalBucketsMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opListRegionalBucketsMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -170,12 +170,12 @@ func (m *endpointPrefix_opListRegionalBucketsMiddleware) HandleSerialize(ctx con prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opListRegionalBucketsMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opListRegionalBucketsMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opListRegionalBucketsMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opListRegionalBucketsMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opListRegionalBuckets(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_PutAccessPointPolicy.go b/service/s3control/api_op_PutAccessPointPolicy.go index d3e64e15106..c639ec2264a 100644 --- a/service/s3control/api_op_PutAccessPointPolicy.go +++ b/service/s3control/api_op_PutAccessPointPolicy.go @@ -156,11 +156,11 @@ func (*endpointPrefix_opPutAccessPointPolicyMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opPutAccessPointPolicyMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opPutAccessPointPolicyMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -182,12 +182,12 @@ func (m *endpointPrefix_opPutAccessPointPolicyMiddleware) HandleSerialize(ctx co prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opPutAccessPointPolicyMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opPutAccessPointPolicyMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opPutAccessPointPolicyMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opPutAccessPointPolicyMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opPutAccessPointPolicy(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_PutBucketLifecycleConfiguration.go b/service/s3control/api_op_PutBucketLifecycleConfiguration.go index f1fc94b0115..973ce08b150 100644 --- a/service/s3control/api_op_PutBucketLifecycleConfiguration.go +++ b/service/s3control/api_op_PutBucketLifecycleConfiguration.go @@ -154,11 +154,11 @@ func (*endpointPrefix_opPutBucketLifecycleConfigurationMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opPutBucketLifecycleConfigurationMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opPutBucketLifecycleConfigurationMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -180,12 +180,12 @@ func (m *endpointPrefix_opPutBucketLifecycleConfigurationMiddleware) HandleSeria prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opPutBucketLifecycleConfigurationMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opPutBucketLifecycleConfigurationMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opPutBucketLifecycleConfigurationMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opPutBucketLifecycleConfigurationMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opPutBucketLifecycleConfiguration(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_PutBucketPolicy.go b/service/s3control/api_op_PutBucketPolicy.go index 7c6cdf10837..6128a361dfa 100644 --- a/service/s3control/api_op_PutBucketPolicy.go +++ b/service/s3control/api_op_PutBucketPolicy.go @@ -173,11 +173,11 @@ func (*endpointPrefix_opPutBucketPolicyMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opPutBucketPolicyMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opPutBucketPolicyMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -199,12 +199,12 @@ func (m *endpointPrefix_opPutBucketPolicyMiddleware) HandleSerialize(ctx context prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opPutBucketPolicyMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opPutBucketPolicyMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opPutBucketPolicyMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opPutBucketPolicyMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opPutBucketPolicy(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_PutBucketTagging.go b/service/s3control/api_op_PutBucketTagging.go index 0fb655ff07b..18e8347a6ad 100644 --- a/service/s3control/api_op_PutBucketTagging.go +++ b/service/s3control/api_op_PutBucketTagging.go @@ -209,11 +209,11 @@ func (*endpointPrefix_opPutBucketTaggingMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opPutBucketTaggingMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opPutBucketTaggingMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -235,12 +235,12 @@ func (m *endpointPrefix_opPutBucketTaggingMiddleware) HandleSerialize(ctx contex prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opPutBucketTaggingMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opPutBucketTaggingMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opPutBucketTaggingMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opPutBucketTaggingMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opPutBucketTagging(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_PutJobTagging.go b/service/s3control/api_op_PutJobTagging.go index bc50640862e..0fea09191ec 100644 --- a/service/s3control/api_op_PutJobTagging.go +++ b/service/s3control/api_op_PutJobTagging.go @@ -187,11 +187,11 @@ func (*endpointPrefix_opPutJobTaggingMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opPutJobTaggingMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opPutJobTaggingMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -213,12 +213,12 @@ func (m *endpointPrefix_opPutJobTaggingMiddleware) HandleSerialize(ctx context.C prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opPutJobTaggingMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opPutJobTaggingMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opPutJobTaggingMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opPutJobTaggingMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opPutJobTagging(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_PutPublicAccessBlock.go b/service/s3control/api_op_PutPublicAccessBlock.go index a26739e71fa..b0a93eaeb8c 100644 --- a/service/s3control/api_op_PutPublicAccessBlock.go +++ b/service/s3control/api_op_PutPublicAccessBlock.go @@ -136,11 +136,11 @@ func (*endpointPrefix_opPutPublicAccessBlockMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opPutPublicAccessBlockMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opPutPublicAccessBlockMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -162,12 +162,12 @@ func (m *endpointPrefix_opPutPublicAccessBlockMiddleware) HandleSerialize(ctx co prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opPutPublicAccessBlockMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opPutPublicAccessBlockMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opPutPublicAccessBlockMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opPutPublicAccessBlockMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opPutPublicAccessBlock(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_UpdateJobPriority.go b/service/s3control/api_op_UpdateJobPriority.go index a337bc46981..af6f6e88c9f 100644 --- a/service/s3control/api_op_UpdateJobPriority.go +++ b/service/s3control/api_op_UpdateJobPriority.go @@ -158,11 +158,11 @@ func (*endpointPrefix_opUpdateJobPriorityMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opUpdateJobPriorityMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opUpdateJobPriorityMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -184,12 +184,12 @@ func (m *endpointPrefix_opUpdateJobPriorityMiddleware) HandleSerialize(ctx conte prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opUpdateJobPriorityMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opUpdateJobPriorityMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opUpdateJobPriorityMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opUpdateJobPriorityMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opUpdateJobPriority(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/api_op_UpdateJobStatus.go b/service/s3control/api_op_UpdateJobStatus.go index 78950698668..5dbc8954e44 100644 --- a/service/s3control/api_op_UpdateJobStatus.go +++ b/service/s3control/api_op_UpdateJobStatus.go @@ -163,11 +163,11 @@ func (*endpointPrefix_opUpdateJobStatusMiddleware) ID() string { return "EndpointHostPrefix" } -func (m *endpointPrefix_opUpdateJobStatusMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( - out middleware.SerializeOutput, metadata middleware.Metadata, err error, +func (m *endpointPrefix_opUpdateJobStatusMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) ( + out middleware.BuildOutput, metadata middleware.Metadata, err error, ) { - if smithyhttp.GetHostnameImmutable(ctx) { - return next.HandleSerialize(ctx, in) + if smithyhttp.GetHostnameImmutable(ctx) || smithyhttp.IsEndpointHostPrefixDisabled(ctx) { + return next.HandleBuild(ctx, in) } req, ok := in.Request.(*smithyhttp.Request) @@ -189,12 +189,12 @@ func (m *endpointPrefix_opUpdateJobStatusMiddleware) HandleSerialize(ctx context prefix.WriteString(*input.AccountId) } prefix.WriteString(".") - req.HostPrefix = prefix.String() + req.URL.Host = prefix.String() + req.URL.Host - return next.HandleSerialize(ctx, in) + return next.HandleBuild(ctx, in) } -func addEndpointPrefix_opUpdateJobStatusMiddleware(stack *middleware.Stack) error { - return stack.Serialize.Insert(&endpointPrefix_opUpdateJobStatusMiddleware{}, `OperationSerializer`, middleware.Before) +func addEndpointPrefix_opUpdateJobStatusMiddleware(stack *middleware.Stack) (err error) { + return stack.Build.Add(&endpointPrefix_opUpdateJobStatusMiddleware{}, middleware.Before) } func newServiceMetadataMiddleware_opUpdateJobStatus(region string) *awsmiddleware.RegisterServiceMetadata { diff --git a/service/s3control/go.mod b/service/s3control/go.mod index 8d2d952a19f..92d84234e54 100644 --- a/service/s3control/go.mod +++ b/service/s3control/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/aws/aws-sdk-go-v2 v0.29.0 github.com/aws/aws-sdk-go-v2/service/internal/s3shared v0.3.1-0.20201027184009-8eb8fc303e7c - github.com/awslabs/smithy-go v0.3.1-0.20201104233911-38864709e183 + github.com/awslabs/smithy-go v0.3.1-0.20201106213844-55a49a94218d ) replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/service/s3control/go.sum b/service/s3control/go.sum index c669e324b14..2f1df6d51c8 100644 --- a/service/s3control/go.sum +++ b/service/s3control/go.sum @@ -1,3 +1,6 @@ +github.com/awslabs/smithy-go v0.3.1-0.20201104233911-38864709e183/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= +github.com/awslabs/smithy-go v0.3.1-0.20201106213844-55a49a94218d h1:ebtnnzCcSxCWpv6EWwYU2+PqYLDBvqeKE7i/iAyJL14= +github.com/awslabs/smithy-go v0.3.1-0.20201106213844-55a49a94218d/go.mod h1:hPOQwnmBLHsUphH13tVSjQhTAFma0/0XoZGbBcOuABI= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=