Bumps the aws-sdk-go-v2 group with 3 updates in the / directory: [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2), [github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue](https://github.com/aws/aws-sdk-go-v2) and [github.com/aws/aws-sdk-go-v2/service/kinesis](https://github.com/aws/aws-sdk-go-v2). Updates `github.com/aws/aws-sdk-go-v2/config` from 1.27.39 to 1.27.43 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.27.39...config/v1.27.43) Updates `github.com/aws/aws-sdk-go-v2/credentials` from 1.17.37 to 1.17.41 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/credentials/v1.17.37...credentials/v1.17.41) Updates `github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue` from 1.15.8 to 1.15.12 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.15.8...config/v1.15.12) Updates `github.com/aws/aws-sdk-go-v2/service/dynamodb` from 1.35.3 to 1.36.2 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/iot/v1.35.3...service/iam/v1.36.2) Updates `github.com/aws/aws-sdk-go-v2/service/kinesis` from 1.29.8 to 1.32.2 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/sns/v1.29.8...v1.32.2) Updates `github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream` from 1.6.5 to 1.6.6 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/credentials/v1.6.5...service/tnb/v1.6.6) Updates `github.com/aws/aws-sdk-go-v2/feature/ec2/imds` from 1.16.14 to 1.16.17 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.16.14...service/ram/v1.16.17) Updates `github.com/aws/aws-sdk-go-v2/internal/configsources` from 1.3.18 to 1.3.21 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/internal/ini/v1.3.18...internal/ini/v1.3.21) Updates `github.com/aws/aws-sdk-go-v2/internal/endpoints/v2` from 2.6.18 to 2.6.21 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/internal/endpoints/v2.6.18...internal/endpoints/v2.6.21) Updates `github.com/aws/aws-sdk-go-v2/service/dynamodbstreams` from 1.23.3 to 1.24.2 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.23.3...service/pi/v1.24.2) Updates `github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding` from 1.11.5 to 1.12.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/v1.12.0/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/dlm/v1.11.5...v1.12.0) Updates `github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery` from 1.9.19 to 1.10.2 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/memorydb/v1.9.19...config/v1.10.2) Updates `github.com/aws/aws-sdk-go-v2/service/internal/presigned-url` from 1.11.20 to 1.12.2 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/dax/v1.11.20...service/m2/v1.12.2) Updates `github.com/aws/aws-sdk-go-v2/service/sso` from 1.23.3 to 1.24.2 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.23.3...service/pi/v1.24.2) Updates `github.com/aws/aws-sdk-go-v2/service/ssooidc` from 1.27.3 to 1.28.2 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.27.3...service/pi/v1.28.2) Updates `github.com/aws/aws-sdk-go-v2/service/sts` from 1.31.3 to 1.32.2 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.31.3...v1.32.2) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/config dependency-type: direct:production update-type: version-update:semver-patch dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/credentials dependency-type: direct:production update-type: version-update:semver-patch dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue dependency-type: direct:production update-type: version-update:semver-patch dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/dynamodb dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/kinesis dependency-type: direct:production update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream dependency-type: indirect update-type: version-update:semver-patch dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/feature/ec2/imds dependency-type: indirect update-type: version-update:semver-patch dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/internal/configsources dependency-type: indirect update-type: version-update:semver-patch dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 dependency-type: indirect update-type: version-update:semver-patch dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/dynamodbstreams dependency-type: indirect update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding dependency-type: indirect update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery dependency-type: indirect update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/internal/presigned-url dependency-type: indirect update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/sso dependency-type: indirect update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/ssooidc dependency-type: indirect update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 - dependency-name: github.com/aws/aws-sdk-go-v2/service/sts dependency-type: indirect update-type: version-update:semver-minor dependency-group: aws-sdk-go-v2 ... Signed-off-by: dependabot[bot] <support@github.com>
2857 lines
90 KiB
Go
2857 lines
90 KiB
Go
// Code generated by smithy-go-codegen DO NOT EDIT.
|
|
|
|
package kinesis
|
|
|
|
import (
|
|
"bytes"
|
|
"context"
|
|
"fmt"
|
|
"github.com/aws/aws-sdk-go-v2/service/kinesis/types"
|
|
smithy "github.com/aws/smithy-go"
|
|
"github.com/aws/smithy-go/encoding/httpbinding"
|
|
smithyjson "github.com/aws/smithy-go/encoding/json"
|
|
"github.com/aws/smithy-go/middleware"
|
|
smithytime "github.com/aws/smithy-go/time"
|
|
"github.com/aws/smithy-go/tracing"
|
|
smithyhttp "github.com/aws/smithy-go/transport/http"
|
|
"path"
|
|
)
|
|
|
|
type awsAwsjson11_serializeOpAddTagsToStream struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpAddTagsToStream) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpAddTagsToStream) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*AddTagsToStreamInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.AddTagsToStream")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentAddTagsToStreamInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpCreateStream struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpCreateStream) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpCreateStream) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*CreateStreamInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.CreateStream")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentCreateStreamInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDecreaseStreamRetentionPeriod struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDecreaseStreamRetentionPeriod) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDecreaseStreamRetentionPeriod) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*DecreaseStreamRetentionPeriodInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.DecreaseStreamRetentionPeriod")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDecreaseStreamRetentionPeriodInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteResourcePolicy struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteResourcePolicy) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteResourcePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*DeleteResourcePolicyInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.DeleteResourcePolicy")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteResourcePolicyInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeleteStream struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeleteStream) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeleteStream) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*DeleteStreamInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.DeleteStream")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeleteStreamInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDeregisterStreamConsumer struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDeregisterStreamConsumer) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDeregisterStreamConsumer) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*DeregisterStreamConsumerInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.DeregisterStreamConsumer")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDeregisterStreamConsumerInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeLimits struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeLimits) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeLimits) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*DescribeLimitsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.DescribeLimits")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeLimitsInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeStream struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeStream) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeStream) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*DescribeStreamInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.DescribeStream")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeStreamInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeStreamConsumer struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeStreamConsumer) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeStreamConsumer) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*DescribeStreamConsumerInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.DescribeStreamConsumer")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeStreamConsumerInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDescribeStreamSummary struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDescribeStreamSummary) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDescribeStreamSummary) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*DescribeStreamSummaryInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.DescribeStreamSummary")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDescribeStreamSummaryInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpDisableEnhancedMonitoring struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpDisableEnhancedMonitoring) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpDisableEnhancedMonitoring) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*DisableEnhancedMonitoringInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.DisableEnhancedMonitoring")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentDisableEnhancedMonitoringInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpEnableEnhancedMonitoring struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpEnableEnhancedMonitoring) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpEnableEnhancedMonitoring) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*EnableEnhancedMonitoringInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.EnableEnhancedMonitoring")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentEnableEnhancedMonitoringInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpGetRecords struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpGetRecords) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpGetRecords) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*GetRecordsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.GetRecords")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentGetRecordsInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpGetResourcePolicy struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpGetResourcePolicy) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpGetResourcePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*GetResourcePolicyInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.GetResourcePolicy")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentGetResourcePolicyInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpGetShardIterator struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpGetShardIterator) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpGetShardIterator) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*GetShardIteratorInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.GetShardIterator")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentGetShardIteratorInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpIncreaseStreamRetentionPeriod struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpIncreaseStreamRetentionPeriod) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpIncreaseStreamRetentionPeriod) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*IncreaseStreamRetentionPeriodInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.IncreaseStreamRetentionPeriod")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentIncreaseStreamRetentionPeriodInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListShards struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListShards) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListShards) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*ListShardsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.ListShards")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListShardsInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListStreamConsumers struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListStreamConsumers) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListStreamConsumers) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*ListStreamConsumersInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.ListStreamConsumers")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListStreamConsumersInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListStreams struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListStreams) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListStreams) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*ListStreamsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.ListStreams")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListStreamsInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpListTagsForStream struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpListTagsForStream) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpListTagsForStream) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*ListTagsForStreamInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.ListTagsForStream")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentListTagsForStreamInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpMergeShards struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpMergeShards) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpMergeShards) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*MergeShardsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.MergeShards")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentMergeShardsInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpPutRecord struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpPutRecord) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpPutRecord) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*PutRecordInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.PutRecord")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentPutRecordInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpPutRecords struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpPutRecords) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpPutRecords) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*PutRecordsInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.PutRecords")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentPutRecordsInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpPutResourcePolicy struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpPutResourcePolicy) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpPutResourcePolicy) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*PutResourcePolicyInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.PutResourcePolicy")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentPutResourcePolicyInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpRegisterStreamConsumer struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpRegisterStreamConsumer) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpRegisterStreamConsumer) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*RegisterStreamConsumerInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.RegisterStreamConsumer")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentRegisterStreamConsumerInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpRemoveTagsFromStream struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpRemoveTagsFromStream) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpRemoveTagsFromStream) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*RemoveTagsFromStreamInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.RemoveTagsFromStream")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentRemoveTagsFromStreamInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpSplitShard struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpSplitShard) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpSplitShard) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*SplitShardInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.SplitShard")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentSplitShardInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStartStreamEncryption struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStartStreamEncryption) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStartStreamEncryption) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*StartStreamEncryptionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.StartStreamEncryption")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStartStreamEncryptionInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpStopStreamEncryption struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpStopStreamEncryption) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpStopStreamEncryption) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*StopStreamEncryptionInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.StopStreamEncryption")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentStopStreamEncryptionInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpSubscribeToShard struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpSubscribeToShard) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpSubscribeToShard) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*SubscribeToShardInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.SubscribeToShard")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentSubscribeToShardInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateShardCount struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateShardCount) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateShardCount) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*UpdateShardCountInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.UpdateShardCount")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateShardCountInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
|
|
type awsAwsjson11_serializeOpUpdateStreamMode struct {
|
|
}
|
|
|
|
func (*awsAwsjson11_serializeOpUpdateStreamMode) ID() string {
|
|
return "OperationSerializer"
|
|
}
|
|
|
|
func (m *awsAwsjson11_serializeOpUpdateStreamMode) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
|
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
|
) {
|
|
_, span := tracing.StartSpan(ctx, "OperationSerializer")
|
|
endTimer := startMetricTimer(ctx, "client.call.serialization_duration")
|
|
defer endTimer()
|
|
defer span.End()
|
|
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.(*UpdateStreamModeInput)
|
|
_ = input
|
|
if !ok {
|
|
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
|
}
|
|
|
|
operationPath := "/"
|
|
if len(request.Request.URL.Path) == 0 {
|
|
request.Request.URL.Path = operationPath
|
|
} else {
|
|
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
|
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
|
request.Request.URL.Path += "/"
|
|
}
|
|
}
|
|
request.Request.Method = "POST"
|
|
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
|
if err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
httpBindingEncoder.SetHeader("Content-Type").String("application/x-amz-json-1.1")
|
|
httpBindingEncoder.SetHeader("X-Amz-Target").String("Kinesis_20131202.UpdateStreamMode")
|
|
|
|
jsonEncoder := smithyjson.NewEncoder()
|
|
if err := awsAwsjson11_serializeOpDocumentUpdateStreamModeInput(input, jsonEncoder.Value); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request, err = request.SetStream(bytes.NewReader(jsonEncoder.Bytes())); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
|
|
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
|
return out, metadata, &smithy.SerializationError{Err: err}
|
|
}
|
|
in.Request = request
|
|
|
|
endTimer()
|
|
span.End()
|
|
return next.HandleSerialize(ctx, in)
|
|
}
|
|
func awsAwsjson11_serializeDocumentMetricsNameList(v []types.MetricsName, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(string(v[i]))
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentPutRecordsRequestEntry(v *types.PutRecordsRequestEntry, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Data != nil {
|
|
ok := object.Key("Data")
|
|
ok.Base64EncodeBytes(v.Data)
|
|
}
|
|
|
|
if v.ExplicitHashKey != nil {
|
|
ok := object.Key("ExplicitHashKey")
|
|
ok.String(*v.ExplicitHashKey)
|
|
}
|
|
|
|
if v.PartitionKey != nil {
|
|
ok := object.Key("PartitionKey")
|
|
ok.String(*v.PartitionKey)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentPutRecordsRequestEntryList(v []types.PutRecordsRequestEntry, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
if err := awsAwsjson11_serializeDocumentPutRecordsRequestEntry(&v[i], av); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentShardFilter(v *types.ShardFilter, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ShardId != nil {
|
|
ok := object.Key("ShardId")
|
|
ok.String(*v.ShardId)
|
|
}
|
|
|
|
if v.Timestamp != nil {
|
|
ok := object.Key("Timestamp")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.Timestamp))
|
|
}
|
|
|
|
if len(v.Type) > 0 {
|
|
ok := object.Key("Type")
|
|
ok.String(string(v.Type))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentStartingPosition(v *types.StartingPosition, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.SequenceNumber != nil {
|
|
ok := object.Key("SequenceNumber")
|
|
ok.String(*v.SequenceNumber)
|
|
}
|
|
|
|
if v.Timestamp != nil {
|
|
ok := object.Key("Timestamp")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.Timestamp))
|
|
}
|
|
|
|
if len(v.Type) > 0 {
|
|
ok := object.Key("Type")
|
|
ok.String(string(v.Type))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentStreamModeDetails(v *types.StreamModeDetails, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.StreamMode) > 0 {
|
|
ok := object.Key("StreamMode")
|
|
ok.String(string(v.StreamMode))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTagKeyList(v []string, value smithyjson.Value) error {
|
|
array := value.Array()
|
|
defer array.Close()
|
|
|
|
for i := range v {
|
|
av := array.Value()
|
|
av.String(v[i])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeDocumentTagMap(v map[string]string, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
for key := range v {
|
|
om := object.Key(key)
|
|
om.String(v[key])
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentAddTagsToStreamInput(v *AddTagsToStreamInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagMap(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentCreateStreamInput(v *CreateStreamInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ShardCount != nil {
|
|
ok := object.Key("ShardCount")
|
|
ok.Integer(*v.ShardCount)
|
|
}
|
|
|
|
if v.StreamModeDetails != nil {
|
|
ok := object.Key("StreamModeDetails")
|
|
if err := awsAwsjson11_serializeDocumentStreamModeDetails(v.StreamModeDetails, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
if v.Tags != nil {
|
|
ok := object.Key("Tags")
|
|
if err := awsAwsjson11_serializeDocumentTagMap(v.Tags, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDecreaseStreamRetentionPeriodInput(v *DecreaseStreamRetentionPeriodInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.RetentionPeriodHours != nil {
|
|
ok := object.Key("RetentionPeriodHours")
|
|
ok.Integer(*v.RetentionPeriodHours)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteResourcePolicyInput(v *DeleteResourcePolicyInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ResourceARN != nil {
|
|
ok := object.Key("ResourceARN")
|
|
ok.String(*v.ResourceARN)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeleteStreamInput(v *DeleteStreamInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.EnforceConsumerDeletion != nil {
|
|
ok := object.Key("EnforceConsumerDeletion")
|
|
ok.Boolean(*v.EnforceConsumerDeletion)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDeregisterStreamConsumerInput(v *DeregisterStreamConsumerInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ConsumerARN != nil {
|
|
ok := object.Key("ConsumerARN")
|
|
ok.String(*v.ConsumerARN)
|
|
}
|
|
|
|
if v.ConsumerName != nil {
|
|
ok := object.Key("ConsumerName")
|
|
ok.String(*v.ConsumerName)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeLimitsInput(v *DescribeLimitsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeStreamConsumerInput(v *DescribeStreamConsumerInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ConsumerARN != nil {
|
|
ok := object.Key("ConsumerARN")
|
|
ok.String(*v.ConsumerARN)
|
|
}
|
|
|
|
if v.ConsumerName != nil {
|
|
ok := object.Key("ConsumerName")
|
|
ok.String(*v.ConsumerName)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeStreamInput(v *DescribeStreamInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ExclusiveStartShardId != nil {
|
|
ok := object.Key("ExclusiveStartShardId")
|
|
ok.String(*v.ExclusiveStartShardId)
|
|
}
|
|
|
|
if v.Limit != nil {
|
|
ok := object.Key("Limit")
|
|
ok.Integer(*v.Limit)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDescribeStreamSummaryInput(v *DescribeStreamSummaryInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentDisableEnhancedMonitoringInput(v *DisableEnhancedMonitoringInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ShardLevelMetrics != nil {
|
|
ok := object.Key("ShardLevelMetrics")
|
|
if err := awsAwsjson11_serializeDocumentMetricsNameList(v.ShardLevelMetrics, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentEnableEnhancedMonitoringInput(v *EnableEnhancedMonitoringInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ShardLevelMetrics != nil {
|
|
ok := object.Key("ShardLevelMetrics")
|
|
if err := awsAwsjson11_serializeDocumentMetricsNameList(v.ShardLevelMetrics, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentGetRecordsInput(v *GetRecordsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Limit != nil {
|
|
ok := object.Key("Limit")
|
|
ok.Integer(*v.Limit)
|
|
}
|
|
|
|
if v.ShardIterator != nil {
|
|
ok := object.Key("ShardIterator")
|
|
ok.String(*v.ShardIterator)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentGetResourcePolicyInput(v *GetResourcePolicyInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ResourceARN != nil {
|
|
ok := object.Key("ResourceARN")
|
|
ok.String(*v.ResourceARN)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentGetShardIteratorInput(v *GetShardIteratorInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ShardId != nil {
|
|
ok := object.Key("ShardId")
|
|
ok.String(*v.ShardId)
|
|
}
|
|
|
|
if len(v.ShardIteratorType) > 0 {
|
|
ok := object.Key("ShardIteratorType")
|
|
ok.String(string(v.ShardIteratorType))
|
|
}
|
|
|
|
if v.StartingSequenceNumber != nil {
|
|
ok := object.Key("StartingSequenceNumber")
|
|
ok.String(*v.StartingSequenceNumber)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
if v.Timestamp != nil {
|
|
ok := object.Key("Timestamp")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.Timestamp))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentIncreaseStreamRetentionPeriodInput(v *IncreaseStreamRetentionPeriodInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.RetentionPeriodHours != nil {
|
|
ok := object.Key("RetentionPeriodHours")
|
|
ok.Integer(*v.RetentionPeriodHours)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListShardsInput(v *ListShardsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ExclusiveStartShardId != nil {
|
|
ok := object.Key("ExclusiveStartShardId")
|
|
ok.String(*v.ExclusiveStartShardId)
|
|
}
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if v.ShardFilter != nil {
|
|
ok := object.Key("ShardFilter")
|
|
if err := awsAwsjson11_serializeDocumentShardFilter(v.ShardFilter, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamCreationTimestamp != nil {
|
|
ok := object.Key("StreamCreationTimestamp")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.StreamCreationTimestamp))
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListStreamConsumersInput(v *ListStreamConsumersInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.MaxResults != nil {
|
|
ok := object.Key("MaxResults")
|
|
ok.Integer(*v.MaxResults)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamCreationTimestamp != nil {
|
|
ok := object.Key("StreamCreationTimestamp")
|
|
ok.Double(smithytime.FormatEpochSeconds(*v.StreamCreationTimestamp))
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListStreamsInput(v *ListStreamsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ExclusiveStartStreamName != nil {
|
|
ok := object.Key("ExclusiveStartStreamName")
|
|
ok.String(*v.ExclusiveStartStreamName)
|
|
}
|
|
|
|
if v.Limit != nil {
|
|
ok := object.Key("Limit")
|
|
ok.Integer(*v.Limit)
|
|
}
|
|
|
|
if v.NextToken != nil {
|
|
ok := object.Key("NextToken")
|
|
ok.String(*v.NextToken)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentListTagsForStreamInput(v *ListTagsForStreamInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ExclusiveStartTagKey != nil {
|
|
ok := object.Key("ExclusiveStartTagKey")
|
|
ok.String(*v.ExclusiveStartTagKey)
|
|
}
|
|
|
|
if v.Limit != nil {
|
|
ok := object.Key("Limit")
|
|
ok.Integer(*v.Limit)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentMergeShardsInput(v *MergeShardsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.AdjacentShardToMerge != nil {
|
|
ok := object.Key("AdjacentShardToMerge")
|
|
ok.String(*v.AdjacentShardToMerge)
|
|
}
|
|
|
|
if v.ShardToMerge != nil {
|
|
ok := object.Key("ShardToMerge")
|
|
ok.String(*v.ShardToMerge)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentPutRecordInput(v *PutRecordInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Data != nil {
|
|
ok := object.Key("Data")
|
|
ok.Base64EncodeBytes(v.Data)
|
|
}
|
|
|
|
if v.ExplicitHashKey != nil {
|
|
ok := object.Key("ExplicitHashKey")
|
|
ok.String(*v.ExplicitHashKey)
|
|
}
|
|
|
|
if v.PartitionKey != nil {
|
|
ok := object.Key("PartitionKey")
|
|
ok.String(*v.PartitionKey)
|
|
}
|
|
|
|
if v.SequenceNumberForOrdering != nil {
|
|
ok := object.Key("SequenceNumberForOrdering")
|
|
ok.String(*v.SequenceNumberForOrdering)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentPutRecordsInput(v *PutRecordsInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Records != nil {
|
|
ok := object.Key("Records")
|
|
if err := awsAwsjson11_serializeDocumentPutRecordsRequestEntryList(v.Records, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentPutResourcePolicyInput(v *PutResourcePolicyInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.Policy != nil {
|
|
ok := object.Key("Policy")
|
|
ok.String(*v.Policy)
|
|
}
|
|
|
|
if v.ResourceARN != nil {
|
|
ok := object.Key("ResourceARN")
|
|
ok.String(*v.ResourceARN)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentRegisterStreamConsumerInput(v *RegisterStreamConsumerInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ConsumerName != nil {
|
|
ok := object.Key("ConsumerName")
|
|
ok.String(*v.ConsumerName)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentRemoveTagsFromStreamInput(v *RemoveTagsFromStreamInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
if v.TagKeys != nil {
|
|
ok := object.Key("TagKeys")
|
|
if err := awsAwsjson11_serializeDocumentTagKeyList(v.TagKeys, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentSplitShardInput(v *SplitShardInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.NewStartingHashKey != nil {
|
|
ok := object.Key("NewStartingHashKey")
|
|
ok.String(*v.NewStartingHashKey)
|
|
}
|
|
|
|
if v.ShardToSplit != nil {
|
|
ok := object.Key("ShardToSplit")
|
|
ok.String(*v.ShardToSplit)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStartStreamEncryptionInput(v *StartStreamEncryptionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.EncryptionType) > 0 {
|
|
ok := object.Key("EncryptionType")
|
|
ok.String(string(v.EncryptionType))
|
|
}
|
|
|
|
if v.KeyId != nil {
|
|
ok := object.Key("KeyId")
|
|
ok.String(*v.KeyId)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentStopStreamEncryptionInput(v *StopStreamEncryptionInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.EncryptionType) > 0 {
|
|
ok := object.Key("EncryptionType")
|
|
ok.String(string(v.EncryptionType))
|
|
}
|
|
|
|
if v.KeyId != nil {
|
|
ok := object.Key("KeyId")
|
|
ok.String(*v.KeyId)
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentSubscribeToShardInput(v *SubscribeToShardInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.ConsumerARN != nil {
|
|
ok := object.Key("ConsumerARN")
|
|
ok.String(*v.ConsumerARN)
|
|
}
|
|
|
|
if v.ShardId != nil {
|
|
ok := object.Key("ShardId")
|
|
ok.String(*v.ShardId)
|
|
}
|
|
|
|
if v.StartingPosition != nil {
|
|
ok := object.Key("StartingPosition")
|
|
if err := awsAwsjson11_serializeDocumentStartingPosition(v.StartingPosition, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateShardCountInput(v *UpdateShardCountInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if len(v.ScalingType) > 0 {
|
|
ok := object.Key("ScalingType")
|
|
ok.String(string(v.ScalingType))
|
|
}
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamName != nil {
|
|
ok := object.Key("StreamName")
|
|
ok.String(*v.StreamName)
|
|
}
|
|
|
|
if v.TargetShardCount != nil {
|
|
ok := object.Key("TargetShardCount")
|
|
ok.Integer(*v.TargetShardCount)
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
func awsAwsjson11_serializeOpDocumentUpdateStreamModeInput(v *UpdateStreamModeInput, value smithyjson.Value) error {
|
|
object := value.Object()
|
|
defer object.Close()
|
|
|
|
if v.StreamARN != nil {
|
|
ok := object.Key("StreamARN")
|
|
ok.String(*v.StreamARN)
|
|
}
|
|
|
|
if v.StreamModeDetails != nil {
|
|
ok := object.Key("StreamModeDetails")
|
|
if err := awsAwsjson11_serializeDocumentStreamModeDetails(v.StreamModeDetails, ok); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
|
|
return nil
|
|
}
|