diff --git a/go.mod b/go.mod index ee4004f80..53931803f 100644 --- a/go.mod +++ b/go.mod @@ -3,10 +3,10 @@ module github.com/NVIDIA/holodeck go 1.26.0 require ( - github.com/aws/aws-sdk-go-v2 v1.47.7 + github.com/aws/aws-sdk-go-v2 v1.48.1 github.com/aws/aws-sdk-go-v2/config v1.33.13 github.com/aws/aws-sdk-go-v2/service/ec2 v1.343.0 - github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.63.8 + github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.65.1 github.com/aws/aws-sdk-go-v2/service/ssm v1.81.2 github.com/mattn/go-isatty v0.0.24 github.com/onsi/ginkgo/v2 v2.34.0 @@ -25,8 +25,8 @@ require ( github.com/Masterminds/semver/v3 v3.4.0 // indirect github.com/aws/aws-sdk-go-v2/credentials v1.20.13 // indirect github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.5 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.10 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.10 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.13 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.13 // indirect github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.8 // indirect github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.23 // indirect github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.8 // indirect @@ -34,7 +34,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.39.1 // indirect github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.1 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.51.6 // indirect - github.com/aws/smithy-go v1.28.8 // indirect + github.com/aws/smithy-go v1.28.10 // indirect github.com/fxamacker/cbor/v2 v2.9.1 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-task/slim-sprig/v3 v3.0.0 // indirect diff --git a/go.sum b/go.sum index 524e5c5d5..9d8dc1c0e 100644 --- a/go.sum +++ b/go.sum @@ -1,23 +1,23 @@ github.com/Masterminds/semver/v3 v3.4.0 h1:Zog+i5UMtVoCU8oKka5P7i9q9HgrJeGzI9SA1Xbatp0= github.com/Masterminds/semver/v3 v3.4.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= -github.com/aws/aws-sdk-go-v2 v1.47.7 h1:jBmtzRtGWVAzbfc4RBWo1dTte0ZZH8p9U42YJIw2+Bw= -github.com/aws/aws-sdk-go-v2 v1.47.7/go.mod h1:I8lFSH4MGrZiw2m7miCrRYHsgpC1+HW8uiVGOiPYPcw= +github.com/aws/aws-sdk-go-v2 v1.48.1 h1:j6ro6IvbxUe8BCulc/6uWMrhmx6+i5HNIc1GZEJRT9k= +github.com/aws/aws-sdk-go-v2 v1.48.1/go.mod h1:HP8Jzg1FDurJomtx40YM0eiLoJrwjjZ9X+4BNpy4OXc= github.com/aws/aws-sdk-go-v2/config v1.33.13 h1:u52x6ISQOx172tpwM0VRxhJzEsTJYpMcEYUGM2A1wrw= github.com/aws/aws-sdk-go-v2/config v1.33.13/go.mod h1:/ixtz6XPHb42zekjQ0LqD9XjTpTysNWhIGwufY1OzI4= github.com/aws/aws-sdk-go-v2/credentials v1.20.13 h1:j4z41OtspmQ3ftQycaDunJ26b69a9SHfaSVUPqgRv8k= github.com/aws/aws-sdk-go-v2/credentials v1.20.13/go.mod h1:SgPA1oS3b+dlMxZb618jDmGNscpXSCaxz15igS52OlE= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.5 h1:iXjy2SFhGYNB1jWZBhQqq8HbhsbPF23w+/zbMvPXsTg= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.5/go.mod h1:k0RUiBnyXU0AXRJ9tJmY2jQke6XUIX2PNVnWtvgaPtc= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.10 h1:DKtPO+uoekvZX1tIFGVlWypYGSYkHPb7rliUI1wZtEw= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.10/go.mod h1:uAi0RDdZZz8IRpXERptWALeCgQG9Ye/HiMLxkxlt8IU= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.10 h1:r8p95YELmfmuV9VvAaFcLesVBZduCCCccxpzQKkNThw= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.10/go.mod h1:W3M52Mqai5TjgzyL/dEG+UwE+Xz9PykyjXelvbAzWIA= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.13 h1:ZFqKPVQYSIYOXVoG/YRGXYNPqcGslzu/N2J3kev/Djc= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.13/go.mod h1:3guCF5FBy7MYWRVt7+gdRxPPTSIBQnImwEVW5BdnOCE= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.13 h1:0pHWAgLjLZWSc9GtdpMVFT7bvpUcm9xZYcaJ9bmyLGo= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.13/go.mod h1:yVcS5ysT0fDsQKA6mqaI5QU1p9q5bj7NyM4bu91yNmU= github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.8 h1:WOp5De9iWdEHDPh2Kb0tBP3vGBm/dVAuRGh4a4tqduo= github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.8/go.mod h1:z8W8YgfhbWl62XqcTtK+CxPrE+iHGRVUOtrrbIOp7ZY= github.com/aws/aws-sdk-go-v2/service/ec2 v1.343.0 h1:pOxNUJbUOy779gx205gEpySpT5fu3B0ifPD8jBxujZI= github.com/aws/aws-sdk-go-v2/service/ec2 v1.343.0/go.mod h1:khWfxrzSgMjGMAZIaYAHu3IobEo7KRRNwPYaHb1zpng= -github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.63.8 h1:CR+/wTRSjBeTZrG5yWpqc+I268O1LmBCEqyVYqVYI7A= -github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.63.8/go.mod h1:yYRvAMIBbj76HY/9mjtLbHKHt1BVP7AgZaToacYDL+I= +github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.65.1 h1:UqDKhsfnlAYOELMvkcYu5PxovcoCWWh4WAulr+4q/o4= +github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.65.1/go.mod h1:vYppu9EoHoM9pS0R4oXqo2p07v88w66vh0hWQGik8Rk= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.23 h1:MCIR6iZaCKO4UE0hUvoWWLI6JVjppopV64JfAJaMjng= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.23/go.mod h1:pphWFS+z0MmIPivj8c/6bATd1Z+Av7Ust75DPdEFsPA= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.8 h1:+PMpWlJYOn2tm7sm6OZ/ZLd4jStl17T7wjNapd1Rczs= @@ -32,8 +32,8 @@ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.1 h1:w8yui2ZqdHmGwVBDGvazoIvK github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.1/go.mod h1:gJSdIY6YUzDvqQLcMtPVZgBRHrFwzHryvpE8Igzbxps= github.com/aws/aws-sdk-go-v2/service/sts v1.51.6 h1:BVjKrtRUtSYKztBCCfE1oAB+d3ViKcW2cKZfserOqMQ= github.com/aws/aws-sdk-go-v2/service/sts v1.51.6/go.mod h1:eSukFLeLkPMm+1OxDR+F0joauZdyBkF47Ow7MqjZiJw= -github.com/aws/smithy-go v1.28.8 h1:aEmdAq7gVCoGCnvf1NnELlu3I6D/nhqrC321FyFiQkQ= -github.com/aws/smithy-go v1.28.8/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= +github.com/aws/smithy-go v1.28.10 h1:SfPnj8fGCVAI/P5YC4/1JjuMsucbPp2dROnSTYNo2PE= +github.com/aws/smithy-go v1.28.10/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go index d55b099a7..890a31a7c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go @@ -3,4 +3,4 @@ package aws // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.47.7" +const goModuleVersion = "1.48.1" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive.go index 4dfde8573..006501bfb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive.go @@ -21,6 +21,7 @@ var DefaultThrottles = []IsErrorThrottle{ ThrottleErrorCode{ Codes: DefaultThrottleErrorCodes, }, + throttleUnmodeledTooManyRequests{}, } // AdaptiveModeOptions provides the functional options for configuring the @@ -145,7 +146,15 @@ func (a *AdaptiveMode) GetAttemptToken(ctx context.Context) (func(error) error, } } - return a.handleResponse, nil + stdRelease, err := a.retryer.GetAttemptToken(ctx) + if err != nil { + return nil, err + } + + return func(opErr error) error { + a.handleResponse(opErr) + return stdRelease(opErr) + }, nil } func (a *AdaptiveMode) handleResponse(opErr error) error { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/doc.go index 3a08ebe0a..e0089c895 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/doc.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/doc.go @@ -20,7 +20,7 @@ // - Errors that implement a ConnectionError, Temporary, or Timeout method that return true. // - Connection Reset Errors. // - net.OpErr types that are dialing errors or are temporary. -// - HTTP Status Codes: 500, 502, 503, and 504. +// - HTTP Status Codes: 429 (unless the error is a modeled error type), 500, 502, 503, and 504. // - API Error Codes // - RequestTimeout, RequestTimeoutException // - Throttling, ThrottlingException, ThrottledException, RequestThrottledException, TooManyRequestsException, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/jitter_backoff.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/jitter_backoff.go index 14225a53a..40b83911a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/jitter_backoff.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/jitter_backoff.go @@ -23,8 +23,8 @@ type ExponentialJitterBackoff struct { // delay is 1s regardless of the configured baseDelay. throttle IsErrorThrottle - // When true, applies MAX_BACKOFF before jitter and uses throttle-aware - // base delay. + // When true, uses the Retry Behavior 2.1 formula: applies MAX_BACKOFF + // before jitter and uses throttle-aware base delay. retries2026 bool randFloat64 func() (float64, error) @@ -101,8 +101,15 @@ func (j *ExponentialJitterBackoff) backoffDelayLegacy(attempt int, err error) (t } // backoffDelay2026 uses throttle-aware base delay and applies MAX_BACKOFF -// before jitter: t_i = b * min(x * 2^i, MAX_BACKOFF). +// before jitter: t_i = b * min(x * 2^i, MAX_BACKOFF), where i is the 0-based +// retry index. The attempt passed in is the 1-based number of the attempt that +// failed, so the first retry uses i = 0. func (j *ExponentialJitterBackoff) backoffDelay2026(attempt int, err error) (time.Duration, error) { + i := attempt - 1 + if i < 0 { + i = 0 + } + x := j.baseDelay if j.throttle != nil && j.throttle.IsErrorThrottle(err) == aws.TrueTernary { x = time.Second @@ -113,7 +120,7 @@ func (j *ExponentialJitterBackoff) backoffDelay2026(attempt int, err error) (tim return 0, randErr } - ri := math.Pow(2, float64(attempt)) + ri := math.Pow(2, float64(i)) delaySeconds := float64(x) / float64(time.Second) * ri maxBackoffSeconds := float64(j.maxBackoff) / float64(time.Second) if delaySeconds > maxBackoffSeconds { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go index 3b7e08b91..8a2f38a82 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go @@ -247,11 +247,9 @@ func (r *Attempt) handleAttempt( "failed to release retry token after request error, %w", err) } // Release the attempt token based on the state of the attempt's error (if any). - if !newRetries2026() || attemptNum == 1 { - if releaseError := releaseAttemptToken(err); releaseError != nil && err != nil { - return out, attemptResult, nopRelease, fmt.Errorf( - "failed to release initial token after request error, %w", err) - } + if releaseError := releaseAttemptToken(err); releaseError != nil && err != nil { + return out, attemptResult, nopRelease, fmt.Errorf( + "failed to release initial token after request error, %w", err) } // If there was no error making the attempt, nothing further to do. There // will be nothing to retry. @@ -296,8 +294,8 @@ func (r *Attempt) handleAttempt( releaseRetryToken, retryTokenErr := r.retryer.GetRetryToken(ctx, err) if retryTokenErr != nil { // Long-polling operations must still back off when quota is exceeded. - if newRetries2026() && internalcontext.GetIsLongPolling(ctx) { - if retryDelay, delayErr := r.retryer.RetryDelay(attemptNum-1, err); delayErr == nil { + if internalcontext.GetIsLongPolling(ctx) { + if retryDelay, delayErr := r.retryer.RetryDelay(attemptNum, err); delayErr == nil { retryDelay = adjustForRetryAfterHeader(retryDelay, err, logger, r.LogAttempts) _ = sdk.SleepWithContext(ctx, retryDelay) } @@ -311,17 +309,11 @@ func (r *Attempt) handleAttempt( // Get the retry delay before another attempt can be made, and sleep for // that time. Potentially early exist if the sleep is canceled via the // context. - attempt := attemptNum - if newRetries2026() { - attempt = attemptNum - 1 - } - retryDelay, reqErr := r.retryer.RetryDelay(attempt, err) + retryDelay, reqErr := r.retryer.RetryDelay(attemptNum, err) if reqErr != nil { return out, attemptResult, releaseRetryToken, reqErr } - if newRetries2026() { - retryDelay = adjustForRetryAfterHeader(retryDelay, err, logger, r.LogAttempts) - } + retryDelay = adjustForRetryAfterHeader(retryDelay, err, logger, r.LogAttempts) if reqErr = sdk.SleepWithContext(ctx, retryDelay); reqErr != nil { err = &aws.RequestCanceledError{Err: reqErr} return out, attemptResult, releaseRetryToken, err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retryable_error.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retryable_error.go index 1b485f998..f9ec49d60 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retryable_error.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retryable_error.go @@ -4,10 +4,12 @@ import ( "errors" "fmt" "net" + "net/http" "net/url" "strings" "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/smithy-go" ) // IsErrorRetryable provides the interface of an implementation to determine if @@ -184,6 +186,28 @@ func (r RetryableHTTPStatusCode) IsErrorRetryable(err error) aws.Ternary { return aws.TrueTernary } +// retryableUnmodeledTooManyRequests retries an HTTP 429 response whose error +// did not deserialize to a modeled error type. A modeled error's own retry +// rules decide whether it is retried. +type retryableUnmodeledTooManyRequests struct{} + +func (retryableUnmodeledTooManyRequests) IsErrorRetryable(err error) aws.Ternary { + if isUnmodeledTooManyRequests(err) { + return aws.TrueTernary + } + return aws.UnknownTernary +} + +// isUnmodeledTooManyRequests returns true if the error is for an HTTP 429 +// response and did not deserialize to a modeled error type. +func isUnmodeledTooManyRequests(err error) bool { + var v interface{ HTTPStatusCode() int } + if !errors.As(err, &v) || v.HTTPStatusCode() != http.StatusTooManyRequests { + return false + } + return !isModeledAPIError(err) +} + // RetryableErrorCode determines if an attempt should be retried based on the // API error code. type RetryableErrorCode struct { @@ -226,3 +250,15 @@ func (e *retryableClockSkewError) Unwrap() error { func (e *retryableClockSkewError) RetryableError() bool { return true } + +// isModeledAPIError returns true if the error wraps an API error that was +// deserialized to a modeled error type. An error that deserialized to +// *smithy.GenericAPIError, or that has no API error, is not modeled. +func isModeledAPIError(err error) bool { + var apiErr smithy.APIError + if !errors.As(err, &apiErr) { + return false + } + _, generic := apiErr.(*smithy.GenericAPIError) + return !generic +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/standard.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/standard.go index f2f9660da..12c00b2b0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/standard.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/standard.go @@ -3,7 +3,6 @@ package retry import ( "context" "fmt" - "os" "time" "github.com/aws/aws-sdk-go-v2/aws/ratelimit" @@ -34,20 +33,32 @@ const ( // Default retry token quota values. const ( - DefaultRetryRateTokens uint = 500 + DefaultRetryRateTokens uint = 500 + + // DefaultRetryCost is the legacy cost to deduct from the RateLimiter's + // token bucket per retry. + // + // Deprecated: The SDK no longer uses this value by default. A retry now + // costs 14 tokens, and a retry caused by a throttling error costs + // DefaultThrottlingRetryCost. DefaultRetryCost uint = 5 DefaultNoRetryIncrement uint = 1 - // DefaultRetryTimeoutCost is the cost to deduct from the RateLimiter's - // token bucket per retry caused by timeout error. + // DefaultRetryTimeoutCost is the legacy cost to deduct from the + // RateLimiter's token bucket per retry caused by timeout error. // - // When AWS_NEW_RETRIES_2026 is set to "true", timeouts are no longer - // treated differently than other transient errors. The discounted cost - // is instead applied to throttling errors via DefaultThrottlingRetryCost. + // Deprecated: The SDK no longer uses this value by default. Timeouts are + // no longer treated differently than other transient errors. The + // discounted cost is instead applied to throttling errors via + // DefaultThrottlingRetryCost. DefaultRetryTimeoutCost uint = 10 DefaultThrottlingRetryCost uint = 5 ) +// defaultRetryCost is the cost to deduct from the RateLimiter's token bucket +// per retry not caused by a throttling error. +const defaultRetryCost uint = 14 + // DefaultRetryableHTTPStatusCodes is the default set of HTTP status codes the SDK // should consider as retryable errors. var DefaultRetryableHTTPStatusCodes = map[int]struct{}{ @@ -92,6 +103,7 @@ var DefaultRetryables = []IsErrorRetryable{ RetryableHTTPStatusCode{ Codes: DefaultRetryableHTTPStatusCodes, }, + retryableUnmodeledTooManyRequests{}, RetryableErrorCode{ Codes: DefaultRetryableErrorCodes, }, @@ -127,7 +139,8 @@ type StandardOptions struct { // Set of strategies to determine if the attempt failed due to a timeout // error. // - // It is safe to append to this list in NewStandard's functional options. + // Deprecated: The standard retryer no longer uses this field. A retry + // caused by a timeout costs RetryCost, the same as other transient errors. Timeouts []IsErrorTimeout // Set of strategies to determine if the attempt failed due to a throttle @@ -144,13 +157,10 @@ type StandardOptions struct { // consume more tokens than what's available results in operation failure. // The default implementation is parameterized as follows: // - a capacity of 500 (DefaultRetryRateTokens) - // - a retry caused by a timeout costs 10 tokens (DefaultRetryTimeoutCost) - // - a retry caused by other errors costs 5 tokens (DefaultRetryCost) - // - an operation that succeeds on the 1st attempt adds 1 token (DefaultNoRetryIncrement) - // - // When AWS_NEW_RETRIES_2026 is set to "true", the costs change: - // - a retry costs 14 tokens + // - a retry costs 14 tokens, timeouts included // - a retry caused by a throttling error costs 5 tokens (DefaultThrottlingRetryCost) + // - a successful retry refunds the tokens its retry cost + // - an operation that succeeds on the 1st attempt adds 1 token (DefaultNoRetryIncrement) // // You can disable rate limiting by setting this field to ratelimit.None. RateLimiter RateLimiter @@ -161,12 +171,13 @@ type StandardOptions struct { // The cost to deduct from the RateLimiter's token bucket per retry caused // by timeout error. // - // When AWS_NEW_RETRIES_2026 is set to "true", this field is unused. - // Throttling errors use ThrottlingRetryCost instead. + // Deprecated: The standard retryer no longer uses this field. A retry + // caused by a timeout costs RetryCost, and a retry caused by a throttling + // error costs ThrottlingRetryCost. RetryTimeoutCost uint // The cost to deduct from the RateLimiter's token bucket per retry caused - // by a throttling error. Only used when AWS_NEW_RETRIES_2026 is "true". + // by a throttling error. ThrottlingRetryCost uint // The cost to payback to the RateLimiter's token bucket for successful @@ -174,8 +185,8 @@ type StandardOptions struct { NoRetryIncrement uint // BaseDelay is the base backoff delay for non-throttle retryable errors. - // Throttling errors always use 1s. Defaults to 50ms if zero. - // Only used when AWS_NEW_RETRIES_2026 is "true"; ignored in legacy mode. + // Throttling errors always use 1s. Defaults to 50ms if zero. Ignored when + // Backoff is set. BaseDelay time.Duration } @@ -193,7 +204,6 @@ type Standard struct { options StandardOptions throttle IsErrorThrottle - timeout IsErrorTimeout retryable IsErrorRetryable backoff BackoffDelayer } @@ -211,18 +221,14 @@ func NewStandard(fnOpts ...func(*StandardOptions)) *Standard { backoff := o.Backoff if backoff == nil { - if newRetries2026() { - baseDelay := o.BaseDelay - if baseDelay == 0 { - baseDelay = 50 * time.Millisecond - } - backoff = newExponentialJitterBackoffWithOptions(o.MaxBackoff, - withBaseDelay(baseDelay), - withThrottleCheck(IsErrorThrottles(o.Throttles)), - ) - } else { - backoff = NewExponentialJitterBackoff(o.MaxBackoff) + baseDelay := o.BaseDelay + if baseDelay == 0 { + baseDelay = 50 * time.Millisecond } + backoff = newExponentialJitterBackoffWithOptions(o.MaxBackoff, + withBaseDelay(baseDelay), + withThrottleCheck(IsErrorThrottles(o.Throttles)), + ) } return &Standard{ @@ -230,7 +236,6 @@ func NewStandard(fnOpts ...func(*StandardOptions)) *Standard { backoff: backoff, retryable: IsErrorRetryables(o.Retryables), throttle: IsErrorThrottles(o.Throttles), - timeout: IsErrorTimeouts(o.Timeouts), } } @@ -252,9 +257,15 @@ func (s *Standard) RetryDelay(attempt int, err error) (time.Duration, error) { } // GetAttemptToken returns the token to be released after then attempt completes. -// The release token will add NoRetryIncrement to the RateLimiter token pool if -// the attempt was successful. If the attempt failed, nothing will be done. -func (s *Standard) GetAttemptToken(context.Context) (func(error) error, error) { +// For the first attempt of an operation, the release token will add +// NoRetryIncrement to the RateLimiter token pool if the attempt was +// successful. A successful retry refunds the cost of its retry token instead, +// so the release token of later attempts does nothing. If the attempt failed, +// nothing will be done. +func (s *Standard) GetAttemptToken(ctx context.Context) (func(error) error, error) { + if md, ok := getRetryMetadata(ctx); ok && md.AttemptNum > 1 { + return nopRelease, nil + } return s.GetInitialToken(), nil } @@ -277,15 +288,8 @@ func (s *Standard) noRetryIncrement() error { // Returning the token release function, or error. func (s *Standard) GetRetryToken(ctx context.Context, opErr error) (func(error) error, error) { cost := s.options.RetryCost - - if newRetries2026() { - if s.throttle.IsErrorThrottle(opErr).Bool() { - cost = s.options.ThrottlingRetryCost - } - } else { - if s.timeout.IsErrorTimeout(opErr).Bool() { - cost = s.options.RetryTimeoutCost - } + if s.throttle.IsErrorThrottle(opErr).Bool() { + cost = s.options.ThrottlingRetryCost } fn, err := s.options.RateLimiter.GetToken(ctx, cost) @@ -308,26 +312,7 @@ func (f releaseToken) release(err error) error { return f() } -func newRetries2026() bool { - return os.Getenv("AWS_NEW_RETRIES_2026") == "true" -} - func standardDefaults() StandardOptions { - if newRetries2026() { - return StandardOptions{ - MaxAttempts: DefaultMaxAttempts, - MaxBackoff: DefaultMaxBackoff, - Retryables: append([]IsErrorRetryable{}, DefaultRetryables...), - Timeouts: append([]IsErrorTimeout{}, DefaultTimeouts...), - Throttles: append([]IsErrorThrottle{}, DefaultThrottles...), - - RateLimiter: ratelimit.NewTokenRateLimit(DefaultRetryRateTokens), - RetryCost: 14, - RetryTimeoutCost: DefaultRetryTimeoutCost, - ThrottlingRetryCost: DefaultThrottlingRetryCost, - NoRetryIncrement: DefaultNoRetryIncrement, - } - } return StandardOptions{ MaxAttempts: DefaultMaxAttempts, MaxBackoff: DefaultMaxBackoff, @@ -335,9 +320,10 @@ func standardDefaults() StandardOptions { Timeouts: append([]IsErrorTimeout{}, DefaultTimeouts...), Throttles: append([]IsErrorThrottle{}, DefaultThrottles...), - RateLimiter: ratelimit.NewTokenRateLimit(DefaultRetryRateTokens), - RetryCost: DefaultRetryCost, - RetryTimeoutCost: DefaultRetryTimeoutCost, - NoRetryIncrement: DefaultNoRetryIncrement, + RateLimiter: ratelimit.NewTokenRateLimit(DefaultRetryRateTokens), + RetryCost: defaultRetryCost, + RetryTimeoutCost: DefaultRetryTimeoutCost, + ThrottlingRetryCost: DefaultThrottlingRetryCost, + NoRetryIncrement: DefaultNoRetryIncrement, } } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/throttle_error.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/throttle_error.go index c4b844d15..717387c93 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/throttle_error.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/throttle_error.go @@ -58,3 +58,15 @@ func (r ThrottleErrorCode) IsErrorThrottle(err error) aws.Ternary { return aws.TrueTernary } + +// throttleUnmodeledTooManyRequests treats an HTTP 429 response whose error did +// not deserialize to a modeled error type as a throttle error. A modeled error +// is a throttle error only if its error code is a throttle error code. +type throttleUnmodeledTooManyRequests struct{} + +func (throttleUnmodeledTooManyRequests) IsErrorThrottle(err error) aws.Ternary { + if isUnmodeledTooManyRequests(err) { + return aws.TrueTernary + } + return aws.UnknownTernary +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md index 47a63aab6..23410e8e5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.5.13 (2026-11-25) + +* **Dependency Update**: Update to smithy-go v1.28.10. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.12 (2026-11-10) + +* **Dependency Update**: Update to smithy-go v1.28.9. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.11 (2026-11-06) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.10 (2026-11-05) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go index d6752c81a..ddabaadf7 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go @@ -3,4 +3,4 @@ package configsources // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.10" +const goModuleVersion = "1.5.13" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.go index 6ab4d9669..dec36421d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.go @@ -225,6 +225,13 @@ var partitions = []Partition{ SupportsFIPS: nil, SupportsDualStack: nil, }, + "me-west-1": { + Name: nil, + DnsSuffix: nil, + DualStackDnsSuffix: nil, + SupportsFIPS: nil, + SupportsDualStack: nil, + }, "mx-central-1": { Name: nil, DnsSuffix: nil, @@ -239,6 +246,13 @@ var partitions = []Partition{ SupportsFIPS: nil, SupportsDualStack: nil, }, + "sa-west-1": { + Name: nil, + DnsSuffix: nil, + DualStackDnsSuffix: nil, + SupportsFIPS: nil, + SupportsDualStack: nil, + }, "us-east-1": { Name: nil, DnsSuffix: nil, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.json b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.json index fb9ebb1fa..6f8a91ad6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.json +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.json @@ -98,12 +98,18 @@ "me-south-1" : { "description" : "Middle East (Bahrain)" }, + "me-west-1" : { + "description" : "Middle East (Saudi Arabia)" + }, "mx-central-1" : { "description" : "Mexico (Central)" }, "sa-east-1" : { "description" : "South America (Sao Paulo)" }, + "sa-west-1" : { + "description" : "South America (Chile)" + }, "us-east-1" : { "description" : "US East (N. Virginia)" }, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md index 52122a306..977f22d32 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md @@ -1,3 +1,17 @@ +# v2.8.13 (2026-11-25) + +* **Dependency Update**: Update to smithy-go v1.28.10. +* **Dependency Update**: Updated to the latest SDK module versions + +# v2.8.12 (2026-11-10) + +* **Dependency Update**: Update to smithy-go v1.28.9. +* **Dependency Update**: Updated to the latest SDK module versions + +# v2.8.11 (2026-11-06) + +* **Dependency Update**: Updated to the latest SDK module versions + # v2.8.10 (2026-11-05) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go index ac564b2de..40ad48120 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go @@ -3,4 +3,4 @@ package endpoints // goModuleVersion is the tagged release for this module -const goModuleVersion = "2.8.10" +const goModuleVersion = "2.8.13" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/CHANGELOG.md index 0341b76de..0682a2015 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/CHANGELOG.md @@ -1,3 +1,26 @@ +# v1.65.1 (2026-11-25) + +* **Dependency Update**: Update to smithy-go v1.28.10. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.65.0 (2026-11-19) + +* **Feature**: Network Load Balancer now supports mutual TLS (mTLS), letting you authenticate client certificates before granting access. You can configure a trust store of certificate authorities on your Network Load Balancer, which will then verify the client certificate on each inbound connection. + +# v1.64.1 (2026-11-18) + +* **Documentation**: This release adds support for the keyExchange field in CloudTrail tlsDetails, enabling customers to distinguish classical from post-quantum hybrid key exchange for TLS connections on Application Load Balancers. + +# v1.64.0 (2026-11-10) + +* **Feature**: Enable schema-based (de)serialization for this service. +* **Dependency Update**: Update to smithy-go v1.28.9. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.63.9 (2026-11-06) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.63.8 (2026-11-05) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_client.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_client.go index 9fb8f86d2..89e194b0b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_client.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_client.go @@ -16,6 +16,7 @@ import ( internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy" internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources" "github.com/aws/aws-sdk-go-v2/internal/timeouts" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" smithy "github.com/aws/smithy-go" smithydocument "github.com/aws/smithy-go/document" "github.com/aws/smithy-go/logging" @@ -23,6 +24,7 @@ import ( "github.com/aws/smithy-go/middleware" "github.com/aws/smithy-go/tracing" smithyhttp "github.com/aws/smithy-go/transport/http" + "github.com/aws/smithy-go/transport/http/protocol/awsquery" "net" "net/http" "sync/atomic" @@ -211,6 +213,8 @@ func New(options Options, optFns ...func(*Options)) *Client { resolveAuthSchemeResolver(&options) + options.Protocol = awsquery.New(schemas.ElasticLoadBalancing_v10) + for _, fn := range optFns { fn(&options) } @@ -428,6 +432,102 @@ func resolveAuthSchemes(options *Options) { } } +type serializeRequestMiddleware struct { + options *Options + operationSchema *smithy.OperationSchema +} + +func (*serializeRequestMiddleware) ID() string { + return "OperationSerializer" +} + +func (m *serializeRequestMiddleware) HandleSerialize( + ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler, +) ( + middleware.SerializeOutput, middleware.Metadata, error, +) { + req, ok := in.Request.(*smithyhttp.Request) + if !ok { + return middleware.SerializeOutput{}, middleware.Metadata{}, fmt.Errorf("unexpected transport type %T", in.Request) + } + + input, ok := in.Parameters.(smithy.Serializable) + if !ok { + return middleware.SerializeOutput{}, middleware.Metadata{}, fmt.Errorf("input %T is not Serializable", in.Request) + } + + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + + err := m.options.Protocol.SerializeRequest(ctx, m.operationSchema, input, req) + + endTimer() + span.End() + + if err != nil { + return middleware.SerializeOutput{}, middleware.Metadata{}, err + } + + return next.HandleSerialize(ctx, in) +} + +type deserializeResponseMiddleware struct { + options *Options + operationSchema *smithy.OperationSchema + output smithy.Deserializable +} + +func (*deserializeResponseMiddleware) ID() string { + return "OperationDeserializer" +} + +func (m *deserializeResponseMiddleware) HandleDeserialize( + ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler, +) ( + middleware.DeserializeOutput, middleware.Metadata, error, +) { + out, md, err := next.HandleDeserialize(ctx, in) + + resp, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + if err != nil { + // Transport-level failure with no HTTP response to close. + return out, md, err + } + return out, md, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + // Close the response body on return. CloseResponseBody keeps the body + // open only for a successful caller-owned stream (a streaming payload + // with a nil error); on any error -- including one surfaced by an + // interceptor that runs after OperationDeserializer (after transmit or + // before deserialization) -- it closes the received body. Registering + // this before the error check below is what covers those interceptor + // aborts. Event streams close their own body in the event stream + // deserializer. + if !m.operationSchema.IsInputEventStream() && !m.operationSchema.IsOutputEventStream() { + _, isStreamingPayload := m.output.(smithy.StreamingOutput) + defer func() { + smithyhttp.CloseResponseBody(ctx, resp, isStreamingPayload, err) + }() + } + + if err != nil { + return out, md, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + + err = m.options.Protocol.DeserializeResponse(ctx, m.operationSchema, TypeRegistry, resp, m.output) + out.Result = m.output + + endTimer() + span.End() + + return out, md, err +} + type noSmithyDocumentSerde = smithydocument.NoSerde func resolveDefaultLogger(o *Options) { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_AddListenerCertificates.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_AddListenerCertificates.go index 6cc705dc7..f95d96e8d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_AddListenerCertificates.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_AddListenerCertificates.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -50,6 +52,21 @@ type AddListenerCertificatesInput struct { noSmithyDocumentSerde } +func (v *AddListenerCertificatesInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.AddListenerCertificatesInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *AddListenerCertificatesInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Certificates != nil { + serializeCertificateList(s, schemas.AddListenerCertificatesInput_Certificates, v.Certificates) + } + if v.ListenerArn != nil { + s.WriteString(schemas.AddListenerCertificatesInput_ListenerArn, *v.ListenerArn) + } +} + type AddListenerCertificatesOutput struct { // Information about the certificates in the certificate list. @@ -61,13 +78,31 @@ type AddListenerCertificatesOutput struct { noSmithyDocumentSerde } +func (v *AddListenerCertificatesOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.AddListenerCertificatesOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *AddListenerCertificatesOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Certificates != nil { + serializeCertificateList(s, schemas.AddListenerCertificatesOutput_Certificates, v.Certificates) + } +} +func (v *AddListenerCertificatesOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.AddListenerCertificatesOutput, func(s *smithy.Schema) error { + switch s { + case schemas.AddListenerCertificatesOutput_Certificates: + return deserializeCertificateList(d, schemas.AddListenerCertificatesOutput_Certificates, &v.Certificates) + } + return nil + }) +} func (c *Client) addOperationAddListenerCertificatesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpAddListenerCertificates{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.AddListenerCertificates, schemas.AddListenerCertificatesInput, schemas.AddListenerCertificatesOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpAddListenerCertificates{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.AddListenerCertificates, schemas.AddListenerCertificatesInput, schemas.AddListenerCertificatesOutput), output: &AddListenerCertificatesOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_AddTags.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_AddTags.go index 87d4a2b83..94b0c9430 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_AddTags.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_AddTags.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -44,6 +46,21 @@ type AddTagsInput struct { noSmithyDocumentSerde } +func (v *AddTagsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.AddTagsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *AddTagsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.ResourceArns != nil { + serializeResourceArns(s, schemas.AddTagsInput_ResourceArns, v.ResourceArns) + } + if v.Tags != nil { + serializeTagList(s, schemas.AddTagsInput_Tags, v.Tags) + } +} + type AddTagsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata @@ -51,13 +68,26 @@ type AddTagsOutput struct { noSmithyDocumentSerde } +func (v *AddTagsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.AddTagsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *AddTagsOutput) SerializeMembers(s smithy.ShapeSerializer) { +} +func (v *AddTagsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.AddTagsOutput, func(s *smithy.Schema) error { + switch s { + } + return nil + }) +} func (c *Client) addOperationAddTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpAddTags{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.AddTags, schemas.AddTagsInput, schemas.AddTagsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpAddTags{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.AddTags, schemas.AddTagsInput, schemas.AddTagsOutput), output: &AddTagsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_AddTrustStoreRevocations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_AddTrustStoreRevocations.go index f34a33b2c..fa3586ca3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_AddTrustStoreRevocations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_AddTrustStoreRevocations.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -37,6 +39,21 @@ type AddTrustStoreRevocationsInput struct { noSmithyDocumentSerde } +func (v *AddTrustStoreRevocationsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.AddTrustStoreRevocationsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *AddTrustStoreRevocationsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.RevocationContents != nil { + serializeRevocationContents(s, schemas.AddTrustStoreRevocationsInput_RevocationContents, v.RevocationContents) + } + if v.TrustStoreArn != nil { + s.WriteString(schemas.AddTrustStoreRevocationsInput_TrustStoreArn, *v.TrustStoreArn) + } +} + type AddTrustStoreRevocationsOutput struct { // Information about the revocation file added to the trust store. @@ -48,13 +65,31 @@ type AddTrustStoreRevocationsOutput struct { noSmithyDocumentSerde } +func (v *AddTrustStoreRevocationsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.AddTrustStoreRevocationsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *AddTrustStoreRevocationsOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.TrustStoreRevocations != nil { + serializeTrustStoreRevocations(s, schemas.AddTrustStoreRevocationsOutput_TrustStoreRevocations, v.TrustStoreRevocations) + } +} +func (v *AddTrustStoreRevocationsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.AddTrustStoreRevocationsOutput, func(s *smithy.Schema) error { + switch s { + case schemas.AddTrustStoreRevocationsOutput_TrustStoreRevocations: + return deserializeTrustStoreRevocations(d, schemas.AddTrustStoreRevocationsOutput_TrustStoreRevocations, &v.TrustStoreRevocations) + } + return nil + }) +} func (c *Client) addOperationAddTrustStoreRevocationsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpAddTrustStoreRevocations{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.AddTrustStoreRevocations, schemas.AddTrustStoreRevocationsInput, schemas.AddTrustStoreRevocationsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpAddTrustStoreRevocations{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.AddTrustStoreRevocations, schemas.AddTrustStoreRevocationsInput, schemas.AddTrustStoreRevocationsOutput), output: &AddTrustStoreRevocationsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateListener.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateListener.go index 01ca2a4b4..b5f99ee66 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateListener.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateListener.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -76,7 +78,7 @@ type CreateListenerInput struct { // do not set IsDefault . Certificates []types.Certificate - // [HTTPS listeners] The mutual authentication configuration information. + // [HTTPS and TLS listeners] The mutual authentication configuration information. MutualAuthentication *types.MutualAuthenticationAttributes // The port on which the load balancer is listening. You can't specify a port for @@ -106,6 +108,44 @@ type CreateListenerInput struct { noSmithyDocumentSerde } +func (v *CreateListenerInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CreateListenerInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CreateListenerInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.AlpnPolicy != nil { + serializeAlpnPolicyName(s, schemas.CreateListenerInput_AlpnPolicy, v.AlpnPolicy) + } + if v.Certificates != nil { + serializeCertificateList(s, schemas.CreateListenerInput_Certificates, v.Certificates) + } + if v.DefaultActions != nil { + serializeActions(s, schemas.CreateListenerInput_DefaultActions, v.DefaultActions) + } + if v.LoadBalancerArn != nil { + s.WriteString(schemas.CreateListenerInput_LoadBalancerArn, *v.LoadBalancerArn) + } + if v.MutualAuthentication != nil { + s.WriteStruct(schemas.CreateListenerInput_MutualAuthentication) + v.MutualAuthentication.SerializeMembers(s) + s.CloseStruct() + } + if v.Port != nil { + s.WriteInt32(schemas.CreateListenerInput_Port, *v.Port) + } + if v.Protocol != "" { + s.WriteString(schemas.CreateListenerInput_Protocol, string(v.Protocol)) + } + if v.SslPolicy != nil { + s.WriteString(schemas.CreateListenerInput_SslPolicy, *v.SslPolicy) + } + if v.Tags != nil { + serializeTagList(s, schemas.CreateListenerInput_Tags, v.Tags) + } +} + type CreateListenerOutput struct { // Information about the listener. @@ -117,13 +157,31 @@ type CreateListenerOutput struct { noSmithyDocumentSerde } +func (v *CreateListenerOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CreateListenerOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CreateListenerOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Listeners != nil { + serializeListeners(s, schemas.CreateListenerOutput_Listeners, v.Listeners) + } +} +func (v *CreateListenerOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.CreateListenerOutput, func(s *smithy.Schema) error { + switch s { + case schemas.CreateListenerOutput_Listeners: + return deserializeListeners(d, schemas.CreateListenerOutput_Listeners, &v.Listeners) + } + return nil + }) +} func (c *Client) addOperationCreateListenerMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpCreateListener{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.CreateListener, schemas.CreateListenerInput, schemas.CreateListenerOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpCreateListener{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.CreateListener, schemas.CreateListenerInput, schemas.CreateListenerOutput), output: &CreateListenerOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateLoadBalancer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateLoadBalancer.go index 92c6bebfc..8c1461ee6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateLoadBalancer.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateLoadBalancer.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -140,6 +142,50 @@ type CreateLoadBalancerInput struct { noSmithyDocumentSerde } +func (v *CreateLoadBalancerInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CreateLoadBalancerInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CreateLoadBalancerInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.CustomerOwnedIpv4Pool != nil { + s.WriteString(schemas.CreateLoadBalancerInput_CustomerOwnedIpv4Pool, *v.CustomerOwnedIpv4Pool) + } + if v.EnablePrefixForIpv6SourceNat != "" { + s.WriteString(schemas.CreateLoadBalancerInput_EnablePrefixForIpv6SourceNat, string(v.EnablePrefixForIpv6SourceNat)) + } + if v.IpAddressType != "" { + s.WriteString(schemas.CreateLoadBalancerInput_IpAddressType, string(v.IpAddressType)) + } + if v.IpamPools != nil { + s.WriteStruct(schemas.CreateLoadBalancerInput_IpamPools) + v.IpamPools.SerializeMembers(s) + s.CloseStruct() + } + if v.Name != nil { + s.WriteString(schemas.CreateLoadBalancerInput_Name, *v.Name) + } + if v.Scheme != "" { + s.WriteString(schemas.CreateLoadBalancerInput_Scheme, string(v.Scheme)) + } + if v.SecurityGroups != nil { + serializeSecurityGroups(s, schemas.CreateLoadBalancerInput_SecurityGroups, v.SecurityGroups) + } + if v.SubnetMappings != nil { + serializeSubnetMappings(s, schemas.CreateLoadBalancerInput_SubnetMappings, v.SubnetMappings) + } + if v.Subnets != nil { + serializeSubnets(s, schemas.CreateLoadBalancerInput_Subnets, v.Subnets) + } + if v.Tags != nil { + serializeTagList(s, schemas.CreateLoadBalancerInput_Tags, v.Tags) + } + if v.Type != "" { + s.WriteString(schemas.CreateLoadBalancerInput_Type, string(v.Type)) + } +} + type CreateLoadBalancerOutput struct { // Information about the load balancer. @@ -151,13 +197,31 @@ type CreateLoadBalancerOutput struct { noSmithyDocumentSerde } +func (v *CreateLoadBalancerOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CreateLoadBalancerOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CreateLoadBalancerOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.LoadBalancers != nil { + serializeLoadBalancers(s, schemas.CreateLoadBalancerOutput_LoadBalancers, v.LoadBalancers) + } +} +func (v *CreateLoadBalancerOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.CreateLoadBalancerOutput, func(s *smithy.Schema) error { + switch s { + case schemas.CreateLoadBalancerOutput_LoadBalancers: + return deserializeLoadBalancers(d, schemas.CreateLoadBalancerOutput_LoadBalancers, &v.LoadBalancers) + } + return nil + }) +} func (c *Client) addOperationCreateLoadBalancerMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpCreateLoadBalancer{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.CreateLoadBalancer, schemas.CreateLoadBalancerInput, schemas.CreateLoadBalancerOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpCreateLoadBalancer{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.CreateLoadBalancer, schemas.CreateLoadBalancerInput, schemas.CreateLoadBalancerOutput), output: &CreateLoadBalancerOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateRule.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateRule.go index 2a20e2375..3fe7f3f3b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateRule.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateRule.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -66,6 +68,33 @@ type CreateRuleInput struct { noSmithyDocumentSerde } +func (v *CreateRuleInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CreateRuleInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CreateRuleInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Actions != nil { + serializeActions(s, schemas.CreateRuleInput_Actions, v.Actions) + } + if v.Conditions != nil { + serializeRuleConditionList(s, schemas.CreateRuleInput_Conditions, v.Conditions) + } + if v.ListenerArn != nil { + s.WriteString(schemas.CreateRuleInput_ListenerArn, *v.ListenerArn) + } + if v.Priority != nil { + s.WriteInt32(schemas.CreateRuleInput_Priority, *v.Priority) + } + if v.Tags != nil { + serializeTagList(s, schemas.CreateRuleInput_Tags, v.Tags) + } + if v.Transforms != nil { + serializeRuleTransformList(s, schemas.CreateRuleInput_Transforms, v.Transforms) + } +} + type CreateRuleOutput struct { // Information about the rule. @@ -77,13 +106,31 @@ type CreateRuleOutput struct { noSmithyDocumentSerde } +func (v *CreateRuleOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CreateRuleOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CreateRuleOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Rules != nil { + serializeRules(s, schemas.CreateRuleOutput_Rules, v.Rules) + } +} +func (v *CreateRuleOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.CreateRuleOutput, func(s *smithy.Schema) error { + switch s { + case schemas.CreateRuleOutput_Rules: + return deserializeRules(d, schemas.CreateRuleOutput_Rules, &v.Rules) + } + return nil + }) +} func (c *Client) addOperationCreateRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpCreateRule{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.CreateRule, schemas.CreateRuleInput, schemas.CreateRuleOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpCreateRule{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.CreateRule, schemas.CreateRuleInput, schemas.CreateRuleOutput), output: &CreateRuleOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateTargetGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateTargetGroup.go index db55cc818..71226978a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateTargetGroup.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateTargetGroup.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -168,6 +170,71 @@ type CreateTargetGroupInput struct { noSmithyDocumentSerde } +func (v *CreateTargetGroupInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CreateTargetGroupInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CreateTargetGroupInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.HealthCheckEnabled != nil { + s.WriteBool(schemas.CreateTargetGroupInput_HealthCheckEnabled, *v.HealthCheckEnabled) + } + if v.HealthCheckIntervalSeconds != nil { + s.WriteInt32(schemas.CreateTargetGroupInput_HealthCheckIntervalSeconds, *v.HealthCheckIntervalSeconds) + } + if v.HealthCheckPath != nil { + s.WriteString(schemas.CreateTargetGroupInput_HealthCheckPath, *v.HealthCheckPath) + } + if v.HealthCheckPort != nil { + s.WriteString(schemas.CreateTargetGroupInput_HealthCheckPort, *v.HealthCheckPort) + } + if v.HealthCheckProtocol != "" { + s.WriteString(schemas.CreateTargetGroupInput_HealthCheckProtocol, string(v.HealthCheckProtocol)) + } + if v.HealthCheckTimeoutSeconds != nil { + s.WriteInt32(schemas.CreateTargetGroupInput_HealthCheckTimeoutSeconds, *v.HealthCheckTimeoutSeconds) + } + if v.HealthyThresholdCount != nil { + s.WriteInt32(schemas.CreateTargetGroupInput_HealthyThresholdCount, *v.HealthyThresholdCount) + } + if v.IpAddressType != "" { + s.WriteString(schemas.CreateTargetGroupInput_IpAddressType, string(v.IpAddressType)) + } + if v.Matcher != nil { + s.WriteStruct(schemas.CreateTargetGroupInput_Matcher) + v.Matcher.SerializeMembers(s) + s.CloseStruct() + } + if v.Name != nil { + s.WriteString(schemas.CreateTargetGroupInput_Name, *v.Name) + } + if v.Port != nil { + s.WriteInt32(schemas.CreateTargetGroupInput_Port, *v.Port) + } + if v.Protocol != "" { + s.WriteString(schemas.CreateTargetGroupInput_Protocol, string(v.Protocol)) + } + if v.ProtocolVersion != nil { + s.WriteString(schemas.CreateTargetGroupInput_ProtocolVersion, *v.ProtocolVersion) + } + if v.Tags != nil { + serializeTagList(s, schemas.CreateTargetGroupInput_Tags, v.Tags) + } + if v.TargetControlPort != nil { + s.WriteInt32(schemas.CreateTargetGroupInput_TargetControlPort, *v.TargetControlPort) + } + if v.TargetType != "" { + s.WriteString(schemas.CreateTargetGroupInput_TargetType, string(v.TargetType)) + } + if v.UnhealthyThresholdCount != nil { + s.WriteInt32(schemas.CreateTargetGroupInput_UnhealthyThresholdCount, *v.UnhealthyThresholdCount) + } + if v.VpcId != nil { + s.WriteString(schemas.CreateTargetGroupInput_VpcId, *v.VpcId) + } +} + type CreateTargetGroupOutput struct { // Information about the target group. @@ -179,13 +246,31 @@ type CreateTargetGroupOutput struct { noSmithyDocumentSerde } +func (v *CreateTargetGroupOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CreateTargetGroupOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CreateTargetGroupOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.TargetGroups != nil { + serializeTargetGroups(s, schemas.CreateTargetGroupOutput_TargetGroups, v.TargetGroups) + } +} +func (v *CreateTargetGroupOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.CreateTargetGroupOutput, func(s *smithy.Schema) error { + switch s { + case schemas.CreateTargetGroupOutput_TargetGroups: + return deserializeTargetGroups(d, schemas.CreateTargetGroupOutput_TargetGroups, &v.TargetGroups) + } + return nil + }) +} func (c *Client) addOperationCreateTargetGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpCreateTargetGroup{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.CreateTargetGroup, schemas.CreateTargetGroupInput, schemas.CreateTargetGroupOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpCreateTargetGroup{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.CreateTargetGroup, schemas.CreateTargetGroupInput, schemas.CreateTargetGroupOutput), output: &CreateTargetGroupOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateTrustStore.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateTrustStore.go index 4a3acd5af..805489c45 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateTrustStore.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_CreateTrustStore.go @@ -4,15 +4,18 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) // Creates a trust store. // -// For more information, see [Mutual TLS for Application Load Balancers]. +// For more information, see [Mutual TLS for Application Load Balancers] or [Mutual TLS for Network Load Balancers]. // // [Mutual TLS for Application Load Balancers]: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/mutual-authentication.html +// [Mutual TLS for Network Load Balancers]: https://docs.aws.amazon.com/elasticloadbalancing/latest/network/mutual-authentication.html func (c *Client) CreateTrustStore(ctx context.Context, params *CreateTrustStoreInput, optFns ...func(*Options)) (*CreateTrustStoreOutput, error) { if params == nil { params = &CreateTrustStoreInput{} @@ -57,6 +60,30 @@ type CreateTrustStoreInput struct { noSmithyDocumentSerde } +func (v *CreateTrustStoreInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CreateTrustStoreInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CreateTrustStoreInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.CaCertificatesBundleS3Bucket != nil { + s.WriteString(schemas.CreateTrustStoreInput_CaCertificatesBundleS3Bucket, *v.CaCertificatesBundleS3Bucket) + } + if v.CaCertificatesBundleS3Key != nil { + s.WriteString(schemas.CreateTrustStoreInput_CaCertificatesBundleS3Key, *v.CaCertificatesBundleS3Key) + } + if v.CaCertificatesBundleS3ObjectVersion != nil { + s.WriteString(schemas.CreateTrustStoreInput_CaCertificatesBundleS3ObjectVersion, *v.CaCertificatesBundleS3ObjectVersion) + } + if v.Name != nil { + s.WriteString(schemas.CreateTrustStoreInput_Name, *v.Name) + } + if v.Tags != nil { + serializeTagList(s, schemas.CreateTrustStoreInput_Tags, v.Tags) + } +} + type CreateTrustStoreOutput struct { // Information about the trust store created. @@ -68,13 +95,31 @@ type CreateTrustStoreOutput struct { noSmithyDocumentSerde } +func (v *CreateTrustStoreOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CreateTrustStoreOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CreateTrustStoreOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.TrustStores != nil { + serializeTrustStores(s, schemas.CreateTrustStoreOutput_TrustStores, v.TrustStores) + } +} +func (v *CreateTrustStoreOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.CreateTrustStoreOutput, func(s *smithy.Schema) error { + switch s { + case schemas.CreateTrustStoreOutput_TrustStores: + return deserializeTrustStores(d, schemas.CreateTrustStoreOutput_TrustStores, &v.TrustStores) + } + return nil + }) +} func (c *Client) addOperationCreateTrustStoreMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpCreateTrustStore{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.CreateTrustStore, schemas.CreateTrustStoreInput, schemas.CreateTrustStoreOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpCreateTrustStore{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.CreateTrustStore, schemas.CreateTrustStoreInput, schemas.CreateTrustStoreOutput), output: &CreateTrustStoreOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteListener.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteListener.go index 849988c2b..baa6c2c68 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteListener.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteListener.go @@ -4,6 +4,8 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -36,6 +38,18 @@ type DeleteListenerInput struct { noSmithyDocumentSerde } +func (v *DeleteListenerInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeleteListenerInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeleteListenerInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.ListenerArn != nil { + s.WriteString(schemas.DeleteListenerInput_ListenerArn, *v.ListenerArn) + } +} + type DeleteListenerOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata @@ -43,13 +57,26 @@ type DeleteListenerOutput struct { noSmithyDocumentSerde } +func (v *DeleteListenerOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeleteListenerOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeleteListenerOutput) SerializeMembers(s smithy.ShapeSerializer) { +} +func (v *DeleteListenerOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DeleteListenerOutput, func(s *smithy.Schema) error { + switch s { + } + return nil + }) +} func (c *Client) addOperationDeleteListenerMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDeleteListener{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeleteListener, schemas.DeleteListenerInput, schemas.DeleteListenerOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDeleteListener{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeleteListener, schemas.DeleteListenerInput, schemas.DeleteListenerOutput), output: &DeleteListenerOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteLoadBalancer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteLoadBalancer.go index 9e094ac0c..b58a192ff 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteLoadBalancer.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteLoadBalancer.go @@ -4,6 +4,8 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -42,6 +44,18 @@ type DeleteLoadBalancerInput struct { noSmithyDocumentSerde } +func (v *DeleteLoadBalancerInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeleteLoadBalancerInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeleteLoadBalancerInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.LoadBalancerArn != nil { + s.WriteString(schemas.DeleteLoadBalancerInput_LoadBalancerArn, *v.LoadBalancerArn) + } +} + type DeleteLoadBalancerOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata @@ -49,13 +63,26 @@ type DeleteLoadBalancerOutput struct { noSmithyDocumentSerde } +func (v *DeleteLoadBalancerOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeleteLoadBalancerOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeleteLoadBalancerOutput) SerializeMembers(s smithy.ShapeSerializer) { +} +func (v *DeleteLoadBalancerOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DeleteLoadBalancerOutput, func(s *smithy.Schema) error { + switch s { + } + return nil + }) +} func (c *Client) addOperationDeleteLoadBalancerMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDeleteLoadBalancer{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeleteLoadBalancer, schemas.DeleteLoadBalancerInput, schemas.DeleteLoadBalancerOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDeleteLoadBalancer{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeleteLoadBalancer, schemas.DeleteLoadBalancerInput, schemas.DeleteLoadBalancerOutput), output: &DeleteLoadBalancerOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteRule.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteRule.go index a0cf61aad..313ab1d70 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteRule.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteRule.go @@ -4,6 +4,8 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -35,6 +37,18 @@ type DeleteRuleInput struct { noSmithyDocumentSerde } +func (v *DeleteRuleInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeleteRuleInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeleteRuleInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.RuleArn != nil { + s.WriteString(schemas.DeleteRuleInput_RuleArn, *v.RuleArn) + } +} + type DeleteRuleOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata @@ -42,13 +56,26 @@ type DeleteRuleOutput struct { noSmithyDocumentSerde } +func (v *DeleteRuleOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeleteRuleOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeleteRuleOutput) SerializeMembers(s smithy.ShapeSerializer) { +} +func (v *DeleteRuleOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DeleteRuleOutput, func(s *smithy.Schema) error { + switch s { + } + return nil + }) +} func (c *Client) addOperationDeleteRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDeleteRule{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeleteRule, schemas.DeleteRuleInput, schemas.DeleteRuleOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDeleteRule{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeleteRule, schemas.DeleteRuleInput, schemas.DeleteRuleOutput), output: &DeleteRuleOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteSharedTrustStoreAssociation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteSharedTrustStoreAssociation.go index 5bad30bd7..5f995e8bc 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteSharedTrustStoreAssociation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteSharedTrustStoreAssociation.go @@ -4,6 +4,8 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -38,6 +40,21 @@ type DeleteSharedTrustStoreAssociationInput struct { noSmithyDocumentSerde } +func (v *DeleteSharedTrustStoreAssociationInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeleteSharedTrustStoreAssociationInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeleteSharedTrustStoreAssociationInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.ResourceArn != nil { + s.WriteString(schemas.DeleteSharedTrustStoreAssociationInput_ResourceArn, *v.ResourceArn) + } + if v.TrustStoreArn != nil { + s.WriteString(schemas.DeleteSharedTrustStoreAssociationInput_TrustStoreArn, *v.TrustStoreArn) + } +} + type DeleteSharedTrustStoreAssociationOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata @@ -45,13 +62,26 @@ type DeleteSharedTrustStoreAssociationOutput struct { noSmithyDocumentSerde } +func (v *DeleteSharedTrustStoreAssociationOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeleteSharedTrustStoreAssociationOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeleteSharedTrustStoreAssociationOutput) SerializeMembers(s smithy.ShapeSerializer) { +} +func (v *DeleteSharedTrustStoreAssociationOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DeleteSharedTrustStoreAssociationOutput, func(s *smithy.Schema) error { + switch s { + } + return nil + }) +} func (c *Client) addOperationDeleteSharedTrustStoreAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDeleteSharedTrustStoreAssociation{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeleteSharedTrustStoreAssociation, schemas.DeleteSharedTrustStoreAssociationInput, schemas.DeleteSharedTrustStoreAssociationOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDeleteSharedTrustStoreAssociation{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeleteSharedTrustStoreAssociation, schemas.DeleteSharedTrustStoreAssociationInput, schemas.DeleteSharedTrustStoreAssociationOutput), output: &DeleteSharedTrustStoreAssociationOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteTargetGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteTargetGroup.go index b3fd64741..e900eaae4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteTargetGroup.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteTargetGroup.go @@ -4,6 +4,8 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -38,6 +40,18 @@ type DeleteTargetGroupInput struct { noSmithyDocumentSerde } +func (v *DeleteTargetGroupInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeleteTargetGroupInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeleteTargetGroupInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.TargetGroupArn != nil { + s.WriteString(schemas.DeleteTargetGroupInput_TargetGroupArn, *v.TargetGroupArn) + } +} + type DeleteTargetGroupOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata @@ -45,13 +59,26 @@ type DeleteTargetGroupOutput struct { noSmithyDocumentSerde } +func (v *DeleteTargetGroupOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeleteTargetGroupOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeleteTargetGroupOutput) SerializeMembers(s smithy.ShapeSerializer) { +} +func (v *DeleteTargetGroupOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DeleteTargetGroupOutput, func(s *smithy.Schema) error { + switch s { + } + return nil + }) +} func (c *Client) addOperationDeleteTargetGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDeleteTargetGroup{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeleteTargetGroup, schemas.DeleteTargetGroupInput, schemas.DeleteTargetGroupOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDeleteTargetGroup{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeleteTargetGroup, schemas.DeleteTargetGroupInput, schemas.DeleteTargetGroupOutput), output: &DeleteTargetGroupOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteTrustStore.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteTrustStore.go index 303351021..088a1ee72 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteTrustStore.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeleteTrustStore.go @@ -4,6 +4,8 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -33,6 +35,18 @@ type DeleteTrustStoreInput struct { noSmithyDocumentSerde } +func (v *DeleteTrustStoreInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeleteTrustStoreInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeleteTrustStoreInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.TrustStoreArn != nil { + s.WriteString(schemas.DeleteTrustStoreInput_TrustStoreArn, *v.TrustStoreArn) + } +} + type DeleteTrustStoreOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata @@ -40,13 +54,26 @@ type DeleteTrustStoreOutput struct { noSmithyDocumentSerde } +func (v *DeleteTrustStoreOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeleteTrustStoreOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeleteTrustStoreOutput) SerializeMembers(s smithy.ShapeSerializer) { +} +func (v *DeleteTrustStoreOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DeleteTrustStoreOutput, func(s *smithy.Schema) error { + switch s { + } + return nil + }) +} func (c *Client) addOperationDeleteTrustStoreMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDeleteTrustStore{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeleteTrustStore, schemas.DeleteTrustStoreInput, schemas.DeleteTrustStoreOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDeleteTrustStore{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeleteTrustStore, schemas.DeleteTrustStoreInput, schemas.DeleteTrustStoreOutput), output: &DeleteTrustStoreOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeregisterTargets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeregisterTargets.go index c9b72525a..ec74133bc 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeregisterTargets.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DeregisterTargets.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -61,6 +63,21 @@ type DeregisterTargetsInput struct { noSmithyDocumentSerde } +func (v *DeregisterTargetsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeregisterTargetsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeregisterTargetsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.TargetGroupArn != nil { + s.WriteString(schemas.DeregisterTargetsInput_TargetGroupArn, *v.TargetGroupArn) + } + if v.Targets != nil { + serializeTargetDescriptions(s, schemas.DeregisterTargetsInput_Targets, v.Targets) + } +} + type DeregisterTargetsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata @@ -68,13 +85,26 @@ type DeregisterTargetsOutput struct { noSmithyDocumentSerde } +func (v *DeregisterTargetsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeregisterTargetsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeregisterTargetsOutput) SerializeMembers(s smithy.ShapeSerializer) { +} +func (v *DeregisterTargetsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DeregisterTargetsOutput, func(s *smithy.Schema) error { + switch s { + } + return nil + }) +} func (c *Client) addOperationDeregisterTargetsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDeregisterTargets{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeregisterTargets, schemas.DeregisterTargetsInput, schemas.DeregisterTargetsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDeregisterTargets{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeregisterTargets, schemas.DeregisterTargetsInput, schemas.DeregisterTargetsOutput), output: &DeregisterTargetsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeAccountLimits.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeAccountLimits.go index 92f3f66a2..60f62c8d2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeAccountLimits.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeAccountLimits.go @@ -5,7 +5,9 @@ package elasticloadbalancingv2 import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -50,6 +52,21 @@ type DescribeAccountLimitsInput struct { noSmithyDocumentSerde } +func (v *DescribeAccountLimitsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeAccountLimitsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeAccountLimitsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Marker != nil { + s.WriteString(schemas.DescribeAccountLimitsInput_Marker, *v.Marker) + } + if v.PageSize != nil { + s.WriteInt32(schemas.DescribeAccountLimitsInput_PageSize, *v.PageSize) + } +} + type DescribeAccountLimitsOutput struct { // Information about the limits. @@ -65,13 +82,37 @@ type DescribeAccountLimitsOutput struct { noSmithyDocumentSerde } +func (v *DescribeAccountLimitsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeAccountLimitsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeAccountLimitsOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Limits != nil { + serializeLimits(s, schemas.DescribeAccountLimitsOutput_Limits, v.Limits) + } + if v.NextMarker != nil { + s.WriteString(schemas.DescribeAccountLimitsOutput_NextMarker, *v.NextMarker) + } +} +func (v *DescribeAccountLimitsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeAccountLimitsOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeAccountLimitsOutput_Limits: + return deserializeLimits(d, schemas.DescribeAccountLimitsOutput_Limits, &v.Limits) + case schemas.DescribeAccountLimitsOutput_NextMarker: + v.NextMarker = new(string) + return d.ReadString(schemas.DescribeAccountLimitsOutput_NextMarker, v.NextMarker) + } + return nil + }) +} func (c *Client) addOperationDescribeAccountLimitsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeAccountLimits{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeAccountLimits, schemas.DescribeAccountLimitsInput, schemas.DescribeAccountLimitsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeAccountLimits{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeAccountLimits, schemas.DescribeAccountLimitsInput, schemas.DescribeAccountLimitsOutput), output: &DescribeAccountLimitsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeCapacityReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeCapacityReservation.go index 5e0429667..a919bfcaa 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeCapacityReservation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeCapacityReservation.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" "time" ) @@ -35,6 +37,18 @@ type DescribeCapacityReservationInput struct { noSmithyDocumentSerde } +func (v *DescribeCapacityReservationInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeCapacityReservationInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeCapacityReservationInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.LoadBalancerArn != nil { + s.WriteString(schemas.DescribeCapacityReservationInput_LoadBalancerArn, *v.LoadBalancerArn) + } +} + type DescribeCapacityReservationOutput struct { // The state of the capacity reservation. @@ -55,13 +69,51 @@ type DescribeCapacityReservationOutput struct { noSmithyDocumentSerde } +func (v *DescribeCapacityReservationOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeCapacityReservationOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeCapacityReservationOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.CapacityReservationState != nil { + serializeZonalCapacityReservationStates(s, schemas.DescribeCapacityReservationOutput_CapacityReservationState, v.CapacityReservationState) + } + if v.DecreaseRequestsRemaining != nil { + s.WriteInt32(schemas.DescribeCapacityReservationOutput_DecreaseRequestsRemaining, *v.DecreaseRequestsRemaining) + } + if v.LastModifiedTime != nil { + s.WriteTime(schemas.DescribeCapacityReservationOutput_LastModifiedTime, *v.LastModifiedTime) + } + if v.MinimumLoadBalancerCapacity != nil { + s.WriteStruct(schemas.DescribeCapacityReservationOutput_MinimumLoadBalancerCapacity) + v.MinimumLoadBalancerCapacity.SerializeMembers(s) + s.CloseStruct() + } +} +func (v *DescribeCapacityReservationOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeCapacityReservationOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeCapacityReservationOutput_CapacityReservationState: + return deserializeZonalCapacityReservationStates(d, schemas.DescribeCapacityReservationOutput_CapacityReservationState, &v.CapacityReservationState) + case schemas.DescribeCapacityReservationOutput_DecreaseRequestsRemaining: + v.DecreaseRequestsRemaining = new(int32) + return d.ReadInt32(schemas.DescribeCapacityReservationOutput_DecreaseRequestsRemaining, v.DecreaseRequestsRemaining) + case schemas.DescribeCapacityReservationOutput_LastModifiedTime: + v.LastModifiedTime = new(time.Time) + return d.ReadTime(schemas.DescribeCapacityReservationOutput_LastModifiedTime, v.LastModifiedTime) + case schemas.DescribeCapacityReservationOutput_MinimumLoadBalancerCapacity: + v.MinimumLoadBalancerCapacity = &types.MinimumLoadBalancerCapacity{} + return v.MinimumLoadBalancerCapacity.Deserialize(d) + } + return nil + }) +} func (c *Client) addOperationDescribeCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeCapacityReservation{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeCapacityReservation, schemas.DescribeCapacityReservationInput, schemas.DescribeCapacityReservationOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeCapacityReservation{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeCapacityReservation, schemas.DescribeCapacityReservationInput, schemas.DescribeCapacityReservationOutput), output: &DescribeCapacityReservationOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeListenerAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeListenerAttributes.go index 73b65df10..4d2368f67 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeListenerAttributes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeListenerAttributes.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -34,6 +36,18 @@ type DescribeListenerAttributesInput struct { noSmithyDocumentSerde } +func (v *DescribeListenerAttributesInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeListenerAttributesInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeListenerAttributesInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.ListenerArn != nil { + s.WriteString(schemas.DescribeListenerAttributesInput_ListenerArn, *v.ListenerArn) + } +} + type DescribeListenerAttributesOutput struct { // Information about the listener attributes. @@ -45,13 +59,31 @@ type DescribeListenerAttributesOutput struct { noSmithyDocumentSerde } +func (v *DescribeListenerAttributesOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeListenerAttributesOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeListenerAttributesOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Attributes != nil { + serializeListenerAttributes(s, schemas.DescribeListenerAttributesOutput_Attributes, v.Attributes) + } +} +func (v *DescribeListenerAttributesOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeListenerAttributesOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeListenerAttributesOutput_Attributes: + return deserializeListenerAttributes(d, schemas.DescribeListenerAttributesOutput_Attributes, &v.Attributes) + } + return nil + }) +} func (c *Client) addOperationDescribeListenerAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeListenerAttributes{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeListenerAttributes, schemas.DescribeListenerAttributesInput, schemas.DescribeListenerAttributesOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeListenerAttributes{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeListenerAttributes, schemas.DescribeListenerAttributesInput, schemas.DescribeListenerAttributesOutput), output: &DescribeListenerAttributesOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeListenerCertificates.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeListenerCertificates.go index d1e102465..18fcf34ca 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeListenerCertificates.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeListenerCertificates.go @@ -5,7 +5,9 @@ package elasticloadbalancingv2 import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -53,6 +55,24 @@ type DescribeListenerCertificatesInput struct { noSmithyDocumentSerde } +func (v *DescribeListenerCertificatesInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeListenerCertificatesInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeListenerCertificatesInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.ListenerArn != nil { + s.WriteString(schemas.DescribeListenerCertificatesInput_ListenerArn, *v.ListenerArn) + } + if v.Marker != nil { + s.WriteString(schemas.DescribeListenerCertificatesInput_Marker, *v.Marker) + } + if v.PageSize != nil { + s.WriteInt32(schemas.DescribeListenerCertificatesInput_PageSize, *v.PageSize) + } +} + type DescribeListenerCertificatesOutput struct { // Information about the certificates. @@ -68,13 +88,37 @@ type DescribeListenerCertificatesOutput struct { noSmithyDocumentSerde } +func (v *DescribeListenerCertificatesOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeListenerCertificatesOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeListenerCertificatesOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Certificates != nil { + serializeCertificateList(s, schemas.DescribeListenerCertificatesOutput_Certificates, v.Certificates) + } + if v.NextMarker != nil { + s.WriteString(schemas.DescribeListenerCertificatesOutput_NextMarker, *v.NextMarker) + } +} +func (v *DescribeListenerCertificatesOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeListenerCertificatesOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeListenerCertificatesOutput_Certificates: + return deserializeCertificateList(d, schemas.DescribeListenerCertificatesOutput_Certificates, &v.Certificates) + case schemas.DescribeListenerCertificatesOutput_NextMarker: + v.NextMarker = new(string) + return d.ReadString(schemas.DescribeListenerCertificatesOutput_NextMarker, v.NextMarker) + } + return nil + }) +} func (c *Client) addOperationDescribeListenerCertificatesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeListenerCertificates{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeListenerCertificates, schemas.DescribeListenerCertificatesInput, schemas.DescribeListenerCertificatesOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeListenerCertificates{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeListenerCertificates, schemas.DescribeListenerCertificatesInput, schemas.DescribeListenerCertificatesOutput), output: &DescribeListenerCertificatesOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeListeners.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeListeners.go index 109590e1f..84101a6d4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeListeners.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeListeners.go @@ -5,7 +5,9 @@ package elasticloadbalancingv2 import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -45,6 +47,27 @@ type DescribeListenersInput struct { noSmithyDocumentSerde } +func (v *DescribeListenersInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeListenersInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeListenersInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.ListenerArns != nil { + serializeListenerArns(s, schemas.DescribeListenersInput_ListenerArns, v.ListenerArns) + } + if v.LoadBalancerArn != nil { + s.WriteString(schemas.DescribeListenersInput_LoadBalancerArn, *v.LoadBalancerArn) + } + if v.Marker != nil { + s.WriteString(schemas.DescribeListenersInput_Marker, *v.Marker) + } + if v.PageSize != nil { + s.WriteInt32(schemas.DescribeListenersInput_PageSize, *v.PageSize) + } +} + type DescribeListenersOutput struct { // Information about the listeners. @@ -60,13 +83,37 @@ type DescribeListenersOutput struct { noSmithyDocumentSerde } +func (v *DescribeListenersOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeListenersOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeListenersOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Listeners != nil { + serializeListeners(s, schemas.DescribeListenersOutput_Listeners, v.Listeners) + } + if v.NextMarker != nil { + s.WriteString(schemas.DescribeListenersOutput_NextMarker, *v.NextMarker) + } +} +func (v *DescribeListenersOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeListenersOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeListenersOutput_Listeners: + return deserializeListeners(d, schemas.DescribeListenersOutput_Listeners, &v.Listeners) + case schemas.DescribeListenersOutput_NextMarker: + v.NextMarker = new(string) + return d.ReadString(schemas.DescribeListenersOutput_NextMarker, v.NextMarker) + } + return nil + }) +} func (c *Client) addOperationDescribeListenersMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeListeners{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeListeners, schemas.DescribeListenersInput, schemas.DescribeListenersOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeListeners{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeListeners, schemas.DescribeListenersInput, schemas.DescribeListenersOutput), output: &DescribeListenersOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeLoadBalancerAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeLoadBalancerAttributes.go index 4dd8ba56a..fed6981f6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeLoadBalancerAttributes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeLoadBalancerAttributes.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -48,6 +50,18 @@ type DescribeLoadBalancerAttributesInput struct { noSmithyDocumentSerde } +func (v *DescribeLoadBalancerAttributesInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeLoadBalancerAttributesInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeLoadBalancerAttributesInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.LoadBalancerArn != nil { + s.WriteString(schemas.DescribeLoadBalancerAttributesInput_LoadBalancerArn, *v.LoadBalancerArn) + } +} + type DescribeLoadBalancerAttributesOutput struct { // Information about the load balancer attributes. @@ -59,13 +73,31 @@ type DescribeLoadBalancerAttributesOutput struct { noSmithyDocumentSerde } +func (v *DescribeLoadBalancerAttributesOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeLoadBalancerAttributesOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeLoadBalancerAttributesOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Attributes != nil { + serializeLoadBalancerAttributes(s, schemas.DescribeLoadBalancerAttributesOutput_Attributes, v.Attributes) + } +} +func (v *DescribeLoadBalancerAttributesOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeLoadBalancerAttributesOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeLoadBalancerAttributesOutput_Attributes: + return deserializeLoadBalancerAttributes(d, schemas.DescribeLoadBalancerAttributesOutput_Attributes, &v.Attributes) + } + return nil + }) +} func (c *Client) addOperationDescribeLoadBalancerAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeLoadBalancerAttributes{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeLoadBalancerAttributes, schemas.DescribeLoadBalancerAttributesInput, schemas.DescribeLoadBalancerAttributesOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeLoadBalancerAttributes{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeLoadBalancerAttributes, schemas.DescribeLoadBalancerAttributesInput, schemas.DescribeLoadBalancerAttributesOutput), output: &DescribeLoadBalancerAttributesOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go index 955db63df..f98ae3eae 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeLoadBalancers.go @@ -6,6 +6,7 @@ import ( "context" "errors" "fmt" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" @@ -49,6 +50,27 @@ type DescribeLoadBalancersInput struct { noSmithyDocumentSerde } +func (v *DescribeLoadBalancersInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeLoadBalancersInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeLoadBalancersInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.LoadBalancerArns != nil { + serializeLoadBalancerArns(s, schemas.DescribeLoadBalancersInput_LoadBalancerArns, v.LoadBalancerArns) + } + if v.Marker != nil { + s.WriteString(schemas.DescribeLoadBalancersInput_Marker, *v.Marker) + } + if v.Names != nil { + serializeLoadBalancerNames(s, schemas.DescribeLoadBalancersInput_Names, v.Names) + } + if v.PageSize != nil { + s.WriteInt32(schemas.DescribeLoadBalancersInput_PageSize, *v.PageSize) + } +} + type DescribeLoadBalancersOutput struct { // Information about the load balancers. @@ -64,13 +86,37 @@ type DescribeLoadBalancersOutput struct { noSmithyDocumentSerde } +func (v *DescribeLoadBalancersOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeLoadBalancersOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeLoadBalancersOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.LoadBalancers != nil { + serializeLoadBalancers(s, schemas.DescribeLoadBalancersOutput_LoadBalancers, v.LoadBalancers) + } + if v.NextMarker != nil { + s.WriteString(schemas.DescribeLoadBalancersOutput_NextMarker, *v.NextMarker) + } +} +func (v *DescribeLoadBalancersOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeLoadBalancersOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeLoadBalancersOutput_LoadBalancers: + return deserializeLoadBalancers(d, schemas.DescribeLoadBalancersOutput_LoadBalancers, &v.LoadBalancers) + case schemas.DescribeLoadBalancersOutput_NextMarker: + v.NextMarker = new(string) + return d.ReadString(schemas.DescribeLoadBalancersOutput_NextMarker, v.NextMarker) + } + return nil + }) +} func (c *Client) addOperationDescribeLoadBalancersMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeLoadBalancers{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeLoadBalancers, schemas.DescribeLoadBalancersInput, schemas.DescribeLoadBalancersOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeLoadBalancers{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeLoadBalancers, schemas.DescribeLoadBalancersInput, schemas.DescribeLoadBalancersOutput), output: &DescribeLoadBalancersOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeRules.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeRules.go index 70b4c0009..52f1d84ae 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeRules.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeRules.go @@ -5,7 +5,9 @@ package elasticloadbalancingv2 import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -44,6 +46,27 @@ type DescribeRulesInput struct { noSmithyDocumentSerde } +func (v *DescribeRulesInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeRulesInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeRulesInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.ListenerArn != nil { + s.WriteString(schemas.DescribeRulesInput_ListenerArn, *v.ListenerArn) + } + if v.Marker != nil { + s.WriteString(schemas.DescribeRulesInput_Marker, *v.Marker) + } + if v.PageSize != nil { + s.WriteInt32(schemas.DescribeRulesInput_PageSize, *v.PageSize) + } + if v.RuleArns != nil { + serializeRuleArns(s, schemas.DescribeRulesInput_RuleArns, v.RuleArns) + } +} + type DescribeRulesOutput struct { // If there are additional results, this is the marker for the next set of @@ -59,13 +82,37 @@ type DescribeRulesOutput struct { noSmithyDocumentSerde } +func (v *DescribeRulesOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeRulesOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeRulesOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.NextMarker != nil { + s.WriteString(schemas.DescribeRulesOutput_NextMarker, *v.NextMarker) + } + if v.Rules != nil { + serializeRules(s, schemas.DescribeRulesOutput_Rules, v.Rules) + } +} +func (v *DescribeRulesOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeRulesOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeRulesOutput_NextMarker: + v.NextMarker = new(string) + return d.ReadString(schemas.DescribeRulesOutput_NextMarker, v.NextMarker) + case schemas.DescribeRulesOutput_Rules: + return deserializeRules(d, schemas.DescribeRulesOutput_Rules, &v.Rules) + } + return nil + }) +} func (c *Client) addOperationDescribeRulesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeRules{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeRules, schemas.DescribeRulesInput, schemas.DescribeRulesOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeRules{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeRules, schemas.DescribeRulesInput, schemas.DescribeRulesOutput), output: &DescribeRulesOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeSSLPolicies.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeSSLPolicies.go index 6f0c707a1..3f6c0a7de 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeSSLPolicies.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeSSLPolicies.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -48,6 +50,27 @@ type DescribeSSLPoliciesInput struct { noSmithyDocumentSerde } +func (v *DescribeSSLPoliciesInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeSSLPoliciesInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeSSLPoliciesInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.LoadBalancerType != "" { + s.WriteString(schemas.DescribeSSLPoliciesInput_LoadBalancerType, string(v.LoadBalancerType)) + } + if v.Marker != nil { + s.WriteString(schemas.DescribeSSLPoliciesInput_Marker, *v.Marker) + } + if v.Names != nil { + serializeSslPolicyNames(s, schemas.DescribeSSLPoliciesInput_Names, v.Names) + } + if v.PageSize != nil { + s.WriteInt32(schemas.DescribeSSLPoliciesInput_PageSize, *v.PageSize) + } +} + type DescribeSSLPoliciesOutput struct { // If there are additional results, this is the marker for the next set of @@ -63,13 +86,37 @@ type DescribeSSLPoliciesOutput struct { noSmithyDocumentSerde } +func (v *DescribeSSLPoliciesOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeSSLPoliciesOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeSSLPoliciesOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.NextMarker != nil { + s.WriteString(schemas.DescribeSSLPoliciesOutput_NextMarker, *v.NextMarker) + } + if v.SslPolicies != nil { + serializeSslPolicies(s, schemas.DescribeSSLPoliciesOutput_SslPolicies, v.SslPolicies) + } +} +func (v *DescribeSSLPoliciesOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeSSLPoliciesOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeSSLPoliciesOutput_NextMarker: + v.NextMarker = new(string) + return d.ReadString(schemas.DescribeSSLPoliciesOutput_NextMarker, v.NextMarker) + case schemas.DescribeSSLPoliciesOutput_SslPolicies: + return deserializeSslPolicies(d, schemas.DescribeSSLPoliciesOutput_SslPolicies, &v.SslPolicies) + } + return nil + }) +} func (c *Client) addOperationDescribeSSLPoliciesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeSSLPolicies{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeSSLPolicies, schemas.DescribeSSLPoliciesInput, schemas.DescribeSSLPoliciesOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeSSLPolicies{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeSSLPolicies, schemas.DescribeSSLPoliciesInput, schemas.DescribeSSLPoliciesOutput), output: &DescribeSSLPoliciesOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTags.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTags.go index 77af5b2b9..512ac0f56 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTags.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTags.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -37,6 +39,18 @@ type DescribeTagsInput struct { noSmithyDocumentSerde } +func (v *DescribeTagsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTagsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTagsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.ResourceArns != nil { + serializeResourceArns(s, schemas.DescribeTagsInput_ResourceArns, v.ResourceArns) + } +} + type DescribeTagsOutput struct { // Information about the tags. @@ -48,13 +62,31 @@ type DescribeTagsOutput struct { noSmithyDocumentSerde } +func (v *DescribeTagsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTagsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTagsOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.TagDescriptions != nil { + serializeTagDescriptions(s, schemas.DescribeTagsOutput_TagDescriptions, v.TagDescriptions) + } +} +func (v *DescribeTagsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeTagsOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeTagsOutput_TagDescriptions: + return deserializeTagDescriptions(d, schemas.DescribeTagsOutput_TagDescriptions, &v.TagDescriptions) + } + return nil + }) +} func (c *Client) addOperationDescribeTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeTags{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTags, schemas.DescribeTagsInput, schemas.DescribeTagsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeTags{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTags, schemas.DescribeTagsInput, schemas.DescribeTagsOutput), output: &DescribeTagsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTargetGroupAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTargetGroupAttributes.go index 487660305..e7f63dc08 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTargetGroupAttributes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTargetGroupAttributes.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -47,6 +49,18 @@ type DescribeTargetGroupAttributesInput struct { noSmithyDocumentSerde } +func (v *DescribeTargetGroupAttributesInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTargetGroupAttributesInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTargetGroupAttributesInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.TargetGroupArn != nil { + s.WriteString(schemas.DescribeTargetGroupAttributesInput_TargetGroupArn, *v.TargetGroupArn) + } +} + type DescribeTargetGroupAttributesOutput struct { // Information about the target group attributes @@ -58,13 +72,31 @@ type DescribeTargetGroupAttributesOutput struct { noSmithyDocumentSerde } +func (v *DescribeTargetGroupAttributesOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTargetGroupAttributesOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTargetGroupAttributesOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Attributes != nil { + serializeTargetGroupAttributes(s, schemas.DescribeTargetGroupAttributesOutput_Attributes, v.Attributes) + } +} +func (v *DescribeTargetGroupAttributesOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeTargetGroupAttributesOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeTargetGroupAttributesOutput_Attributes: + return deserializeTargetGroupAttributes(d, schemas.DescribeTargetGroupAttributesOutput_Attributes, &v.Attributes) + } + return nil + }) +} func (c *Client) addOperationDescribeTargetGroupAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeTargetGroupAttributes{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTargetGroupAttributes, schemas.DescribeTargetGroupAttributesInput, schemas.DescribeTargetGroupAttributesOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeTargetGroupAttributes{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTargetGroupAttributes, schemas.DescribeTargetGroupAttributesInput, schemas.DescribeTargetGroupAttributesOutput), output: &DescribeTargetGroupAttributesOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTargetGroups.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTargetGroups.go index e16aba624..846ba965e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTargetGroups.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTargetGroups.go @@ -5,7 +5,9 @@ package elasticloadbalancingv2 import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -49,6 +51,30 @@ type DescribeTargetGroupsInput struct { noSmithyDocumentSerde } +func (v *DescribeTargetGroupsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTargetGroupsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTargetGroupsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.LoadBalancerArn != nil { + s.WriteString(schemas.DescribeTargetGroupsInput_LoadBalancerArn, *v.LoadBalancerArn) + } + if v.Marker != nil { + s.WriteString(schemas.DescribeTargetGroupsInput_Marker, *v.Marker) + } + if v.Names != nil { + serializeTargetGroupNames(s, schemas.DescribeTargetGroupsInput_Names, v.Names) + } + if v.PageSize != nil { + s.WriteInt32(schemas.DescribeTargetGroupsInput_PageSize, *v.PageSize) + } + if v.TargetGroupArns != nil { + serializeTargetGroupArns(s, schemas.DescribeTargetGroupsInput_TargetGroupArns, v.TargetGroupArns) + } +} + type DescribeTargetGroupsOutput struct { // If there are additional results, this is the marker for the next set of @@ -64,13 +90,37 @@ type DescribeTargetGroupsOutput struct { noSmithyDocumentSerde } +func (v *DescribeTargetGroupsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTargetGroupsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTargetGroupsOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.NextMarker != nil { + s.WriteString(schemas.DescribeTargetGroupsOutput_NextMarker, *v.NextMarker) + } + if v.TargetGroups != nil { + serializeTargetGroups(s, schemas.DescribeTargetGroupsOutput_TargetGroups, v.TargetGroups) + } +} +func (v *DescribeTargetGroupsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeTargetGroupsOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeTargetGroupsOutput_NextMarker: + v.NextMarker = new(string) + return d.ReadString(schemas.DescribeTargetGroupsOutput_NextMarker, v.NextMarker) + case schemas.DescribeTargetGroupsOutput_TargetGroups: + return deserializeTargetGroups(d, schemas.DescribeTargetGroupsOutput_TargetGroups, &v.TargetGroups) + } + return nil + }) +} func (c *Client) addOperationDescribeTargetGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeTargetGroups{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTargetGroups, schemas.DescribeTargetGroupsInput, schemas.DescribeTargetGroupsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeTargetGroups{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTargetGroups, schemas.DescribeTargetGroupsInput, schemas.DescribeTargetGroupsOutput), output: &DescribeTargetGroupsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go index aae36e47c..580292c20 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTargetHealth.go @@ -6,6 +6,7 @@ import ( "context" "errors" "fmt" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" @@ -46,6 +47,24 @@ type DescribeTargetHealthInput struct { noSmithyDocumentSerde } +func (v *DescribeTargetHealthInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTargetHealthInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTargetHealthInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Include != nil { + serializeListOfDescribeTargetHealthIncludeOptions(s, schemas.DescribeTargetHealthInput_Include, v.Include) + } + if v.TargetGroupArn != nil { + s.WriteString(schemas.DescribeTargetHealthInput_TargetGroupArn, *v.TargetGroupArn) + } + if v.Targets != nil { + serializeTargetDescriptions(s, schemas.DescribeTargetHealthInput_Targets, v.Targets) + } +} + type DescribeTargetHealthOutput struct { // Information about the health of the targets. @@ -57,13 +76,31 @@ type DescribeTargetHealthOutput struct { noSmithyDocumentSerde } +func (v *DescribeTargetHealthOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTargetHealthOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTargetHealthOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.TargetHealthDescriptions != nil { + serializeTargetHealthDescriptions(s, schemas.DescribeTargetHealthOutput_TargetHealthDescriptions, v.TargetHealthDescriptions) + } +} +func (v *DescribeTargetHealthOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeTargetHealthOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeTargetHealthOutput_TargetHealthDescriptions: + return deserializeTargetHealthDescriptions(d, schemas.DescribeTargetHealthOutput_TargetHealthDescriptions, &v.TargetHealthDescriptions) + } + return nil + }) +} func (c *Client) addOperationDescribeTargetHealthMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeTargetHealth{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTargetHealth, schemas.DescribeTargetHealthInput, schemas.DescribeTargetHealthOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeTargetHealth{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTargetHealth, schemas.DescribeTargetHealthInput, schemas.DescribeTargetHealthOutput), output: &DescribeTargetHealthOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTrustStoreAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTrustStoreAssociations.go index 76fb24334..b6468d4af 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTrustStoreAssociations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTrustStoreAssociations.go @@ -5,7 +5,9 @@ package elasticloadbalancingv2 import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -42,6 +44,24 @@ type DescribeTrustStoreAssociationsInput struct { noSmithyDocumentSerde } +func (v *DescribeTrustStoreAssociationsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTrustStoreAssociationsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTrustStoreAssociationsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Marker != nil { + s.WriteString(schemas.DescribeTrustStoreAssociationsInput_Marker, *v.Marker) + } + if v.PageSize != nil { + s.WriteInt32(schemas.DescribeTrustStoreAssociationsInput_PageSize, *v.PageSize) + } + if v.TrustStoreArn != nil { + s.WriteString(schemas.DescribeTrustStoreAssociationsInput_TrustStoreArn, *v.TrustStoreArn) + } +} + type DescribeTrustStoreAssociationsOutput struct { // If there are additional results, this is the marker for the next set of @@ -57,13 +77,37 @@ type DescribeTrustStoreAssociationsOutput struct { noSmithyDocumentSerde } +func (v *DescribeTrustStoreAssociationsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTrustStoreAssociationsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTrustStoreAssociationsOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.NextMarker != nil { + s.WriteString(schemas.DescribeTrustStoreAssociationsOutput_NextMarker, *v.NextMarker) + } + if v.TrustStoreAssociations != nil { + serializeTrustStoreAssociations(s, schemas.DescribeTrustStoreAssociationsOutput_TrustStoreAssociations, v.TrustStoreAssociations) + } +} +func (v *DescribeTrustStoreAssociationsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeTrustStoreAssociationsOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeTrustStoreAssociationsOutput_NextMarker: + v.NextMarker = new(string) + return d.ReadString(schemas.DescribeTrustStoreAssociationsOutput_NextMarker, v.NextMarker) + case schemas.DescribeTrustStoreAssociationsOutput_TrustStoreAssociations: + return deserializeTrustStoreAssociations(d, schemas.DescribeTrustStoreAssociationsOutput_TrustStoreAssociations, &v.TrustStoreAssociations) + } + return nil + }) +} func (c *Client) addOperationDescribeTrustStoreAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeTrustStoreAssociations{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTrustStoreAssociations, schemas.DescribeTrustStoreAssociationsInput, schemas.DescribeTrustStoreAssociationsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeTrustStoreAssociations{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTrustStoreAssociations, schemas.DescribeTrustStoreAssociationsInput, schemas.DescribeTrustStoreAssociationsOutput), output: &DescribeTrustStoreAssociationsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTrustStoreRevocations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTrustStoreRevocations.go index 2c8a4bcd2..239ff6dfb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTrustStoreRevocations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTrustStoreRevocations.go @@ -5,7 +5,9 @@ package elasticloadbalancingv2 import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -46,6 +48,27 @@ type DescribeTrustStoreRevocationsInput struct { noSmithyDocumentSerde } +func (v *DescribeTrustStoreRevocationsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTrustStoreRevocationsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTrustStoreRevocationsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Marker != nil { + s.WriteString(schemas.DescribeTrustStoreRevocationsInput_Marker, *v.Marker) + } + if v.PageSize != nil { + s.WriteInt32(schemas.DescribeTrustStoreRevocationsInput_PageSize, *v.PageSize) + } + if v.RevocationIds != nil { + serializeRevocationIds(s, schemas.DescribeTrustStoreRevocationsInput_RevocationIds, v.RevocationIds) + } + if v.TrustStoreArn != nil { + s.WriteString(schemas.DescribeTrustStoreRevocationsInput_TrustStoreArn, *v.TrustStoreArn) + } +} + type DescribeTrustStoreRevocationsOutput struct { // If there are additional results, this is the marker for the next set of @@ -61,13 +84,37 @@ type DescribeTrustStoreRevocationsOutput struct { noSmithyDocumentSerde } +func (v *DescribeTrustStoreRevocationsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTrustStoreRevocationsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTrustStoreRevocationsOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.NextMarker != nil { + s.WriteString(schemas.DescribeTrustStoreRevocationsOutput_NextMarker, *v.NextMarker) + } + if v.TrustStoreRevocations != nil { + serializeDescribeTrustStoreRevocationResponse(s, schemas.DescribeTrustStoreRevocationsOutput_TrustStoreRevocations, v.TrustStoreRevocations) + } +} +func (v *DescribeTrustStoreRevocationsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeTrustStoreRevocationsOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeTrustStoreRevocationsOutput_NextMarker: + v.NextMarker = new(string) + return d.ReadString(schemas.DescribeTrustStoreRevocationsOutput_NextMarker, v.NextMarker) + case schemas.DescribeTrustStoreRevocationsOutput_TrustStoreRevocations: + return deserializeDescribeTrustStoreRevocationResponse(d, schemas.DescribeTrustStoreRevocationsOutput_TrustStoreRevocations, &v.TrustStoreRevocations) + } + return nil + }) +} func (c *Client) addOperationDescribeTrustStoreRevocationsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeTrustStoreRevocations{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTrustStoreRevocations, schemas.DescribeTrustStoreRevocationsInput, schemas.DescribeTrustStoreRevocationsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeTrustStoreRevocations{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTrustStoreRevocations, schemas.DescribeTrustStoreRevocationsInput, schemas.DescribeTrustStoreRevocationsOutput), output: &DescribeTrustStoreRevocationsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTrustStores.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTrustStores.go index eb996a5fd..13da07f5a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTrustStores.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_DescribeTrustStores.go @@ -5,7 +5,9 @@ package elasticloadbalancingv2 import ( "context" "fmt" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -43,6 +45,27 @@ type DescribeTrustStoresInput struct { noSmithyDocumentSerde } +func (v *DescribeTrustStoresInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTrustStoresInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTrustStoresInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Marker != nil { + s.WriteString(schemas.DescribeTrustStoresInput_Marker, *v.Marker) + } + if v.Names != nil { + serializeTrustStoreNames(s, schemas.DescribeTrustStoresInput_Names, v.Names) + } + if v.PageSize != nil { + s.WriteInt32(schemas.DescribeTrustStoresInput_PageSize, *v.PageSize) + } + if v.TrustStoreArns != nil { + serializeTrustStoreArns(s, schemas.DescribeTrustStoresInput_TrustStoreArns, v.TrustStoreArns) + } +} + type DescribeTrustStoresOutput struct { // If there are additional results, this is the marker for the next set of @@ -58,13 +81,37 @@ type DescribeTrustStoresOutput struct { noSmithyDocumentSerde } +func (v *DescribeTrustStoresOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTrustStoresOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTrustStoresOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.NextMarker != nil { + s.WriteString(schemas.DescribeTrustStoresOutput_NextMarker, *v.NextMarker) + } + if v.TrustStores != nil { + serializeTrustStores(s, schemas.DescribeTrustStoresOutput_TrustStores, v.TrustStores) + } +} +func (v *DescribeTrustStoresOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeTrustStoresOutput, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeTrustStoresOutput_NextMarker: + v.NextMarker = new(string) + return d.ReadString(schemas.DescribeTrustStoresOutput_NextMarker, v.NextMarker) + case schemas.DescribeTrustStoresOutput_TrustStores: + return deserializeTrustStores(d, schemas.DescribeTrustStoresOutput_TrustStores, &v.TrustStores) + } + return nil + }) +} func (c *Client) addOperationDescribeTrustStoresMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpDescribeTrustStores{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTrustStores, schemas.DescribeTrustStoresInput, schemas.DescribeTrustStoresOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpDescribeTrustStores{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DescribeTrustStores, schemas.DescribeTrustStoresInput, schemas.DescribeTrustStoresOutput), output: &DescribeTrustStoresOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_GetResourcePolicy.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_GetResourcePolicy.go index 87b01dde5..d74dee985 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_GetResourcePolicy.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_GetResourcePolicy.go @@ -4,6 +4,8 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -33,6 +35,18 @@ type GetResourcePolicyInput struct { noSmithyDocumentSerde } +func (v *GetResourcePolicyInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.GetResourcePolicyInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *GetResourcePolicyInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.ResourceArn != nil { + s.WriteString(schemas.GetResourcePolicyInput_ResourceArn, *v.ResourceArn) + } +} + type GetResourcePolicyOutput struct { // The content of the resource policy. @@ -44,13 +58,32 @@ type GetResourcePolicyOutput struct { noSmithyDocumentSerde } +func (v *GetResourcePolicyOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.GetResourcePolicyOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *GetResourcePolicyOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Policy != nil { + s.WriteString(schemas.GetResourcePolicyOutput_Policy, *v.Policy) + } +} +func (v *GetResourcePolicyOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.GetResourcePolicyOutput, func(s *smithy.Schema) error { + switch s { + case schemas.GetResourcePolicyOutput_Policy: + v.Policy = new(string) + return d.ReadString(schemas.GetResourcePolicyOutput_Policy, v.Policy) + } + return nil + }) +} func (c *Client) addOperationGetResourcePolicyMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpGetResourcePolicy{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.GetResourcePolicy, schemas.GetResourcePolicyInput, schemas.GetResourcePolicyOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpGetResourcePolicy{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.GetResourcePolicy, schemas.GetResourcePolicyInput, schemas.GetResourcePolicyOutput), output: &GetResourcePolicyOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_GetTrustStoreCaCertificatesBundle.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_GetTrustStoreCaCertificatesBundle.go index aaa783231..bb0184cd6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_GetTrustStoreCaCertificatesBundle.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_GetTrustStoreCaCertificatesBundle.go @@ -4,6 +4,8 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -35,6 +37,18 @@ type GetTrustStoreCaCertificatesBundleInput struct { noSmithyDocumentSerde } +func (v *GetTrustStoreCaCertificatesBundleInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.GetTrustStoreCaCertificatesBundleInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *GetTrustStoreCaCertificatesBundleInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.TrustStoreArn != nil { + s.WriteString(schemas.GetTrustStoreCaCertificatesBundleInput_TrustStoreArn, *v.TrustStoreArn) + } +} + type GetTrustStoreCaCertificatesBundleOutput struct { // The ca certificate bundles Amazon S3 URI. @@ -46,13 +60,32 @@ type GetTrustStoreCaCertificatesBundleOutput struct { noSmithyDocumentSerde } +func (v *GetTrustStoreCaCertificatesBundleOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.GetTrustStoreCaCertificatesBundleOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *GetTrustStoreCaCertificatesBundleOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Location != nil { + s.WriteString(schemas.GetTrustStoreCaCertificatesBundleOutput_Location, *v.Location) + } +} +func (v *GetTrustStoreCaCertificatesBundleOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.GetTrustStoreCaCertificatesBundleOutput, func(s *smithy.Schema) error { + switch s { + case schemas.GetTrustStoreCaCertificatesBundleOutput_Location: + v.Location = new(string) + return d.ReadString(schemas.GetTrustStoreCaCertificatesBundleOutput_Location, v.Location) + } + return nil + }) +} func (c *Client) addOperationGetTrustStoreCaCertificatesBundleMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpGetTrustStoreCaCertificatesBundle{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.GetTrustStoreCaCertificatesBundle, schemas.GetTrustStoreCaCertificatesBundleInput, schemas.GetTrustStoreCaCertificatesBundleOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpGetTrustStoreCaCertificatesBundle{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.GetTrustStoreCaCertificatesBundle, schemas.GetTrustStoreCaCertificatesBundleInput, schemas.GetTrustStoreCaCertificatesBundleOutput), output: &GetTrustStoreCaCertificatesBundleOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_GetTrustStoreRevocationContent.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_GetTrustStoreRevocationContent.go index af2c5569d..4885770d0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_GetTrustStoreRevocationContent.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_GetTrustStoreRevocationContent.go @@ -4,6 +4,8 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -40,6 +42,21 @@ type GetTrustStoreRevocationContentInput struct { noSmithyDocumentSerde } +func (v *GetTrustStoreRevocationContentInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.GetTrustStoreRevocationContentInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *GetTrustStoreRevocationContentInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.RevocationId != nil { + s.WriteInt64(schemas.GetTrustStoreRevocationContentInput_RevocationId, *v.RevocationId) + } + if v.TrustStoreArn != nil { + s.WriteString(schemas.GetTrustStoreRevocationContentInput_TrustStoreArn, *v.TrustStoreArn) + } +} + type GetTrustStoreRevocationContentOutput struct { // The revocation files Amazon S3 URI. @@ -51,13 +68,32 @@ type GetTrustStoreRevocationContentOutput struct { noSmithyDocumentSerde } +func (v *GetTrustStoreRevocationContentOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.GetTrustStoreRevocationContentOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *GetTrustStoreRevocationContentOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Location != nil { + s.WriteString(schemas.GetTrustStoreRevocationContentOutput_Location, *v.Location) + } +} +func (v *GetTrustStoreRevocationContentOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.GetTrustStoreRevocationContentOutput, func(s *smithy.Schema) error { + switch s { + case schemas.GetTrustStoreRevocationContentOutput_Location: + v.Location = new(string) + return d.ReadString(schemas.GetTrustStoreRevocationContentOutput_Location, v.Location) + } + return nil + }) +} func (c *Client) addOperationGetTrustStoreRevocationContentMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpGetTrustStoreRevocationContent{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.GetTrustStoreRevocationContent, schemas.GetTrustStoreRevocationContentInput, schemas.GetTrustStoreRevocationContentOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpGetTrustStoreRevocationContent{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.GetTrustStoreRevocationContent, schemas.GetTrustStoreRevocationContentInput, schemas.GetTrustStoreRevocationContentOutput), output: &GetTrustStoreRevocationContentOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyCapacityReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyCapacityReservation.go index a59c951a0..f4211a582 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyCapacityReservation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyCapacityReservation.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" "time" ) @@ -44,6 +46,26 @@ type ModifyCapacityReservationInput struct { noSmithyDocumentSerde } +func (v *ModifyCapacityReservationInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyCapacityReservationInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyCapacityReservationInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.LoadBalancerArn != nil { + s.WriteString(schemas.ModifyCapacityReservationInput_LoadBalancerArn, *v.LoadBalancerArn) + } + if v.MinimumLoadBalancerCapacity != nil { + s.WriteStruct(schemas.ModifyCapacityReservationInput_MinimumLoadBalancerCapacity) + v.MinimumLoadBalancerCapacity.SerializeMembers(s) + s.CloseStruct() + } + if v.ResetCapacityReservation != nil { + s.WriteBool(schemas.ModifyCapacityReservationInput_ResetCapacityReservation, *v.ResetCapacityReservation) + } +} + type ModifyCapacityReservationOutput struct { // The state of the capacity reservation. @@ -64,13 +86,51 @@ type ModifyCapacityReservationOutput struct { noSmithyDocumentSerde } +func (v *ModifyCapacityReservationOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyCapacityReservationOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyCapacityReservationOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.CapacityReservationState != nil { + serializeZonalCapacityReservationStates(s, schemas.ModifyCapacityReservationOutput_CapacityReservationState, v.CapacityReservationState) + } + if v.DecreaseRequestsRemaining != nil { + s.WriteInt32(schemas.ModifyCapacityReservationOutput_DecreaseRequestsRemaining, *v.DecreaseRequestsRemaining) + } + if v.LastModifiedTime != nil { + s.WriteTime(schemas.ModifyCapacityReservationOutput_LastModifiedTime, *v.LastModifiedTime) + } + if v.MinimumLoadBalancerCapacity != nil { + s.WriteStruct(schemas.ModifyCapacityReservationOutput_MinimumLoadBalancerCapacity) + v.MinimumLoadBalancerCapacity.SerializeMembers(s) + s.CloseStruct() + } +} +func (v *ModifyCapacityReservationOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ModifyCapacityReservationOutput, func(s *smithy.Schema) error { + switch s { + case schemas.ModifyCapacityReservationOutput_CapacityReservationState: + return deserializeZonalCapacityReservationStates(d, schemas.ModifyCapacityReservationOutput_CapacityReservationState, &v.CapacityReservationState) + case schemas.ModifyCapacityReservationOutput_DecreaseRequestsRemaining: + v.DecreaseRequestsRemaining = new(int32) + return d.ReadInt32(schemas.ModifyCapacityReservationOutput_DecreaseRequestsRemaining, v.DecreaseRequestsRemaining) + case schemas.ModifyCapacityReservationOutput_LastModifiedTime: + v.LastModifiedTime = new(time.Time) + return d.ReadTime(schemas.ModifyCapacityReservationOutput_LastModifiedTime, v.LastModifiedTime) + case schemas.ModifyCapacityReservationOutput_MinimumLoadBalancerCapacity: + v.MinimumLoadBalancerCapacity = &types.MinimumLoadBalancerCapacity{} + return v.MinimumLoadBalancerCapacity.Deserialize(d) + } + return nil + }) +} func (c *Client) addOperationModifyCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpModifyCapacityReservation{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyCapacityReservation, schemas.ModifyCapacityReservationInput, schemas.ModifyCapacityReservationOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpModifyCapacityReservation{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyCapacityReservation, schemas.ModifyCapacityReservationInput, schemas.ModifyCapacityReservationOutput), output: &ModifyCapacityReservationOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyIpPools.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyIpPools.go index a7b70f3b3..4c4b72a57 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyIpPools.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyIpPools.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -40,6 +42,26 @@ type ModifyIpPoolsInput struct { noSmithyDocumentSerde } +func (v *ModifyIpPoolsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyIpPoolsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyIpPoolsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.IpamPools != nil { + s.WriteStruct(schemas.ModifyIpPoolsInput_IpamPools) + v.IpamPools.SerializeMembers(s) + s.CloseStruct() + } + if v.LoadBalancerArn != nil { + s.WriteString(schemas.ModifyIpPoolsInput_LoadBalancerArn, *v.LoadBalancerArn) + } + if v.RemoveIpamPools != nil { + serializeRemoveIpamPools(s, schemas.ModifyIpPoolsInput_RemoveIpamPools, v.RemoveIpamPools) + } +} + type ModifyIpPoolsOutput struct { // The IPAM pool ID. @@ -51,13 +73,34 @@ type ModifyIpPoolsOutput struct { noSmithyDocumentSerde } +func (v *ModifyIpPoolsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyIpPoolsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyIpPoolsOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.IpamPools != nil { + s.WriteStruct(schemas.ModifyIpPoolsOutput_IpamPools) + v.IpamPools.SerializeMembers(s) + s.CloseStruct() + } +} +func (v *ModifyIpPoolsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ModifyIpPoolsOutput, func(s *smithy.Schema) error { + switch s { + case schemas.ModifyIpPoolsOutput_IpamPools: + v.IpamPools = &types.IpamPools{} + return v.IpamPools.Deserialize(d) + } + return nil + }) +} func (c *Client) addOperationModifyIpPoolsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpModifyIpPools{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyIpPools, schemas.ModifyIpPoolsInput, schemas.ModifyIpPoolsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpModifyIpPools{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyIpPools, schemas.ModifyIpPoolsInput, schemas.ModifyIpPoolsOutput), output: &ModifyIpPoolsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyListener.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyListener.go index f4f471101..7445ebd0e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyListener.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyListener.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -67,7 +69,7 @@ type ModifyListenerInput struct { // The actions for the default rule. DefaultActions []types.Action - // [HTTPS listeners] The mutual authentication configuration information. + // [HTTPS and TLS listeners] The mutual authentication configuration information. MutualAuthentication *types.MutualAuthenticationAttributes // The port for connections from clients to the load balancer. You can't specify a @@ -93,6 +95,41 @@ type ModifyListenerInput struct { noSmithyDocumentSerde } +func (v *ModifyListenerInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyListenerInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyListenerInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.AlpnPolicy != nil { + serializeAlpnPolicyName(s, schemas.ModifyListenerInput_AlpnPolicy, v.AlpnPolicy) + } + if v.Certificates != nil { + serializeCertificateList(s, schemas.ModifyListenerInput_Certificates, v.Certificates) + } + if v.DefaultActions != nil { + serializeActions(s, schemas.ModifyListenerInput_DefaultActions, v.DefaultActions) + } + if v.ListenerArn != nil { + s.WriteString(schemas.ModifyListenerInput_ListenerArn, *v.ListenerArn) + } + if v.MutualAuthentication != nil { + s.WriteStruct(schemas.ModifyListenerInput_MutualAuthentication) + v.MutualAuthentication.SerializeMembers(s) + s.CloseStruct() + } + if v.Port != nil { + s.WriteInt32(schemas.ModifyListenerInput_Port, *v.Port) + } + if v.Protocol != "" { + s.WriteString(schemas.ModifyListenerInput_Protocol, string(v.Protocol)) + } + if v.SslPolicy != nil { + s.WriteString(schemas.ModifyListenerInput_SslPolicy, *v.SslPolicy) + } +} + type ModifyListenerOutput struct { // Information about the modified listener. @@ -104,13 +141,31 @@ type ModifyListenerOutput struct { noSmithyDocumentSerde } +func (v *ModifyListenerOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyListenerOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyListenerOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Listeners != nil { + serializeListeners(s, schemas.ModifyListenerOutput_Listeners, v.Listeners) + } +} +func (v *ModifyListenerOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ModifyListenerOutput, func(s *smithy.Schema) error { + switch s { + case schemas.ModifyListenerOutput_Listeners: + return deserializeListeners(d, schemas.ModifyListenerOutput_Listeners, &v.Listeners) + } + return nil + }) +} func (c *Client) addOperationModifyListenerMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpModifyListener{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyListener, schemas.ModifyListenerInput, schemas.ModifyListenerOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpModifyListener{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyListener, schemas.ModifyListenerInput, schemas.ModifyListenerOutput), output: &ModifyListenerOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyListenerAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyListenerAttributes.go index 5c0ba62e4..375f8d6bc 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyListenerAttributes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyListenerAttributes.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -39,6 +41,21 @@ type ModifyListenerAttributesInput struct { noSmithyDocumentSerde } +func (v *ModifyListenerAttributesInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyListenerAttributesInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyListenerAttributesInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Attributes != nil { + serializeListenerAttributes(s, schemas.ModifyListenerAttributesInput_Attributes, v.Attributes) + } + if v.ListenerArn != nil { + s.WriteString(schemas.ModifyListenerAttributesInput_ListenerArn, *v.ListenerArn) + } +} + type ModifyListenerAttributesOutput struct { // Information about the listener attributes. @@ -50,13 +67,31 @@ type ModifyListenerAttributesOutput struct { noSmithyDocumentSerde } +func (v *ModifyListenerAttributesOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyListenerAttributesOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyListenerAttributesOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Attributes != nil { + serializeListenerAttributes(s, schemas.ModifyListenerAttributesOutput_Attributes, v.Attributes) + } +} +func (v *ModifyListenerAttributesOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ModifyListenerAttributesOutput, func(s *smithy.Schema) error { + switch s { + case schemas.ModifyListenerAttributesOutput_Attributes: + return deserializeListenerAttributes(d, schemas.ModifyListenerAttributesOutput_Attributes, &v.Attributes) + } + return nil + }) +} func (c *Client) addOperationModifyListenerAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpModifyListenerAttributes{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyListenerAttributes, schemas.ModifyListenerAttributesInput, schemas.ModifyListenerAttributesOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpModifyListenerAttributes{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyListenerAttributes, schemas.ModifyListenerAttributesInput, schemas.ModifyListenerAttributesOutput), output: &ModifyListenerAttributesOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyLoadBalancerAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyLoadBalancerAttributes.go index 63601b99e..06f61c41c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyLoadBalancerAttributes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyLoadBalancerAttributes.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -44,6 +46,21 @@ type ModifyLoadBalancerAttributesInput struct { noSmithyDocumentSerde } +func (v *ModifyLoadBalancerAttributesInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyLoadBalancerAttributesInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyLoadBalancerAttributesInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Attributes != nil { + serializeLoadBalancerAttributes(s, schemas.ModifyLoadBalancerAttributesInput_Attributes, v.Attributes) + } + if v.LoadBalancerArn != nil { + s.WriteString(schemas.ModifyLoadBalancerAttributesInput_LoadBalancerArn, *v.LoadBalancerArn) + } +} + type ModifyLoadBalancerAttributesOutput struct { // Information about the load balancer attributes. @@ -55,13 +72,31 @@ type ModifyLoadBalancerAttributesOutput struct { noSmithyDocumentSerde } +func (v *ModifyLoadBalancerAttributesOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyLoadBalancerAttributesOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyLoadBalancerAttributesOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Attributes != nil { + serializeLoadBalancerAttributes(s, schemas.ModifyLoadBalancerAttributesOutput_Attributes, v.Attributes) + } +} +func (v *ModifyLoadBalancerAttributesOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ModifyLoadBalancerAttributesOutput, func(s *smithy.Schema) error { + switch s { + case schemas.ModifyLoadBalancerAttributesOutput_Attributes: + return deserializeLoadBalancerAttributes(d, schemas.ModifyLoadBalancerAttributesOutput_Attributes, &v.Attributes) + } + return nil + }) +} func (c *Client) addOperationModifyLoadBalancerAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpModifyLoadBalancerAttributes{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyLoadBalancerAttributes, schemas.ModifyLoadBalancerAttributesInput, schemas.ModifyLoadBalancerAttributesOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpModifyLoadBalancerAttributes{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyLoadBalancerAttributes, schemas.ModifyLoadBalancerAttributesInput, schemas.ModifyLoadBalancerAttributesOutput), output: &ModifyLoadBalancerAttributesOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyRule.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyRule.go index e65b4c4f7..94245ee92 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyRule.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyRule.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -54,6 +56,30 @@ type ModifyRuleInput struct { noSmithyDocumentSerde } +func (v *ModifyRuleInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyRuleInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyRuleInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Actions != nil { + serializeActions(s, schemas.ModifyRuleInput_Actions, v.Actions) + } + if v.Conditions != nil { + serializeRuleConditionList(s, schemas.ModifyRuleInput_Conditions, v.Conditions) + } + if v.ResetTransforms != nil { + s.WriteBool(schemas.ModifyRuleInput_ResetTransforms, *v.ResetTransforms) + } + if v.RuleArn != nil { + s.WriteString(schemas.ModifyRuleInput_RuleArn, *v.RuleArn) + } + if v.Transforms != nil { + serializeRuleTransformList(s, schemas.ModifyRuleInput_Transforms, v.Transforms) + } +} + type ModifyRuleOutput struct { // Information about the modified rule. @@ -65,13 +91,31 @@ type ModifyRuleOutput struct { noSmithyDocumentSerde } +func (v *ModifyRuleOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyRuleOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyRuleOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Rules != nil { + serializeRules(s, schemas.ModifyRuleOutput_Rules, v.Rules) + } +} +func (v *ModifyRuleOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ModifyRuleOutput, func(s *smithy.Schema) error { + switch s { + case schemas.ModifyRuleOutput_Rules: + return deserializeRules(d, schemas.ModifyRuleOutput_Rules, &v.Rules) + } + return nil + }) +} func (c *Client) addOperationModifyRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpModifyRule{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyRule, schemas.ModifyRuleInput, schemas.ModifyRuleOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpModifyRule{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyRule, schemas.ModifyRuleInput, schemas.ModifyRuleOutput), output: &ModifyRuleOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyTargetGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyTargetGroup.go index c58149148..2b77e7082 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyTargetGroup.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyTargetGroup.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -84,6 +86,47 @@ type ModifyTargetGroupInput struct { noSmithyDocumentSerde } +func (v *ModifyTargetGroupInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyTargetGroupInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyTargetGroupInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.HealthCheckEnabled != nil { + s.WriteBool(schemas.ModifyTargetGroupInput_HealthCheckEnabled, *v.HealthCheckEnabled) + } + if v.HealthCheckIntervalSeconds != nil { + s.WriteInt32(schemas.ModifyTargetGroupInput_HealthCheckIntervalSeconds, *v.HealthCheckIntervalSeconds) + } + if v.HealthCheckPath != nil { + s.WriteString(schemas.ModifyTargetGroupInput_HealthCheckPath, *v.HealthCheckPath) + } + if v.HealthCheckPort != nil { + s.WriteString(schemas.ModifyTargetGroupInput_HealthCheckPort, *v.HealthCheckPort) + } + if v.HealthCheckProtocol != "" { + s.WriteString(schemas.ModifyTargetGroupInput_HealthCheckProtocol, string(v.HealthCheckProtocol)) + } + if v.HealthCheckTimeoutSeconds != nil { + s.WriteInt32(schemas.ModifyTargetGroupInput_HealthCheckTimeoutSeconds, *v.HealthCheckTimeoutSeconds) + } + if v.HealthyThresholdCount != nil { + s.WriteInt32(schemas.ModifyTargetGroupInput_HealthyThresholdCount, *v.HealthyThresholdCount) + } + if v.Matcher != nil { + s.WriteStruct(schemas.ModifyTargetGroupInput_Matcher) + v.Matcher.SerializeMembers(s) + s.CloseStruct() + } + if v.TargetGroupArn != nil { + s.WriteString(schemas.ModifyTargetGroupInput_TargetGroupArn, *v.TargetGroupArn) + } + if v.UnhealthyThresholdCount != nil { + s.WriteInt32(schemas.ModifyTargetGroupInput_UnhealthyThresholdCount, *v.UnhealthyThresholdCount) + } +} + type ModifyTargetGroupOutput struct { // Information about the modified target group. @@ -95,13 +138,31 @@ type ModifyTargetGroupOutput struct { noSmithyDocumentSerde } +func (v *ModifyTargetGroupOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyTargetGroupOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyTargetGroupOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.TargetGroups != nil { + serializeTargetGroups(s, schemas.ModifyTargetGroupOutput_TargetGroups, v.TargetGroups) + } +} +func (v *ModifyTargetGroupOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ModifyTargetGroupOutput, func(s *smithy.Schema) error { + switch s { + case schemas.ModifyTargetGroupOutput_TargetGroups: + return deserializeTargetGroups(d, schemas.ModifyTargetGroupOutput_TargetGroups, &v.TargetGroups) + } + return nil + }) +} func (c *Client) addOperationModifyTargetGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpModifyTargetGroup{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyTargetGroup, schemas.ModifyTargetGroupInput, schemas.ModifyTargetGroupOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpModifyTargetGroup{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyTargetGroup, schemas.ModifyTargetGroupInput, schemas.ModifyTargetGroupOutput), output: &ModifyTargetGroupOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyTargetGroupAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyTargetGroupAttributes.go index 0c4566151..ad01b8267 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyTargetGroupAttributes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyTargetGroupAttributes.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -39,6 +41,21 @@ type ModifyTargetGroupAttributesInput struct { noSmithyDocumentSerde } +func (v *ModifyTargetGroupAttributesInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyTargetGroupAttributesInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyTargetGroupAttributesInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Attributes != nil { + serializeTargetGroupAttributes(s, schemas.ModifyTargetGroupAttributesInput_Attributes, v.Attributes) + } + if v.TargetGroupArn != nil { + s.WriteString(schemas.ModifyTargetGroupAttributesInput_TargetGroupArn, *v.TargetGroupArn) + } +} + type ModifyTargetGroupAttributesOutput struct { // Information about the target group attributes. @@ -50,13 +67,31 @@ type ModifyTargetGroupAttributesOutput struct { noSmithyDocumentSerde } +func (v *ModifyTargetGroupAttributesOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyTargetGroupAttributesOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyTargetGroupAttributesOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Attributes != nil { + serializeTargetGroupAttributes(s, schemas.ModifyTargetGroupAttributesOutput_Attributes, v.Attributes) + } +} +func (v *ModifyTargetGroupAttributesOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ModifyTargetGroupAttributesOutput, func(s *smithy.Schema) error { + switch s { + case schemas.ModifyTargetGroupAttributesOutput_Attributes: + return deserializeTargetGroupAttributes(d, schemas.ModifyTargetGroupAttributesOutput_Attributes, &v.Attributes) + } + return nil + }) +} func (c *Client) addOperationModifyTargetGroupAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpModifyTargetGroupAttributes{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyTargetGroupAttributes, schemas.ModifyTargetGroupAttributesInput, schemas.ModifyTargetGroupAttributesOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpModifyTargetGroupAttributes{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyTargetGroupAttributes, schemas.ModifyTargetGroupAttributesInput, schemas.ModifyTargetGroupAttributesOutput), output: &ModifyTargetGroupAttributesOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyTrustStore.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyTrustStore.go index 569bd27e0..01e2215e0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyTrustStore.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_ModifyTrustStore.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -48,6 +50,27 @@ type ModifyTrustStoreInput struct { noSmithyDocumentSerde } +func (v *ModifyTrustStoreInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyTrustStoreInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyTrustStoreInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.CaCertificatesBundleS3Bucket != nil { + s.WriteString(schemas.ModifyTrustStoreInput_CaCertificatesBundleS3Bucket, *v.CaCertificatesBundleS3Bucket) + } + if v.CaCertificatesBundleS3Key != nil { + s.WriteString(schemas.ModifyTrustStoreInput_CaCertificatesBundleS3Key, *v.CaCertificatesBundleS3Key) + } + if v.CaCertificatesBundleS3ObjectVersion != nil { + s.WriteString(schemas.ModifyTrustStoreInput_CaCertificatesBundleS3ObjectVersion, *v.CaCertificatesBundleS3ObjectVersion) + } + if v.TrustStoreArn != nil { + s.WriteString(schemas.ModifyTrustStoreInput_TrustStoreArn, *v.TrustStoreArn) + } +} + type ModifyTrustStoreOutput struct { // Information about the modified trust store. @@ -59,13 +82,31 @@ type ModifyTrustStoreOutput struct { noSmithyDocumentSerde } +func (v *ModifyTrustStoreOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ModifyTrustStoreOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ModifyTrustStoreOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.TrustStores != nil { + serializeTrustStores(s, schemas.ModifyTrustStoreOutput_TrustStores, v.TrustStores) + } +} +func (v *ModifyTrustStoreOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ModifyTrustStoreOutput, func(s *smithy.Schema) error { + switch s { + case schemas.ModifyTrustStoreOutput_TrustStores: + return deserializeTrustStores(d, schemas.ModifyTrustStoreOutput_TrustStores, &v.TrustStores) + } + return nil + }) +} func (c *Client) addOperationModifyTrustStoreMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpModifyTrustStore{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyTrustStore, schemas.ModifyTrustStoreInput, schemas.ModifyTrustStoreOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpModifyTrustStore{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.ModifyTrustStore, schemas.ModifyTrustStoreInput, schemas.ModifyTrustStoreOutput), output: &ModifyTrustStoreOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RegisterTargets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RegisterTargets.go index 714b66999..74d1ce3dc 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RegisterTargets.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RegisterTargets.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -59,6 +61,21 @@ type RegisterTargetsInput struct { noSmithyDocumentSerde } +func (v *RegisterTargetsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RegisterTargetsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RegisterTargetsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.TargetGroupArn != nil { + s.WriteString(schemas.RegisterTargetsInput_TargetGroupArn, *v.TargetGroupArn) + } + if v.Targets != nil { + serializeTargetDescriptions(s, schemas.RegisterTargetsInput_Targets, v.Targets) + } +} + type RegisterTargetsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata @@ -66,13 +83,26 @@ type RegisterTargetsOutput struct { noSmithyDocumentSerde } +func (v *RegisterTargetsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RegisterTargetsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RegisterTargetsOutput) SerializeMembers(s smithy.ShapeSerializer) { +} +func (v *RegisterTargetsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RegisterTargetsOutput, func(s *smithy.Schema) error { + switch s { + } + return nil + }) +} func (c *Client) addOperationRegisterTargetsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpRegisterTargets{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.RegisterTargets, schemas.RegisterTargetsInput, schemas.RegisterTargetsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpRegisterTargets{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.RegisterTargets, schemas.RegisterTargetsInput, schemas.RegisterTargetsOutput), output: &RegisterTargetsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RemoveListenerCertificates.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RemoveListenerCertificates.go index 770f43314..c815e82cb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RemoveListenerCertificates.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RemoveListenerCertificates.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -41,6 +43,21 @@ type RemoveListenerCertificatesInput struct { noSmithyDocumentSerde } +func (v *RemoveListenerCertificatesInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RemoveListenerCertificatesInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RemoveListenerCertificatesInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Certificates != nil { + serializeCertificateList(s, schemas.RemoveListenerCertificatesInput_Certificates, v.Certificates) + } + if v.ListenerArn != nil { + s.WriteString(schemas.RemoveListenerCertificatesInput_ListenerArn, *v.ListenerArn) + } +} + type RemoveListenerCertificatesOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata @@ -48,13 +65,26 @@ type RemoveListenerCertificatesOutput struct { noSmithyDocumentSerde } +func (v *RemoveListenerCertificatesOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RemoveListenerCertificatesOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RemoveListenerCertificatesOutput) SerializeMembers(s smithy.ShapeSerializer) { +} +func (v *RemoveListenerCertificatesOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RemoveListenerCertificatesOutput, func(s *smithy.Schema) error { + switch s { + } + return nil + }) +} func (c *Client) addOperationRemoveListenerCertificatesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpRemoveListenerCertificates{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.RemoveListenerCertificates, schemas.RemoveListenerCertificatesInput, schemas.RemoveListenerCertificatesOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpRemoveListenerCertificates{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.RemoveListenerCertificates, schemas.RemoveListenerCertificatesInput, schemas.RemoveListenerCertificatesOutput), output: &RemoveListenerCertificatesOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RemoveTags.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RemoveTags.go index db4e4c0cc..a67fa2577 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RemoveTags.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RemoveTags.go @@ -4,6 +4,8 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -40,6 +42,21 @@ type RemoveTagsInput struct { noSmithyDocumentSerde } +func (v *RemoveTagsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RemoveTagsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RemoveTagsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.ResourceArns != nil { + serializeResourceArns(s, schemas.RemoveTagsInput_ResourceArns, v.ResourceArns) + } + if v.TagKeys != nil { + serializeTagKeys(s, schemas.RemoveTagsInput_TagKeys, v.TagKeys) + } +} + type RemoveTagsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata @@ -47,13 +64,26 @@ type RemoveTagsOutput struct { noSmithyDocumentSerde } +func (v *RemoveTagsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RemoveTagsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RemoveTagsOutput) SerializeMembers(s smithy.ShapeSerializer) { +} +func (v *RemoveTagsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RemoveTagsOutput, func(s *smithy.Schema) error { + switch s { + } + return nil + }) +} func (c *Client) addOperationRemoveTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpRemoveTags{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.RemoveTags, schemas.RemoveTagsInput, schemas.RemoveTagsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpRemoveTags{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.RemoveTags, schemas.RemoveTagsInput, schemas.RemoveTagsOutput), output: &RemoveTagsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RemoveTrustStoreRevocations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RemoveTrustStoreRevocations.go index 7825163c7..29f927705 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RemoveTrustStoreRevocations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_RemoveTrustStoreRevocations.go @@ -4,6 +4,8 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -38,6 +40,21 @@ type RemoveTrustStoreRevocationsInput struct { noSmithyDocumentSerde } +func (v *RemoveTrustStoreRevocationsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RemoveTrustStoreRevocationsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RemoveTrustStoreRevocationsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.RevocationIds != nil { + serializeRevocationIds(s, schemas.RemoveTrustStoreRevocationsInput_RevocationIds, v.RevocationIds) + } + if v.TrustStoreArn != nil { + s.WriteString(schemas.RemoveTrustStoreRevocationsInput_TrustStoreArn, *v.TrustStoreArn) + } +} + type RemoveTrustStoreRevocationsOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata @@ -45,13 +62,26 @@ type RemoveTrustStoreRevocationsOutput struct { noSmithyDocumentSerde } +func (v *RemoveTrustStoreRevocationsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RemoveTrustStoreRevocationsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RemoveTrustStoreRevocationsOutput) SerializeMembers(s smithy.ShapeSerializer) { +} +func (v *RemoveTrustStoreRevocationsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RemoveTrustStoreRevocationsOutput, func(s *smithy.Schema) error { + switch s { + } + return nil + }) +} func (c *Client) addOperationRemoveTrustStoreRevocationsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpRemoveTrustStoreRevocations{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.RemoveTrustStoreRevocations, schemas.RemoveTrustStoreRevocationsInput, schemas.RemoveTrustStoreRevocationsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpRemoveTrustStoreRevocations{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.RemoveTrustStoreRevocations, schemas.RemoveTrustStoreRevocationsInput, schemas.RemoveTrustStoreRevocationsOutput), output: &RemoveTrustStoreRevocationsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetIpAddressType.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetIpAddressType.go index 633ba707c..c8b9221ba 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetIpAddressType.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetIpAddressType.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -52,6 +54,21 @@ type SetIpAddressTypeInput struct { noSmithyDocumentSerde } +func (v *SetIpAddressTypeInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.SetIpAddressTypeInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *SetIpAddressTypeInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.IpAddressType != "" { + s.WriteString(schemas.SetIpAddressTypeInput_IpAddressType, string(v.IpAddressType)) + } + if v.LoadBalancerArn != nil { + s.WriteString(schemas.SetIpAddressTypeInput_LoadBalancerArn, *v.LoadBalancerArn) + } +} + type SetIpAddressTypeOutput struct { // The IP address type. @@ -63,13 +80,36 @@ type SetIpAddressTypeOutput struct { noSmithyDocumentSerde } +func (v *SetIpAddressTypeOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.SetIpAddressTypeOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *SetIpAddressTypeOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.IpAddressType != "" { + s.WriteString(schemas.SetIpAddressTypeOutput_IpAddressType, string(v.IpAddressType)) + } +} +func (v *SetIpAddressTypeOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.SetIpAddressTypeOutput, func(s *smithy.Schema) error { + switch s { + case schemas.SetIpAddressTypeOutput_IpAddressType: + var ev string + if err := d.ReadString(schemas.SetIpAddressTypeOutput_IpAddressType, &ev); err != nil { + return err + } + v.IpAddressType = types.IpAddressType(ev) + return nil + } + return nil + }) +} func (c *Client) addOperationSetIpAddressTypeMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpSetIpAddressType{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.SetIpAddressType, schemas.SetIpAddressTypeInput, schemas.SetIpAddressTypeOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpSetIpAddressType{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.SetIpAddressType, schemas.SetIpAddressTypeInput, schemas.SetIpAddressTypeOutput), output: &SetIpAddressTypeOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetRulePriorities.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetRulePriorities.go index cd08a67f1..0f43750c1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetRulePriorities.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetRulePriorities.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -37,6 +39,18 @@ type SetRulePrioritiesInput struct { noSmithyDocumentSerde } +func (v *SetRulePrioritiesInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.SetRulePrioritiesInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *SetRulePrioritiesInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.RulePriorities != nil { + serializeRulePriorityList(s, schemas.SetRulePrioritiesInput_RulePriorities, v.RulePriorities) + } +} + type SetRulePrioritiesOutput struct { // Information about the rules. @@ -48,13 +62,31 @@ type SetRulePrioritiesOutput struct { noSmithyDocumentSerde } +func (v *SetRulePrioritiesOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.SetRulePrioritiesOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *SetRulePrioritiesOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Rules != nil { + serializeRules(s, schemas.SetRulePrioritiesOutput_Rules, v.Rules) + } +} +func (v *SetRulePrioritiesOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.SetRulePrioritiesOutput, func(s *smithy.Schema) error { + switch s { + case schemas.SetRulePrioritiesOutput_Rules: + return deserializeRules(d, schemas.SetRulePrioritiesOutput_Rules, &v.Rules) + } + return nil + }) +} func (c *Client) addOperationSetRulePrioritiesMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpSetRulePriorities{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.SetRulePriorities, schemas.SetRulePrioritiesInput, schemas.SetRulePrioritiesOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpSetRulePriorities{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.SetRulePriorities, schemas.SetRulePrioritiesInput, schemas.SetRulePrioritiesOutput), output: &SetRulePrioritiesOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetSecurityGroups.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetSecurityGroups.go index 3a6b6d141..a5303f1e9 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetSecurityGroups.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetSecurityGroups.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -51,6 +53,24 @@ type SetSecurityGroupsInput struct { noSmithyDocumentSerde } +func (v *SetSecurityGroupsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.SetSecurityGroupsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *SetSecurityGroupsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic != "" { + s.WriteString(schemas.SetSecurityGroupsInput_EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic, string(v.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic)) + } + if v.LoadBalancerArn != nil { + s.WriteString(schemas.SetSecurityGroupsInput_LoadBalancerArn, *v.LoadBalancerArn) + } + if v.SecurityGroups != nil { + serializeSecurityGroups(s, schemas.SetSecurityGroupsInput_SecurityGroups, v.SecurityGroups) + } +} + type SetSecurityGroupsOutput struct { // Indicates whether to evaluate inbound security group rules for traffic sent to @@ -66,13 +86,41 @@ type SetSecurityGroupsOutput struct { noSmithyDocumentSerde } +func (v *SetSecurityGroupsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.SetSecurityGroupsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *SetSecurityGroupsOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic != "" { + s.WriteString(schemas.SetSecurityGroupsOutput_EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic, string(v.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic)) + } + if v.SecurityGroupIds != nil { + serializeSecurityGroups(s, schemas.SetSecurityGroupsOutput_SecurityGroupIds, v.SecurityGroupIds) + } +} +func (v *SetSecurityGroupsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.SetSecurityGroupsOutput, func(s *smithy.Schema) error { + switch s { + case schemas.SetSecurityGroupsOutput_EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic: + var ev string + if err := d.ReadString(schemas.SetSecurityGroupsOutput_EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic, &ev); err != nil { + return err + } + v.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = types.EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum(ev) + return nil + case schemas.SetSecurityGroupsOutput_SecurityGroupIds: + return deserializeSecurityGroups(d, schemas.SetSecurityGroupsOutput_SecurityGroupIds, &v.SecurityGroupIds) + } + return nil + }) +} func (c *Client) addOperationSetSecurityGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpSetSecurityGroups{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.SetSecurityGroups, schemas.SetSecurityGroupsInput, schemas.SetSecurityGroupsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpSetSecurityGroups{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.SetSecurityGroups, schemas.SetSecurityGroupsInput, schemas.SetSecurityGroupsOutput), output: &SetSecurityGroupsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetSubnets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetSubnets.go index 406f7d0dd..268931342 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetSubnets.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/api_op_SetSubnets.go @@ -4,7 +4,9 @@ package elasticloadbalancingv2 import ( "context" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" ) @@ -92,6 +94,30 @@ type SetSubnetsInput struct { noSmithyDocumentSerde } +func (v *SetSubnetsInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.SetSubnetsInput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *SetSubnetsInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.EnablePrefixForIpv6SourceNat != "" { + s.WriteString(schemas.SetSubnetsInput_EnablePrefixForIpv6SourceNat, string(v.EnablePrefixForIpv6SourceNat)) + } + if v.IpAddressType != "" { + s.WriteString(schemas.SetSubnetsInput_IpAddressType, string(v.IpAddressType)) + } + if v.LoadBalancerArn != nil { + s.WriteString(schemas.SetSubnetsInput_LoadBalancerArn, *v.LoadBalancerArn) + } + if v.SubnetMappings != nil { + serializeSubnetMappings(s, schemas.SetSubnetsInput_SubnetMappings, v.SubnetMappings) + } + if v.Subnets != nil { + serializeSubnets(s, schemas.SetSubnetsInput_Subnets, v.Subnets) + } +} + type SetSubnetsOutput struct { // Information about the subnets. @@ -110,13 +136,51 @@ type SetSubnetsOutput struct { noSmithyDocumentSerde } +func (v *SetSubnetsOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.SetSubnetsOutput) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *SetSubnetsOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.AvailabilityZones != nil { + serializeAvailabilityZones(s, schemas.SetSubnetsOutput_AvailabilityZones, v.AvailabilityZones) + } + if v.EnablePrefixForIpv6SourceNat != "" { + s.WriteString(schemas.SetSubnetsOutput_EnablePrefixForIpv6SourceNat, string(v.EnablePrefixForIpv6SourceNat)) + } + if v.IpAddressType != "" { + s.WriteString(schemas.SetSubnetsOutput_IpAddressType, string(v.IpAddressType)) + } +} +func (v *SetSubnetsOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.SetSubnetsOutput, func(s *smithy.Schema) error { + switch s { + case schemas.SetSubnetsOutput_AvailabilityZones: + return deserializeAvailabilityZones(d, schemas.SetSubnetsOutput_AvailabilityZones, &v.AvailabilityZones) + case schemas.SetSubnetsOutput_EnablePrefixForIpv6SourceNat: + var ev string + if err := d.ReadString(schemas.SetSubnetsOutput_EnablePrefixForIpv6SourceNat, &ev); err != nil { + return err + } + v.EnablePrefixForIpv6SourceNat = types.EnablePrefixForIpv6SourceNatEnum(ev) + return nil + case schemas.SetSubnetsOutput_IpAddressType: + var ev string + if err := d.ReadString(schemas.SetSubnetsOutput_IpAddressType, &ev); err != nil { + return err + } + v.IpAddressType = types.IpAddressType(ev) + return nil + } + return nil + }) +} func (c *Client) addOperationSetSubnetsMiddlewares(stack *middleware.Stack, options Options) (err error) { - err = stack.Serialize.Add(&awsAwsquery_serializeOpSetSubnets{}, middleware.After) - if err != nil { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.SetSubnets, schemas.SetSubnetsInput, schemas.SetSubnetsOutput)}, middleware.After); err != nil { return err } - err = stack.Deserialize.Add(&awsAwsquery_deserializeOpSetSubnets{}, middleware.After) - if err != nil { + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.SetSubnets, schemas.SetSubnetsInput, schemas.SetSubnetsOutput), output: &SetSubnetsOutput{}}, middleware.After); err != nil { return err } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/common_serde.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/common_serde.go new file mode 100644 index 000000000..712b05453 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/common_serde.go @@ -0,0 +1,1733 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package elasticloadbalancingv2 + +import ( + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" +) + +func serializeActions(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.Action) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeAlpnPolicyName(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeAvailabilityZones(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.AvailabilityZone) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeCertificateList(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.Certificate) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeCiphers(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.Cipher) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeClientCertificateIdentityFilters(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.ClientCertificateIdentityFilter) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeDescribeTrustStoreRevocationResponse(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.DescribeTrustStoreRevocation) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeJwtValidationActionAdditionalClaims(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.JwtValidationActionAdditionalClaim) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeJwtValidationActionAdditionalClaimValues(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeLimits(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.Limit) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeListenerArns(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeListenerAttributes(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.ListenerAttribute) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeListeners(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.Listener) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeListOfDescribeTargetHealthIncludeOptions(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.DescribeTargetHealthInputIncludeEnum) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeListOfString(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeLoadBalancerAddresses(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.LoadBalancerAddress) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeLoadBalancerArns(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeLoadBalancerAttributes(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.LoadBalancerAttribute) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeLoadBalancerNames(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeLoadBalancers(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.LoadBalancer) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeQueryStringKeyValuePairList(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.QueryStringKeyValuePair) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeRemoveIpamPools(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.RemoveIpamPoolEnum) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeResourceArns(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeRevocationContents(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.RevocationContent) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeRevocationIds(s smithy.ShapeSerializer, schema *smithy.Schema, v []int64) { + s.WriteList(schema) + for _, vv := range v { + s.WriteInt64(schema.ListMember(), vv) + } + s.CloseList() +} + +func serializeRewriteConfigList(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.RewriteConfig) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeRuleArns(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeRuleConditionList(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.RuleCondition) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeRulePriorityList(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.RulePriorityPair) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeRules(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.Rule) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeRuleTransformList(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.RuleTransform) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeSecurityGroups(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeSourceNatIpv6Prefixes(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeSslPolicies(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.SslPolicy) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeSslPolicyNames(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeSslProtocols(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeSubnetMappings(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.SubnetMapping) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeSubnets(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeTagDescriptions(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.TagDescription) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTagKeys(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeTagList(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.Tag) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTargetDescriptions(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.TargetDescription) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTargetGroupArns(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeTargetGroupAttributes(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.TargetGroupAttribute) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTargetGroupList(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.TargetGroupTuple) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTargetGroupNames(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeTargetGroups(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.TargetGroup) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTargetHealthDescriptions(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.TargetHealthDescription) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTrustStoreArns(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeTrustStoreAssociations(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.TrustStoreAssociation) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTrustStoreNames(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeTrustStoreRevocations(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.TrustStoreRevocation) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTrustStores(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.TrustStore) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeZonalCapacityReservationStates(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.ZonalCapacityReservationState) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func deserializeActions(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.Action) error { + *v = make([]types.Action, 0) + var vv types.Action + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.Action + *v = append(*v, zero) + return nil + } + + vv = types.Action{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeAlpnPolicyName(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeAvailabilityZones(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.AvailabilityZone) error { + *v = make([]types.AvailabilityZone, 0) + var vv types.AvailabilityZone + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.AvailabilityZone + *v = append(*v, zero) + return nil + } + + vv = types.AvailabilityZone{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeCertificateList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.Certificate) error { + *v = make([]types.Certificate, 0) + var vv types.Certificate + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.Certificate + *v = append(*v, zero) + return nil + } + + vv = types.Certificate{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeCiphers(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.Cipher) error { + *v = make([]types.Cipher, 0) + var vv types.Cipher + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.Cipher + *v = append(*v, zero) + return nil + } + + vv = types.Cipher{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeClientCertificateIdentityFilters(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.ClientCertificateIdentityFilter) error { + *v = make([]types.ClientCertificateIdentityFilter, 0) + var vv types.ClientCertificateIdentityFilter + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.ClientCertificateIdentityFilter + *v = append(*v, zero) + return nil + } + + vv = types.ClientCertificateIdentityFilter{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeDescribeTrustStoreRevocationResponse(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.DescribeTrustStoreRevocation) error { + *v = make([]types.DescribeTrustStoreRevocation, 0) + var vv types.DescribeTrustStoreRevocation + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.DescribeTrustStoreRevocation + *v = append(*v, zero) + return nil + } + + vv = types.DescribeTrustStoreRevocation{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeJwtValidationActionAdditionalClaims(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.JwtValidationActionAdditionalClaim) error { + *v = make([]types.JwtValidationActionAdditionalClaim, 0) + var vv types.JwtValidationActionAdditionalClaim + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.JwtValidationActionAdditionalClaim + *v = append(*v, zero) + return nil + } + + vv = types.JwtValidationActionAdditionalClaim{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeJwtValidationActionAdditionalClaimValues(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeLimits(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.Limit) error { + *v = make([]types.Limit, 0) + var vv types.Limit + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.Limit + *v = append(*v, zero) + return nil + } + + vv = types.Limit{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeListenerArns(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeListenerAttributes(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.ListenerAttribute) error { + *v = make([]types.ListenerAttribute, 0) + var vv types.ListenerAttribute + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.ListenerAttribute + *v = append(*v, zero) + return nil + } + + vv = types.ListenerAttribute{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeListeners(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.Listener) error { + *v = make([]types.Listener, 0) + var vv types.Listener + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.Listener + *v = append(*v, zero) + return nil + } + + vv = types.Listener{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeListOfDescribeTargetHealthIncludeOptions(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.DescribeTargetHealthInputIncludeEnum) error { + *v = make([]types.DescribeTargetHealthInputIncludeEnum, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.DescribeTargetHealthInputIncludeEnum + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, types.DescribeTargetHealthInputIncludeEnum(vv)) + return nil + }) +} + +func deserializeListOfString(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeLoadBalancerAddresses(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.LoadBalancerAddress) error { + *v = make([]types.LoadBalancerAddress, 0) + var vv types.LoadBalancerAddress + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.LoadBalancerAddress + *v = append(*v, zero) + return nil + } + + vv = types.LoadBalancerAddress{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeLoadBalancerArns(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeLoadBalancerAttributes(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.LoadBalancerAttribute) error { + *v = make([]types.LoadBalancerAttribute, 0) + var vv types.LoadBalancerAttribute + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.LoadBalancerAttribute + *v = append(*v, zero) + return nil + } + + vv = types.LoadBalancerAttribute{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeLoadBalancerNames(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeLoadBalancers(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.LoadBalancer) error { + *v = make([]types.LoadBalancer, 0) + var vv types.LoadBalancer + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.LoadBalancer + *v = append(*v, zero) + return nil + } + + vv = types.LoadBalancer{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeQueryStringKeyValuePairList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.QueryStringKeyValuePair) error { + *v = make([]types.QueryStringKeyValuePair, 0) + var vv types.QueryStringKeyValuePair + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.QueryStringKeyValuePair + *v = append(*v, zero) + return nil + } + + vv = types.QueryStringKeyValuePair{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRemoveIpamPools(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.RemoveIpamPoolEnum) error { + *v = make([]types.RemoveIpamPoolEnum, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.RemoveIpamPoolEnum + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, types.RemoveIpamPoolEnum(vv)) + return nil + }) +} + +func deserializeResourceArns(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRevocationContents(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.RevocationContent) error { + *v = make([]types.RevocationContent, 0) + var vv types.RevocationContent + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.RevocationContent + *v = append(*v, zero) + return nil + } + + vv = types.RevocationContent{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRevocationIds(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]int64) error { + *v = make([]int64, 0) + var vv int64 + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero int64 + *v = append(*v, zero) + return nil + } + + if err := d.ReadInt64(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRewriteConfigList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.RewriteConfig) error { + *v = make([]types.RewriteConfig, 0) + var vv types.RewriteConfig + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.RewriteConfig + *v = append(*v, zero) + return nil + } + + vv = types.RewriteConfig{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRuleArns(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRuleConditionList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.RuleCondition) error { + *v = make([]types.RuleCondition, 0) + var vv types.RuleCondition + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.RuleCondition + *v = append(*v, zero) + return nil + } + + vv = types.RuleCondition{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRulePriorityList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.RulePriorityPair) error { + *v = make([]types.RulePriorityPair, 0) + var vv types.RulePriorityPair + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.RulePriorityPair + *v = append(*v, zero) + return nil + } + + vv = types.RulePriorityPair{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRules(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.Rule) error { + *v = make([]types.Rule, 0) + var vv types.Rule + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.Rule + *v = append(*v, zero) + return nil + } + + vv = types.Rule{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRuleTransformList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.RuleTransform) error { + *v = make([]types.RuleTransform, 0) + var vv types.RuleTransform + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.RuleTransform + *v = append(*v, zero) + return nil + } + + vv = types.RuleTransform{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSecurityGroups(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSourceNatIpv6Prefixes(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSslPolicies(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.SslPolicy) error { + *v = make([]types.SslPolicy, 0) + var vv types.SslPolicy + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.SslPolicy + *v = append(*v, zero) + return nil + } + + vv = types.SslPolicy{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSslPolicyNames(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSslProtocols(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSubnetMappings(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.SubnetMapping) error { + *v = make([]types.SubnetMapping, 0) + var vv types.SubnetMapping + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.SubnetMapping + *v = append(*v, zero) + return nil + } + + vv = types.SubnetMapping{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSubnets(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTagDescriptions(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.TagDescription) error { + *v = make([]types.TagDescription, 0) + var vv types.TagDescription + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.TagDescription + *v = append(*v, zero) + return nil + } + + vv = types.TagDescription{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTagKeys(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTagList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.Tag) error { + *v = make([]types.Tag, 0) + var vv types.Tag + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.Tag + *v = append(*v, zero) + return nil + } + + vv = types.Tag{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetDescriptions(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.TargetDescription) error { + *v = make([]types.TargetDescription, 0) + var vv types.TargetDescription + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.TargetDescription + *v = append(*v, zero) + return nil + } + + vv = types.TargetDescription{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetGroupArns(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetGroupAttributes(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.TargetGroupAttribute) error { + *v = make([]types.TargetGroupAttribute, 0) + var vv types.TargetGroupAttribute + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.TargetGroupAttribute + *v = append(*v, zero) + return nil + } + + vv = types.TargetGroupAttribute{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetGroupList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.TargetGroupTuple) error { + *v = make([]types.TargetGroupTuple, 0) + var vv types.TargetGroupTuple + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.TargetGroupTuple + *v = append(*v, zero) + return nil + } + + vv = types.TargetGroupTuple{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetGroupNames(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetGroups(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.TargetGroup) error { + *v = make([]types.TargetGroup, 0) + var vv types.TargetGroup + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.TargetGroup + *v = append(*v, zero) + return nil + } + + vv = types.TargetGroup{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetHealthDescriptions(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.TargetHealthDescription) error { + *v = make([]types.TargetHealthDescription, 0) + var vv types.TargetHealthDescription + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.TargetHealthDescription + *v = append(*v, zero) + return nil + } + + vv = types.TargetHealthDescription{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTrustStoreArns(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTrustStoreAssociations(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.TrustStoreAssociation) error { + *v = make([]types.TrustStoreAssociation, 0) + var vv types.TrustStoreAssociation + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.TrustStoreAssociation + *v = append(*v, zero) + return nil + } + + vv = types.TrustStoreAssociation{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTrustStoreNames(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTrustStoreRevocations(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.TrustStoreRevocation) error { + *v = make([]types.TrustStoreRevocation, 0) + var vv types.TrustStoreRevocation + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.TrustStoreRevocation + *v = append(*v, zero) + return nil + } + + vv = types.TrustStoreRevocation{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTrustStores(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.TrustStore) error { + *v = make([]types.TrustStore, 0) + var vv types.TrustStore + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.TrustStore + *v = append(*v, zero) + return nil + } + + vv = types.TrustStore{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeZonalCapacityReservationStates(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.ZonalCapacityReservationState) error { + *v = make([]types.ZonalCapacityReservationState, 0) + var vv types.ZonalCapacityReservationState + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.ZonalCapacityReservationState + *v = append(*v, zero) + return nil + } + + vv = types.ZonalCapacityReservationState{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func serializeAuthenticateCognitoActionAuthenticationRequestExtraParams(s smithy.ShapeSerializer, schema *smithy.Schema, v map[string]string) { + s.WriteMap(schema) + for k, vv := range v { + s.WriteKey(schema.MapKey(), k) + s.WriteString(schema.MapValue(), string(vv)) + } + s.CloseMap() +} + +func serializeAuthenticateOidcActionAuthenticationRequestExtraParams(s smithy.ShapeSerializer, schema *smithy.Schema, v map[string]string) { + s.WriteMap(schema) + for k, vv := range v { + s.WriteKey(schema.MapKey(), k) + s.WriteString(schema.MapValue(), string(vv)) + } + s.CloseMap() +} + +func deserializeAuthenticateCognitoActionAuthenticationRequestExtraParams(d smithy.ShapeDeserializer, s *smithy.Schema, v *map[string]string) error { + *v = make(map[string]string) + var vv string + return smithy.ReadMap(d, s, func(k string) error { + if isNil, err := d.ReadNil(s.MapValue()); err != nil { + return err + } else if isNil { + var zero string + (*v)[k] = zero + return nil + } + + if err := d.ReadString(s.MapValue(), &vv); err != nil { + return err + } + + (*v)[k] = vv + return nil + }) +} + +func deserializeAuthenticateOidcActionAuthenticationRequestExtraParams(d smithy.ShapeDeserializer, s *smithy.Schema, v *map[string]string) error { + *v = make(map[string]string) + var vv string + return smithy.ReadMap(d, s, func(k string) error { + if isNil, err := d.ReadNil(s.MapValue()); err != nil { + return err + } else if isNil { + var zero string + (*v)[k] = zero + return nil + } + + if err := d.ReadString(s.MapValue(), &vv); err != nil { + return err + } + + (*v)[k] = vv + return nil + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/deserializers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/deserializers.go deleted file mode 100644 index 1acc123c1..000000000 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/deserializers.go +++ /dev/null @@ -1,21084 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package elasticloadbalancingv2 - -import ( - "bytes" - "context" - "encoding/xml" - "fmt" - awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" - awsxml "github.com/aws/aws-sdk-go-v2/aws/protocol/xml" - "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" - smithy "github.com/aws/smithy-go" - smithyxml "github.com/aws/smithy-go/encoding/xml" - smithyio "github.com/aws/smithy-go/io" - "github.com/aws/smithy-go/middleware" - "github.com/aws/smithy-go/ptr" - smithytime "github.com/aws/smithy-go/time" - "github.com/aws/smithy-go/tracing" - smithyhttp "github.com/aws/smithy-go/transport/http" - "io" - "strconv" - "strings" -) - -type awsAwsquery_deserializeOpAddListenerCertificates struct { -} - -func (*awsAwsquery_deserializeOpAddListenerCertificates) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpAddListenerCertificates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorAddListenerCertificates(response, &metadata) - } - output := &AddListenerCertificatesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("AddListenerCertificatesResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentAddListenerCertificatesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorAddListenerCertificates(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("CertificateNotFound", errorCode): - return awsAwsquery_deserializeErrorCertificateNotFoundException(response, errorBody) - - case strings.EqualFold("ListenerNotFound", errorCode): - return awsAwsquery_deserializeErrorListenerNotFoundException(response, errorBody) - - case strings.EqualFold("TooManyCertificates", errorCode): - return awsAwsquery_deserializeErrorTooManyCertificatesException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpAddTags struct { -} - -func (*awsAwsquery_deserializeOpAddTags) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpAddTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorAddTags(response, &metadata) - } - output := &AddTagsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("AddTagsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentAddTagsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorAddTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("DuplicateTagKeys", errorCode): - return awsAwsquery_deserializeErrorDuplicateTagKeysException(response, errorBody) - - case strings.EqualFold("ListenerNotFound", errorCode): - return awsAwsquery_deserializeErrorListenerNotFoundException(response, errorBody) - - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - case strings.EqualFold("RuleNotFound", errorCode): - return awsAwsquery_deserializeErrorRuleNotFoundException(response, errorBody) - - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - case strings.EqualFold("TooManyTags", errorCode): - return awsAwsquery_deserializeErrorTooManyTagsException(response, errorBody) - - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpAddTrustStoreRevocations struct { -} - -func (*awsAwsquery_deserializeOpAddTrustStoreRevocations) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpAddTrustStoreRevocations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorAddTrustStoreRevocations(response, &metadata) - } - output := &AddTrustStoreRevocationsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("AddTrustStoreRevocationsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentAddTrustStoreRevocationsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorAddTrustStoreRevocations(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("InvalidRevocationContent", errorCode): - return awsAwsquery_deserializeErrorInvalidRevocationContentException(response, errorBody) - - case strings.EqualFold("RevocationContentNotFound", errorCode): - return awsAwsquery_deserializeErrorRevocationContentNotFoundException(response, errorBody) - - case strings.EqualFold("TooManyTrustStoreRevocationEntries", errorCode): - return awsAwsquery_deserializeErrorTooManyTrustStoreRevocationEntriesException(response, errorBody) - - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpCreateListener struct { -} - -func (*awsAwsquery_deserializeOpCreateListener) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpCreateListener) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorCreateListener(response, &metadata) - } - output := &CreateListenerOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("CreateListenerResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentCreateListenerOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorCreateListener(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("ALPNPolicyNotFound", errorCode): - return awsAwsquery_deserializeErrorALPNPolicyNotSupportedException(response, errorBody) - - case strings.EqualFold("CertificateNotFound", errorCode): - return awsAwsquery_deserializeErrorCertificateNotFoundException(response, errorBody) - - case strings.EqualFold("DuplicateListener", errorCode): - return awsAwsquery_deserializeErrorDuplicateListenerException(response, errorBody) - - case strings.EqualFold("IncompatibleProtocols", errorCode): - return awsAwsquery_deserializeErrorIncompatibleProtocolsException(response, errorBody) - - case strings.EqualFold("InvalidConfigurationRequest", errorCode): - return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) - - case strings.EqualFold("InvalidLoadBalancerAction", errorCode): - return awsAwsquery_deserializeErrorInvalidLoadBalancerActionException(response, errorBody) - - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - case strings.EqualFold("SSLPolicyNotFound", errorCode): - return awsAwsquery_deserializeErrorSSLPolicyNotFoundException(response, errorBody) - - case strings.EqualFold("TargetGroupAssociationLimit", errorCode): - return awsAwsquery_deserializeErrorTargetGroupAssociationLimitException(response, errorBody) - - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - case strings.EqualFold("TooManyActions", errorCode): - return awsAwsquery_deserializeErrorTooManyActionsException(response, errorBody) - - case strings.EqualFold("TooManyCertificates", errorCode): - return awsAwsquery_deserializeErrorTooManyCertificatesException(response, errorBody) - - case strings.EqualFold("TooManyListeners", errorCode): - return awsAwsquery_deserializeErrorTooManyListenersException(response, errorBody) - - case strings.EqualFold("TooManyRegistrationsForTargetId", errorCode): - return awsAwsquery_deserializeErrorTooManyRegistrationsForTargetIdException(response, errorBody) - - case strings.EqualFold("TooManyTags", errorCode): - return awsAwsquery_deserializeErrorTooManyTagsException(response, errorBody) - - case strings.EqualFold("TooManyTargets", errorCode): - return awsAwsquery_deserializeErrorTooManyTargetsException(response, errorBody) - - case strings.EqualFold("TooManyUniqueTargetGroupsPerLoadBalancer", errorCode): - return awsAwsquery_deserializeErrorTooManyUniqueTargetGroupsPerLoadBalancerException(response, errorBody) - - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - case strings.EqualFold("TrustStoreNotReady", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotReadyException(response, errorBody) - - case strings.EqualFold("UnsupportedProtocol", errorCode): - return awsAwsquery_deserializeErrorUnsupportedProtocolException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpCreateLoadBalancer struct { -} - -func (*awsAwsquery_deserializeOpCreateLoadBalancer) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpCreateLoadBalancer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorCreateLoadBalancer(response, &metadata) - } - output := &CreateLoadBalancerOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("CreateLoadBalancerResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentCreateLoadBalancerOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorCreateLoadBalancer(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("AllocationIdNotFound", errorCode): - return awsAwsquery_deserializeErrorAllocationIdNotFoundException(response, errorBody) - - case strings.EqualFold("AvailabilityZoneNotSupported", errorCode): - return awsAwsquery_deserializeErrorAvailabilityZoneNotSupportedException(response, errorBody) - - case strings.EqualFold("DuplicateLoadBalancerName", errorCode): - return awsAwsquery_deserializeErrorDuplicateLoadBalancerNameException(response, errorBody) - - case strings.EqualFold("DuplicateTagKeys", errorCode): - return awsAwsquery_deserializeErrorDuplicateTagKeysException(response, errorBody) - - case strings.EqualFold("InvalidConfigurationRequest", errorCode): - return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) - - case strings.EqualFold("InvalidScheme", errorCode): - return awsAwsquery_deserializeErrorInvalidSchemeException(response, errorBody) - - case strings.EqualFold("InvalidSecurityGroup", errorCode): - return awsAwsquery_deserializeErrorInvalidSecurityGroupException(response, errorBody) - - case strings.EqualFold("InvalidSubnet", errorCode): - return awsAwsquery_deserializeErrorInvalidSubnetException(response, errorBody) - - case strings.EqualFold("OperationNotPermitted", errorCode): - return awsAwsquery_deserializeErrorOperationNotPermittedException(response, errorBody) - - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsquery_deserializeErrorResourceInUseException(response, errorBody) - - case strings.EqualFold("SubnetNotFound", errorCode): - return awsAwsquery_deserializeErrorSubnetNotFoundException(response, errorBody) - - case strings.EqualFold("TooManyLoadBalancers", errorCode): - return awsAwsquery_deserializeErrorTooManyLoadBalancersException(response, errorBody) - - case strings.EqualFold("TooManyTags", errorCode): - return awsAwsquery_deserializeErrorTooManyTagsException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpCreateRule struct { -} - -func (*awsAwsquery_deserializeOpCreateRule) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpCreateRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorCreateRule(response, &metadata) - } - output := &CreateRuleOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("CreateRuleResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentCreateRuleOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorCreateRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("IncompatibleProtocols", errorCode): - return awsAwsquery_deserializeErrorIncompatibleProtocolsException(response, errorBody) - - case strings.EqualFold("InvalidConfigurationRequest", errorCode): - return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) - - case strings.EqualFold("InvalidLoadBalancerAction", errorCode): - return awsAwsquery_deserializeErrorInvalidLoadBalancerActionException(response, errorBody) - - case strings.EqualFold("ListenerNotFound", errorCode): - return awsAwsquery_deserializeErrorListenerNotFoundException(response, errorBody) - - case strings.EqualFold("PriorityInUse", errorCode): - return awsAwsquery_deserializeErrorPriorityInUseException(response, errorBody) - - case strings.EqualFold("TargetGroupAssociationLimit", errorCode): - return awsAwsquery_deserializeErrorTargetGroupAssociationLimitException(response, errorBody) - - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - case strings.EqualFold("TooManyActions", errorCode): - return awsAwsquery_deserializeErrorTooManyActionsException(response, errorBody) - - case strings.EqualFold("TooManyRegistrationsForTargetId", errorCode): - return awsAwsquery_deserializeErrorTooManyRegistrationsForTargetIdException(response, errorBody) - - case strings.EqualFold("TooManyRules", errorCode): - return awsAwsquery_deserializeErrorTooManyRulesException(response, errorBody) - - case strings.EqualFold("TooManyTags", errorCode): - return awsAwsquery_deserializeErrorTooManyTagsException(response, errorBody) - - case strings.EqualFold("TooManyTargetGroups", errorCode): - return awsAwsquery_deserializeErrorTooManyTargetGroupsException(response, errorBody) - - case strings.EqualFold("TooManyTargets", errorCode): - return awsAwsquery_deserializeErrorTooManyTargetsException(response, errorBody) - - case strings.EqualFold("TooManyUniqueTargetGroupsPerLoadBalancer", errorCode): - return awsAwsquery_deserializeErrorTooManyUniqueTargetGroupsPerLoadBalancerException(response, errorBody) - - case strings.EqualFold("UnsupportedProtocol", errorCode): - return awsAwsquery_deserializeErrorUnsupportedProtocolException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpCreateTargetGroup struct { -} - -func (*awsAwsquery_deserializeOpCreateTargetGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpCreateTargetGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorCreateTargetGroup(response, &metadata) - } - output := &CreateTargetGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("CreateTargetGroupResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentCreateTargetGroupOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorCreateTargetGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("DuplicateTargetGroupName", errorCode): - return awsAwsquery_deserializeErrorDuplicateTargetGroupNameException(response, errorBody) - - case strings.EqualFold("InvalidConfigurationRequest", errorCode): - return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) - - case strings.EqualFold("TooManyTags", errorCode): - return awsAwsquery_deserializeErrorTooManyTagsException(response, errorBody) - - case strings.EqualFold("TooManyTargetGroups", errorCode): - return awsAwsquery_deserializeErrorTooManyTargetGroupsException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpCreateTrustStore struct { -} - -func (*awsAwsquery_deserializeOpCreateTrustStore) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpCreateTrustStore) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorCreateTrustStore(response, &metadata) - } - output := &CreateTrustStoreOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("CreateTrustStoreResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentCreateTrustStoreOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorCreateTrustStore(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("CaCertificatesBundleNotFound", errorCode): - return awsAwsquery_deserializeErrorCaCertificatesBundleNotFoundException(response, errorBody) - - case strings.EqualFold("DuplicateTagKeys", errorCode): - return awsAwsquery_deserializeErrorDuplicateTagKeysException(response, errorBody) - - case strings.EqualFold("DuplicateTrustStoreName", errorCode): - return awsAwsquery_deserializeErrorDuplicateTrustStoreNameException(response, errorBody) - - case strings.EqualFold("InvalidCaCertificatesBundle", errorCode): - return awsAwsquery_deserializeErrorInvalidCaCertificatesBundleException(response, errorBody) - - case strings.EqualFold("TooManyTags", errorCode): - return awsAwsquery_deserializeErrorTooManyTagsException(response, errorBody) - - case strings.EqualFold("TooManyTrustStores", errorCode): - return awsAwsquery_deserializeErrorTooManyTrustStoresException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDeleteListener struct { -} - -func (*awsAwsquery_deserializeOpDeleteListener) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDeleteListener) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDeleteListener(response, &metadata) - } - output := &DeleteListenerOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DeleteListenerResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDeleteListenerOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDeleteListener(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("ListenerNotFound", errorCode): - return awsAwsquery_deserializeErrorListenerNotFoundException(response, errorBody) - - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsquery_deserializeErrorResourceInUseException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDeleteLoadBalancer struct { -} - -func (*awsAwsquery_deserializeOpDeleteLoadBalancer) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDeleteLoadBalancer) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDeleteLoadBalancer(response, &metadata) - } - output := &DeleteLoadBalancerOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DeleteLoadBalancerResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDeleteLoadBalancerOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDeleteLoadBalancer(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - case strings.EqualFold("OperationNotPermitted", errorCode): - return awsAwsquery_deserializeErrorOperationNotPermittedException(response, errorBody) - - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsquery_deserializeErrorResourceInUseException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDeleteRule struct { -} - -func (*awsAwsquery_deserializeOpDeleteRule) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDeleteRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDeleteRule(response, &metadata) - } - output := &DeleteRuleOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DeleteRuleResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDeleteRuleOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDeleteRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("OperationNotPermitted", errorCode): - return awsAwsquery_deserializeErrorOperationNotPermittedException(response, errorBody) - - case strings.EqualFold("RuleNotFound", errorCode): - return awsAwsquery_deserializeErrorRuleNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDeleteSharedTrustStoreAssociation struct { -} - -func (*awsAwsquery_deserializeOpDeleteSharedTrustStoreAssociation) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDeleteSharedTrustStoreAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDeleteSharedTrustStoreAssociation(response, &metadata) - } - output := &DeleteSharedTrustStoreAssociationOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DeleteSharedTrustStoreAssociationResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDeleteSharedTrustStoreAssociationOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDeleteSharedTrustStoreAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("AssociationNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreAssociationNotFoundException(response, errorBody) - - case strings.EqualFold("DeleteAssociationSameAccount", errorCode): - return awsAwsquery_deserializeErrorDeleteAssociationSameAccountException(response, errorBody) - - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDeleteTargetGroup struct { -} - -func (*awsAwsquery_deserializeOpDeleteTargetGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDeleteTargetGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDeleteTargetGroup(response, &metadata) - } - output := &DeleteTargetGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DeleteTargetGroupResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDeleteTargetGroupOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDeleteTargetGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("ResourceInUse", errorCode): - return awsAwsquery_deserializeErrorResourceInUseException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDeleteTrustStore struct { -} - -func (*awsAwsquery_deserializeOpDeleteTrustStore) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDeleteTrustStore) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDeleteTrustStore(response, &metadata) - } - output := &DeleteTrustStoreOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DeleteTrustStoreResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDeleteTrustStoreOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDeleteTrustStore(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("TrustStoreInUse", errorCode): - return awsAwsquery_deserializeErrorTrustStoreInUseException(response, errorBody) - - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDeregisterTargets struct { -} - -func (*awsAwsquery_deserializeOpDeregisterTargets) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDeregisterTargets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDeregisterTargets(response, &metadata) - } - output := &DeregisterTargetsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DeregisterTargetsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDeregisterTargetsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDeregisterTargets(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("InvalidTarget", errorCode): - return awsAwsquery_deserializeErrorInvalidTargetException(response, errorBody) - - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeAccountLimits struct { -} - -func (*awsAwsquery_deserializeOpDescribeAccountLimits) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeAccountLimits) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeAccountLimits(response, &metadata) - } - output := &DescribeAccountLimitsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeAccountLimitsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeAccountLimitsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeAccountLimits(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeCapacityReservation struct { -} - -func (*awsAwsquery_deserializeOpDescribeCapacityReservation) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeCapacityReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeCapacityReservation(response, &metadata) - } - output := &DescribeCapacityReservationOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeCapacityReservationResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeCapacityReservationOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeCapacityReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeListenerAttributes struct { -} - -func (*awsAwsquery_deserializeOpDescribeListenerAttributes) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeListenerAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeListenerAttributes(response, &metadata) - } - output := &DescribeListenerAttributesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeListenerAttributesResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeListenerAttributesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeListenerAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("ListenerNotFound", errorCode): - return awsAwsquery_deserializeErrorListenerNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeListenerCertificates struct { -} - -func (*awsAwsquery_deserializeOpDescribeListenerCertificates) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeListenerCertificates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeListenerCertificates(response, &metadata) - } - output := &DescribeListenerCertificatesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeListenerCertificatesResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeListenerCertificatesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeListenerCertificates(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("ListenerNotFound", errorCode): - return awsAwsquery_deserializeErrorListenerNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeListeners struct { -} - -func (*awsAwsquery_deserializeOpDescribeListeners) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeListeners) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeListeners(response, &metadata) - } - output := &DescribeListenersOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeListenersResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeListenersOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeListeners(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("ListenerNotFound", errorCode): - return awsAwsquery_deserializeErrorListenerNotFoundException(response, errorBody) - - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - case strings.EqualFold("UnsupportedProtocol", errorCode): - return awsAwsquery_deserializeErrorUnsupportedProtocolException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeLoadBalancerAttributes struct { -} - -func (*awsAwsquery_deserializeOpDescribeLoadBalancerAttributes) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeLoadBalancerAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeLoadBalancerAttributes(response, &metadata) - } - output := &DescribeLoadBalancerAttributesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeLoadBalancerAttributesResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeLoadBalancerAttributesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeLoadBalancerAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeLoadBalancers struct { -} - -func (*awsAwsquery_deserializeOpDescribeLoadBalancers) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeLoadBalancers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeLoadBalancers(response, &metadata) - } - output := &DescribeLoadBalancersOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeLoadBalancersResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeLoadBalancersOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeLoadBalancers(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeRules struct { -} - -func (*awsAwsquery_deserializeOpDescribeRules) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeRules(response, &metadata) - } - output := &DescribeRulesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeRulesResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeRulesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("ListenerNotFound", errorCode): - return awsAwsquery_deserializeErrorListenerNotFoundException(response, errorBody) - - case strings.EqualFold("RuleNotFound", errorCode): - return awsAwsquery_deserializeErrorRuleNotFoundException(response, errorBody) - - case strings.EqualFold("UnsupportedProtocol", errorCode): - return awsAwsquery_deserializeErrorUnsupportedProtocolException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeSSLPolicies struct { -} - -func (*awsAwsquery_deserializeOpDescribeSSLPolicies) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeSSLPolicies) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeSSLPolicies(response, &metadata) - } - output := &DescribeSSLPoliciesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeSSLPoliciesResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeSSLPoliciesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeSSLPolicies(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("SSLPolicyNotFound", errorCode): - return awsAwsquery_deserializeErrorSSLPolicyNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeTags struct { -} - -func (*awsAwsquery_deserializeOpDescribeTags) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeTags(response, &metadata) - } - output := &DescribeTagsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeTagsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeTagsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("ListenerNotFound", errorCode): - return awsAwsquery_deserializeErrorListenerNotFoundException(response, errorBody) - - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - case strings.EqualFold("RuleNotFound", errorCode): - return awsAwsquery_deserializeErrorRuleNotFoundException(response, errorBody) - - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeTargetGroupAttributes struct { -} - -func (*awsAwsquery_deserializeOpDescribeTargetGroupAttributes) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeTargetGroupAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeTargetGroupAttributes(response, &metadata) - } - output := &DescribeTargetGroupAttributesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeTargetGroupAttributesResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeTargetGroupAttributesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeTargetGroupAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeTargetGroups struct { -} - -func (*awsAwsquery_deserializeOpDescribeTargetGroups) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeTargetGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeTargetGroups(response, &metadata) - } - output := &DescribeTargetGroupsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeTargetGroupsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeTargetGroupsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeTargetGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeTargetHealth struct { -} - -func (*awsAwsquery_deserializeOpDescribeTargetHealth) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeTargetHealth) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeTargetHealth(response, &metadata) - } - output := &DescribeTargetHealthOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeTargetHealthResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeTargetHealthOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeTargetHealth(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("HealthUnavailable", errorCode): - return awsAwsquery_deserializeErrorHealthUnavailableException(response, errorBody) - - case strings.EqualFold("InvalidTarget", errorCode): - return awsAwsquery_deserializeErrorInvalidTargetException(response, errorBody) - - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeTrustStoreAssociations struct { -} - -func (*awsAwsquery_deserializeOpDescribeTrustStoreAssociations) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeTrustStoreAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeTrustStoreAssociations(response, &metadata) - } - output := &DescribeTrustStoreAssociationsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeTrustStoreAssociationsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeTrustStoreAssociationsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeTrustStoreAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeTrustStoreRevocations struct { -} - -func (*awsAwsquery_deserializeOpDescribeTrustStoreRevocations) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeTrustStoreRevocations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeTrustStoreRevocations(response, &metadata) - } - output := &DescribeTrustStoreRevocationsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeTrustStoreRevocationsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeTrustStoreRevocationsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeTrustStoreRevocations(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("RevocationIdNotFound", errorCode): - return awsAwsquery_deserializeErrorRevocationIdNotFoundException(response, errorBody) - - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpDescribeTrustStores struct { -} - -func (*awsAwsquery_deserializeOpDescribeTrustStores) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpDescribeTrustStores) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorDescribeTrustStores(response, &metadata) - } - output := &DescribeTrustStoresOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("DescribeTrustStoresResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentDescribeTrustStoresOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorDescribeTrustStores(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpGetResourcePolicy struct { -} - -func (*awsAwsquery_deserializeOpGetResourcePolicy) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpGetResourcePolicy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorGetResourcePolicy(response, &metadata) - } - output := &GetResourcePolicyOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("GetResourcePolicyResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentGetResourcePolicyOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorGetResourcePolicy(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("ResourceNotFound", errorCode): - return awsAwsquery_deserializeErrorResourceNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpGetTrustStoreCaCertificatesBundle struct { -} - -func (*awsAwsquery_deserializeOpGetTrustStoreCaCertificatesBundle) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpGetTrustStoreCaCertificatesBundle) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorGetTrustStoreCaCertificatesBundle(response, &metadata) - } - output := &GetTrustStoreCaCertificatesBundleOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("GetTrustStoreCaCertificatesBundleResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentGetTrustStoreCaCertificatesBundleOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorGetTrustStoreCaCertificatesBundle(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpGetTrustStoreRevocationContent struct { -} - -func (*awsAwsquery_deserializeOpGetTrustStoreRevocationContent) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpGetTrustStoreRevocationContent) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorGetTrustStoreRevocationContent(response, &metadata) - } - output := &GetTrustStoreRevocationContentOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("GetTrustStoreRevocationContentResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentGetTrustStoreRevocationContentOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorGetTrustStoreRevocationContent(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("RevocationIdNotFound", errorCode): - return awsAwsquery_deserializeErrorRevocationIdNotFoundException(response, errorBody) - - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpModifyCapacityReservation struct { -} - -func (*awsAwsquery_deserializeOpModifyCapacityReservation) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpModifyCapacityReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyCapacityReservation(response, &metadata) - } - output := &ModifyCapacityReservationOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyCapacityReservationResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyCapacityReservationOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorModifyCapacityReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("CapacityDecreaseRequestLimitExceeded", errorCode): - return awsAwsquery_deserializeErrorCapacityDecreaseRequestsLimitExceededException(response, errorBody) - - case strings.EqualFold("CapacityReservationPending", errorCode): - return awsAwsquery_deserializeErrorCapacityReservationPendingException(response, errorBody) - - case strings.EqualFold("CapacityUnitsLimitExceeded", errorCode): - return awsAwsquery_deserializeErrorCapacityUnitsLimitExceededException(response, errorBody) - - case strings.EqualFold("InsufficientCapacity", errorCode): - return awsAwsquery_deserializeErrorInsufficientCapacityException(response, errorBody) - - case strings.EqualFold("InvalidConfigurationRequest", errorCode): - return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) - - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - case strings.EqualFold("OperationNotPermitted", errorCode): - return awsAwsquery_deserializeErrorOperationNotPermittedException(response, errorBody) - - case strings.EqualFold("PriorRequestNotComplete", errorCode): - return awsAwsquery_deserializeErrorPriorRequestNotCompleteException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpModifyIpPools struct { -} - -func (*awsAwsquery_deserializeOpModifyIpPools) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpModifyIpPools) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyIpPools(response, &metadata) - } - output := &ModifyIpPoolsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyIpPoolsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyIpPoolsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorModifyIpPools(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpModifyListener struct { -} - -func (*awsAwsquery_deserializeOpModifyListener) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpModifyListener) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyListener(response, &metadata) - } - output := &ModifyListenerOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyListenerResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyListenerOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorModifyListener(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("ALPNPolicyNotFound", errorCode): - return awsAwsquery_deserializeErrorALPNPolicyNotSupportedException(response, errorBody) - - case strings.EqualFold("CertificateNotFound", errorCode): - return awsAwsquery_deserializeErrorCertificateNotFoundException(response, errorBody) - - case strings.EqualFold("DuplicateListener", errorCode): - return awsAwsquery_deserializeErrorDuplicateListenerException(response, errorBody) - - case strings.EqualFold("IncompatibleProtocols", errorCode): - return awsAwsquery_deserializeErrorIncompatibleProtocolsException(response, errorBody) - - case strings.EqualFold("InvalidConfigurationRequest", errorCode): - return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) - - case strings.EqualFold("InvalidLoadBalancerAction", errorCode): - return awsAwsquery_deserializeErrorInvalidLoadBalancerActionException(response, errorBody) - - case strings.EqualFold("ListenerNotFound", errorCode): - return awsAwsquery_deserializeErrorListenerNotFoundException(response, errorBody) - - case strings.EqualFold("SSLPolicyNotFound", errorCode): - return awsAwsquery_deserializeErrorSSLPolicyNotFoundException(response, errorBody) - - case strings.EqualFold("TargetGroupAssociationLimit", errorCode): - return awsAwsquery_deserializeErrorTargetGroupAssociationLimitException(response, errorBody) - - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - case strings.EqualFold("TooManyActions", errorCode): - return awsAwsquery_deserializeErrorTooManyActionsException(response, errorBody) - - case strings.EqualFold("TooManyCertificates", errorCode): - return awsAwsquery_deserializeErrorTooManyCertificatesException(response, errorBody) - - case strings.EqualFold("TooManyListeners", errorCode): - return awsAwsquery_deserializeErrorTooManyListenersException(response, errorBody) - - case strings.EqualFold("TooManyRegistrationsForTargetId", errorCode): - return awsAwsquery_deserializeErrorTooManyRegistrationsForTargetIdException(response, errorBody) - - case strings.EqualFold("TooManyTargets", errorCode): - return awsAwsquery_deserializeErrorTooManyTargetsException(response, errorBody) - - case strings.EqualFold("TooManyUniqueTargetGroupsPerLoadBalancer", errorCode): - return awsAwsquery_deserializeErrorTooManyUniqueTargetGroupsPerLoadBalancerException(response, errorBody) - - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - case strings.EqualFold("TrustStoreNotReady", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotReadyException(response, errorBody) - - case strings.EqualFold("UnsupportedProtocol", errorCode): - return awsAwsquery_deserializeErrorUnsupportedProtocolException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpModifyListenerAttributes struct { -} - -func (*awsAwsquery_deserializeOpModifyListenerAttributes) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpModifyListenerAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyListenerAttributes(response, &metadata) - } - output := &ModifyListenerAttributesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyListenerAttributesResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyListenerAttributesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorModifyListenerAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("InvalidConfigurationRequest", errorCode): - return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) - - case strings.EqualFold("ListenerNotFound", errorCode): - return awsAwsquery_deserializeErrorListenerNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpModifyLoadBalancerAttributes struct { -} - -func (*awsAwsquery_deserializeOpModifyLoadBalancerAttributes) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpModifyLoadBalancerAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyLoadBalancerAttributes(response, &metadata) - } - output := &ModifyLoadBalancerAttributesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyLoadBalancerAttributesResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyLoadBalancerAttributesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorModifyLoadBalancerAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("InvalidConfigurationRequest", errorCode): - return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) - - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpModifyRule struct { -} - -func (*awsAwsquery_deserializeOpModifyRule) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpModifyRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyRule(response, &metadata) - } - output := &ModifyRuleOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyRuleResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyRuleOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorModifyRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("IncompatibleProtocols", errorCode): - return awsAwsquery_deserializeErrorIncompatibleProtocolsException(response, errorBody) - - case strings.EqualFold("InvalidLoadBalancerAction", errorCode): - return awsAwsquery_deserializeErrorInvalidLoadBalancerActionException(response, errorBody) - - case strings.EqualFold("OperationNotPermitted", errorCode): - return awsAwsquery_deserializeErrorOperationNotPermittedException(response, errorBody) - - case strings.EqualFold("RuleNotFound", errorCode): - return awsAwsquery_deserializeErrorRuleNotFoundException(response, errorBody) - - case strings.EqualFold("TargetGroupAssociationLimit", errorCode): - return awsAwsquery_deserializeErrorTargetGroupAssociationLimitException(response, errorBody) - - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - case strings.EqualFold("TooManyActions", errorCode): - return awsAwsquery_deserializeErrorTooManyActionsException(response, errorBody) - - case strings.EqualFold("TooManyRegistrationsForTargetId", errorCode): - return awsAwsquery_deserializeErrorTooManyRegistrationsForTargetIdException(response, errorBody) - - case strings.EqualFold("TooManyTargets", errorCode): - return awsAwsquery_deserializeErrorTooManyTargetsException(response, errorBody) - - case strings.EqualFold("TooManyUniqueTargetGroupsPerLoadBalancer", errorCode): - return awsAwsquery_deserializeErrorTooManyUniqueTargetGroupsPerLoadBalancerException(response, errorBody) - - case strings.EqualFold("UnsupportedProtocol", errorCode): - return awsAwsquery_deserializeErrorUnsupportedProtocolException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpModifyTargetGroup struct { -} - -func (*awsAwsquery_deserializeOpModifyTargetGroup) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpModifyTargetGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyTargetGroup(response, &metadata) - } - output := &ModifyTargetGroupOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyTargetGroupResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyTargetGroupOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorModifyTargetGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("InvalidConfigurationRequest", errorCode): - return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) - - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpModifyTargetGroupAttributes struct { -} - -func (*awsAwsquery_deserializeOpModifyTargetGroupAttributes) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpModifyTargetGroupAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyTargetGroupAttributes(response, &metadata) - } - output := &ModifyTargetGroupAttributesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyTargetGroupAttributesResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyTargetGroupAttributesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorModifyTargetGroupAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("InvalidConfigurationRequest", errorCode): - return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) - - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpModifyTrustStore struct { -} - -func (*awsAwsquery_deserializeOpModifyTrustStore) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpModifyTrustStore) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorModifyTrustStore(response, &metadata) - } - output := &ModifyTrustStoreOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("ModifyTrustStoreResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentModifyTrustStoreOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorModifyTrustStore(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("CaCertificatesBundleNotFound", errorCode): - return awsAwsquery_deserializeErrorCaCertificatesBundleNotFoundException(response, errorBody) - - case strings.EqualFold("InvalidCaCertificatesBundle", errorCode): - return awsAwsquery_deserializeErrorInvalidCaCertificatesBundleException(response, errorBody) - - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpRegisterTargets struct { -} - -func (*awsAwsquery_deserializeOpRegisterTargets) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpRegisterTargets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorRegisterTargets(response, &metadata) - } - output := &RegisterTargetsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("RegisterTargetsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentRegisterTargetsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorRegisterTargets(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("InvalidTarget", errorCode): - return awsAwsquery_deserializeErrorInvalidTargetException(response, errorBody) - - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - case strings.EqualFold("TooManyRegistrationsForTargetId", errorCode): - return awsAwsquery_deserializeErrorTooManyRegistrationsForTargetIdException(response, errorBody) - - case strings.EqualFold("TooManyTargets", errorCode): - return awsAwsquery_deserializeErrorTooManyTargetsException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpRemoveListenerCertificates struct { -} - -func (*awsAwsquery_deserializeOpRemoveListenerCertificates) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpRemoveListenerCertificates) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorRemoveListenerCertificates(response, &metadata) - } - output := &RemoveListenerCertificatesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("RemoveListenerCertificatesResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentRemoveListenerCertificatesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorRemoveListenerCertificates(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("ListenerNotFound", errorCode): - return awsAwsquery_deserializeErrorListenerNotFoundException(response, errorBody) - - case strings.EqualFold("OperationNotPermitted", errorCode): - return awsAwsquery_deserializeErrorOperationNotPermittedException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpRemoveTags struct { -} - -func (*awsAwsquery_deserializeOpRemoveTags) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpRemoveTags) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorRemoveTags(response, &metadata) - } - output := &RemoveTagsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("RemoveTagsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentRemoveTagsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorRemoveTags(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("ListenerNotFound", errorCode): - return awsAwsquery_deserializeErrorListenerNotFoundException(response, errorBody) - - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - case strings.EqualFold("RuleNotFound", errorCode): - return awsAwsquery_deserializeErrorRuleNotFoundException(response, errorBody) - - case strings.EqualFold("TargetGroupNotFound", errorCode): - return awsAwsquery_deserializeErrorTargetGroupNotFoundException(response, errorBody) - - case strings.EqualFold("TooManyTags", errorCode): - return awsAwsquery_deserializeErrorTooManyTagsException(response, errorBody) - - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpRemoveTrustStoreRevocations struct { -} - -func (*awsAwsquery_deserializeOpRemoveTrustStoreRevocations) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpRemoveTrustStoreRevocations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorRemoveTrustStoreRevocations(response, &metadata) - } - output := &RemoveTrustStoreRevocationsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("RemoveTrustStoreRevocationsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentRemoveTrustStoreRevocationsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorRemoveTrustStoreRevocations(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("RevocationIdNotFound", errorCode): - return awsAwsquery_deserializeErrorRevocationIdNotFoundException(response, errorBody) - - case strings.EqualFold("TrustStoreNotFound", errorCode): - return awsAwsquery_deserializeErrorTrustStoreNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpSetIpAddressType struct { -} - -func (*awsAwsquery_deserializeOpSetIpAddressType) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpSetIpAddressType) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorSetIpAddressType(response, &metadata) - } - output := &SetIpAddressTypeOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("SetIpAddressTypeResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentSetIpAddressTypeOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorSetIpAddressType(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("InvalidConfigurationRequest", errorCode): - return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) - - case strings.EqualFold("InvalidSubnet", errorCode): - return awsAwsquery_deserializeErrorInvalidSubnetException(response, errorBody) - - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpSetRulePriorities struct { -} - -func (*awsAwsquery_deserializeOpSetRulePriorities) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpSetRulePriorities) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorSetRulePriorities(response, &metadata) - } - output := &SetRulePrioritiesOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("SetRulePrioritiesResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentSetRulePrioritiesOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorSetRulePriorities(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("OperationNotPermitted", errorCode): - return awsAwsquery_deserializeErrorOperationNotPermittedException(response, errorBody) - - case strings.EqualFold("PriorityInUse", errorCode): - return awsAwsquery_deserializeErrorPriorityInUseException(response, errorBody) - - case strings.EqualFold("RuleNotFound", errorCode): - return awsAwsquery_deserializeErrorRuleNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpSetSecurityGroups struct { -} - -func (*awsAwsquery_deserializeOpSetSecurityGroups) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpSetSecurityGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorSetSecurityGroups(response, &metadata) - } - output := &SetSecurityGroupsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("SetSecurityGroupsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentSetSecurityGroupsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorSetSecurityGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("InvalidConfigurationRequest", errorCode): - return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) - - case strings.EqualFold("InvalidSecurityGroup", errorCode): - return awsAwsquery_deserializeErrorInvalidSecurityGroupException(response, errorBody) - - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -type awsAwsquery_deserializeOpSetSubnets struct { -} - -func (*awsAwsquery_deserializeOpSetSubnets) ID() string { - return "OperationDeserializer" -} - -func (m *awsAwsquery_deserializeOpSetSubnets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( - out middleware.DeserializeOutput, metadata middleware.Metadata, err error, -) { - out, metadata, err = next.HandleDeserialize(ctx, in) - - response, ok := out.RawResponse.(*smithyhttp.Response) - if !ok { - if err != nil { - // Transport-level failure with no HTTP response to close. - return out, metadata, err - } - return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} - } - - defer func() { smithyhttp.CloseResponseBody(ctx, response, false, err) }() - - if err != nil { - return out, metadata, err - } - - _, span := tracing.StartSpan(ctx, "OperationDeserializer") - endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") - defer endTimer() - defer span.End() - - if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsAwsquery_deserializeOpErrorSetSubnets(response, &metadata) - } - output := &SetSubnetsOutput{} - out.Result = output - - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(response.Body, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return out, metadata, nil - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("SetSubnetsResult") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeOpDocumentSetSubnetsOutput(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - err = &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - return out, metadata, err - } - - return out, metadata, err -} - -func awsAwsquery_deserializeOpErrorSetSubnets(response *smithyhttp.Response, metadata *middleware.Metadata) error { - var errorBuffer bytes.Buffer - if _, err := io.Copy(&errorBuffer, response.Body); err != nil { - return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} - } - errorBody := bytes.NewReader(errorBuffer.Bytes()) - - errorCode := "UnknownError" - errorMessage := errorCode - - errorComponents, err := awsxml.GetErrorResponseComponents(errorBody, false) - if err != nil { - return err - } - if reqID := errorComponents.RequestID; len(reqID) != 0 { - awsmiddleware.SetRequestIDMetadata(metadata, reqID) - } - if len(errorComponents.Code) != 0 { - errorCode = errorComponents.Code - } - if len(errorComponents.Message) != 0 { - errorMessage = errorComponents.Message - } - errorBody.Seek(0, io.SeekStart) - switch { - case strings.EqualFold("AllocationIdNotFound", errorCode): - return awsAwsquery_deserializeErrorAllocationIdNotFoundException(response, errorBody) - - case strings.EqualFold("AvailabilityZoneNotSupported", errorCode): - return awsAwsquery_deserializeErrorAvailabilityZoneNotSupportedException(response, errorBody) - - case strings.EqualFold("CapacityReservationPending", errorCode): - return awsAwsquery_deserializeErrorCapacityReservationPendingException(response, errorBody) - - case strings.EqualFold("InvalidConfigurationRequest", errorCode): - return awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response, errorBody) - - case strings.EqualFold("InvalidSubnet", errorCode): - return awsAwsquery_deserializeErrorInvalidSubnetException(response, errorBody) - - case strings.EqualFold("LoadBalancerNotFound", errorCode): - return awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response, errorBody) - - case strings.EqualFold("SubnetNotFound", errorCode): - return awsAwsquery_deserializeErrorSubnetNotFoundException(response, errorBody) - - default: - genericError := &smithy.GenericAPIError{ - Code: errorCode, - Message: errorMessage, - } - return genericError - - } -} - -func awsAwsquery_deserializeErrorAllocationIdNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AllocationIdNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentAllocationIdNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorALPNPolicyNotSupportedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ALPNPolicyNotSupportedException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentALPNPolicyNotSupportedException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorAvailabilityZoneNotSupportedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.AvailabilityZoneNotSupportedException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentAvailabilityZoneNotSupportedException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorCaCertificatesBundleNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CaCertificatesBundleNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCaCertificatesBundleNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorCapacityDecreaseRequestsLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CapacityDecreaseRequestsLimitExceededException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCapacityDecreaseRequestsLimitExceededException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorCapacityReservationPendingException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CapacityReservationPendingException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCapacityReservationPendingException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorCapacityUnitsLimitExceededException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CapacityUnitsLimitExceededException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCapacityUnitsLimitExceededException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorCertificateNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.CertificateNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentCertificateNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorDeleteAssociationSameAccountException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DeleteAssociationSameAccountException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDeleteAssociationSameAccountException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorDuplicateListenerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DuplicateListenerException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDuplicateListenerException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorDuplicateLoadBalancerNameException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DuplicateLoadBalancerNameException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDuplicateLoadBalancerNameException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorDuplicateTagKeysException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DuplicateTagKeysException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDuplicateTagKeysException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorDuplicateTargetGroupNameException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DuplicateTargetGroupNameException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDuplicateTargetGroupNameException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorDuplicateTrustStoreNameException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.DuplicateTrustStoreNameException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentDuplicateTrustStoreNameException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorHealthUnavailableException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.HealthUnavailableException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentHealthUnavailableException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorIncompatibleProtocolsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.IncompatibleProtocolsException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentIncompatibleProtocolsException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorInsufficientCapacityException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InsufficientCapacityException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInsufficientCapacityException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorInvalidCaCertificatesBundleException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidCaCertificatesBundleException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidCaCertificatesBundleException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorInvalidConfigurationRequestException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidConfigurationRequestException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidConfigurationRequestException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorInvalidLoadBalancerActionException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidLoadBalancerActionException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidLoadBalancerActionException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorInvalidRevocationContentException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidRevocationContentException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidRevocationContentException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorInvalidSchemeException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidSchemeException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidSchemeException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorInvalidSecurityGroupException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidSecurityGroupException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidSecurityGroupException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorInvalidSubnetException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidSubnetException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidSubnetException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorInvalidTargetException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.InvalidTargetException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentInvalidTargetException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorListenerNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ListenerNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentListenerNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorLoadBalancerNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.LoadBalancerNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentLoadBalancerNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorOperationNotPermittedException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.OperationNotPermittedException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentOperationNotPermittedException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorPriorityInUseException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.PriorityInUseException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentPriorityInUseException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorPriorRequestNotCompleteException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.PriorRequestNotCompleteException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentPriorRequestNotCompleteException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorResourceInUseException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResourceInUseException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentResourceInUseException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorResourceNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.ResourceNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentResourceNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorRevocationContentNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.RevocationContentNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentRevocationContentNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorRevocationIdNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.RevocationIdNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentRevocationIdNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorRuleNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.RuleNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentRuleNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorSSLPolicyNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.SSLPolicyNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentSSLPolicyNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorSubnetNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.SubnetNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentSubnetNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTargetGroupAssociationLimitException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TargetGroupAssociationLimitException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTargetGroupAssociationLimitException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTargetGroupNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TargetGroupNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTargetGroupNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTooManyActionsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyActionsException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTooManyActionsException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTooManyCertificatesException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyCertificatesException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTooManyCertificatesException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTooManyListenersException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyListenersException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTooManyListenersException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTooManyLoadBalancersException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyLoadBalancersException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTooManyLoadBalancersException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTooManyRegistrationsForTargetIdException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyRegistrationsForTargetIdException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTooManyRegistrationsForTargetIdException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTooManyRulesException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyRulesException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTooManyRulesException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTooManyTagsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyTagsException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTooManyTagsException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTooManyTargetGroupsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyTargetGroupsException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTooManyTargetGroupsException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTooManyTargetsException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyTargetsException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTooManyTargetsException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTooManyTrustStoreRevocationEntriesException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyTrustStoreRevocationEntriesException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTooManyTrustStoreRevocationEntriesException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTooManyTrustStoresException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyTrustStoresException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTooManyTrustStoresException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTooManyUniqueTargetGroupsPerLoadBalancerException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TooManyUniqueTargetGroupsPerLoadBalancerException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTooManyUniqueTargetGroupsPerLoadBalancerException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTrustStoreAssociationNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TrustStoreAssociationNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTrustStoreAssociationNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTrustStoreInUseException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TrustStoreInUseException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTrustStoreInUseException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTrustStoreNotFoundException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TrustStoreNotFoundException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTrustStoreNotFoundException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorTrustStoreNotReadyException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.TrustStoreNotReadyException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentTrustStoreNotReadyException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeErrorUnsupportedProtocolException(response *smithyhttp.Response, errorBody *bytes.Reader) error { - output := &types.UnsupportedProtocolException{} - var buff [1024]byte - ringBuffer := smithyio.NewRingBuffer(buff[:]) - body := io.TeeReader(errorBody, ringBuffer) - rootDecoder := xml.NewDecoder(body) - t, err := smithyxml.FetchRootElement(rootDecoder) - if err == io.EOF { - return output - } - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - t, err = decoder.GetElement("Error") - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - decoder = smithyxml.WrapNodeDecoder(decoder.Decoder, t) - err = awsAwsquery_deserializeDocumentUnsupportedProtocolException(&output, decoder) - if err != nil { - var snapshot bytes.Buffer - io.Copy(&snapshot, ringBuffer) - return &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), - } - } - - return output -} - -func awsAwsquery_deserializeDocumentAction(v **types.Action, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Action - if *v == nil { - sv = &types.Action{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("AuthenticateCognitoConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAuthenticateCognitoActionConfig(&sv.AuthenticateCognitoConfig, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("AuthenticateOidcConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAuthenticateOidcActionConfig(&sv.AuthenticateOidcConfig, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("FixedResponseConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentFixedResponseActionConfig(&sv.FixedResponseConfig, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("ForwardConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentForwardActionConfig(&sv.ForwardConfig, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("JwtValidationConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentJwtValidationActionConfig(&sv.JwtValidationConfig, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Order", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Order = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("RedirectConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRedirectActionConfig(&sv.RedirectConfig, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("TargetGroupArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.TargetGroupArn = ptr.String(xtv) - } - - case strings.EqualFold("Type", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Type = types.ActionTypeEnum(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentActions(v *[]types.Action, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Action - if *v == nil { - sv = make([]types.Action, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.Action - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentAction(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentActionsUnwrapped(v *[]types.Action, decoder smithyxml.NodeDecoder) error { - var sv []types.Action - if *v == nil { - sv = make([]types.Action, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Action - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentAction(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentAdministrativeOverride(v **types.AdministrativeOverride, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.AdministrativeOverride - if *v == nil { - sv = &types.AdministrativeOverride{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Description", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Description = ptr.String(xtv) - } - - case strings.EqualFold("Reason", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Reason = types.TargetAdministrativeOverrideReasonEnum(xtv) - } - - case strings.EqualFold("State", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.State = types.TargetAdministrativeOverrideStateEnum(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentAllocationIdNotFoundException(v **types.AllocationIdNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.AllocationIdNotFoundException - if *v == nil { - sv = &types.AllocationIdNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentAlpnPolicyName(v *[]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("member", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentAlpnPolicyNameUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentALPNPolicyNotSupportedException(v **types.ALPNPolicyNotSupportedException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.ALPNPolicyNotSupportedException - if *v == nil { - sv = &types.ALPNPolicyNotSupportedException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentAnomalyDetection(v **types.AnomalyDetection, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.AnomalyDetection - if *v == nil { - sv = &types.AnomalyDetection{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("MitigationInEffect", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MitigationInEffect = types.MitigationInEffectEnum(xtv) - } - - case strings.EqualFold("Result", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Result = types.AnomalyResultEnum(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentAuthenticateCognitoActionAuthenticationRequestExtraParams(v *map[string]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv map[string]string - if *v == nil { - sv = make(map[string]string, 0) - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("entry", t.Name.Local): - entryDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAuthenticateCognitoActionAuthenticationRequestExtraParamsUnwrapped(&sv, entryDecoder); err != nil { - return err - } - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentAuthenticateCognitoActionAuthenticationRequestExtraParamsUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { - var sv map[string]string - if *v == nil { - sv = make(map[string]string, 0) - } else { - sv = *v - } - - var ek string - var ev string - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - sv[ek] = ev - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("key", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - ek = xtv - } - - case strings.EqualFold("value", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - ev = xtv - } - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentAuthenticateCognitoActionConfig(v **types.AuthenticateCognitoActionConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.AuthenticateCognitoActionConfig - if *v == nil { - sv = &types.AuthenticateCognitoActionConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("AuthenticationRequestExtraParams", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAuthenticateCognitoActionAuthenticationRequestExtraParams(&sv.AuthenticationRequestExtraParams, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("OnUnauthenticatedRequest", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.OnUnauthenticatedRequest = types.AuthenticateCognitoActionConditionalBehaviorEnum(xtv) - } - - case strings.EqualFold("Scope", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Scope = ptr.String(xtv) - } - - case strings.EqualFold("SessionCookieName", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.SessionCookieName = ptr.String(xtv) - } - - case strings.EqualFold("SessionTimeout", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.SessionTimeout = ptr.Int64(i64) - } - - case strings.EqualFold("UserPoolArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.UserPoolArn = ptr.String(xtv) - } - - case strings.EqualFold("UserPoolClientId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.UserPoolClientId = ptr.String(xtv) - } - - case strings.EqualFold("UserPoolDomain", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.UserPoolDomain = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentAuthenticateOidcActionAuthenticationRequestExtraParams(v *map[string]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv map[string]string - if *v == nil { - sv = make(map[string]string, 0) - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("entry", t.Name.Local): - entryDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAuthenticateOidcActionAuthenticationRequestExtraParamsUnwrapped(&sv, entryDecoder); err != nil { - return err - } - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentAuthenticateOidcActionAuthenticationRequestExtraParamsUnwrapped(v *map[string]string, decoder smithyxml.NodeDecoder) error { - var sv map[string]string - if *v == nil { - sv = make(map[string]string, 0) - } else { - sv = *v - } - - var ek string - var ev string - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - sv[ek] = ev - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("key", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - ek = xtv - } - - case strings.EqualFold("value", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - ev = xtv - } - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentAuthenticateOidcActionConfig(v **types.AuthenticateOidcActionConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.AuthenticateOidcActionConfig - if *v == nil { - sv = &types.AuthenticateOidcActionConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("AuthenticationRequestExtraParams", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAuthenticateOidcActionAuthenticationRequestExtraParams(&sv.AuthenticationRequestExtraParams, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("AuthorizationEndpoint", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.AuthorizationEndpoint = ptr.String(xtv) - } - - case strings.EqualFold("ClientId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ClientId = ptr.String(xtv) - } - - case strings.EqualFold("ClientSecret", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ClientSecret = ptr.String(xtv) - } - - case strings.EqualFold("Issuer", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Issuer = ptr.String(xtv) - } - - case strings.EqualFold("OnUnauthenticatedRequest", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.OnUnauthenticatedRequest = types.AuthenticateOidcActionConditionalBehaviorEnum(xtv) - } - - case strings.EqualFold("Scope", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Scope = ptr.String(xtv) - } - - case strings.EqualFold("SessionCookieName", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.SessionCookieName = ptr.String(xtv) - } - - case strings.EqualFold("SessionTimeout", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.SessionTimeout = ptr.Int64(i64) - } - - case strings.EqualFold("TokenEndpoint", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.TokenEndpoint = ptr.String(xtv) - } - - case strings.EqualFold("UseExistingClientSecret", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected AuthenticateOidcActionUseExistingClientSecret to be of type *bool, got %T instead", val) - } - sv.UseExistingClientSecret = ptr.Bool(xtv) - } - - case strings.EqualFold("UserInfoEndpoint", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.UserInfoEndpoint = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentAvailabilityZone(v **types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.AvailabilityZone - if *v == nil { - sv = &types.AvailabilityZone{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("LoadBalancerAddresses", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerAddresses(&sv.LoadBalancerAddresses, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("OutpostId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.OutpostId = ptr.String(xtv) - } - - case strings.EqualFold("SourceNatIpv6Prefixes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSourceNatIpv6Prefixes(&sv.SourceNatIpv6Prefixes, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("SubnetId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.SubnetId = ptr.String(xtv) - } - - case strings.EqualFold("ZoneName", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ZoneName = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentAvailabilityZoneNotSupportedException(v **types.AvailabilityZoneNotSupportedException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.AvailabilityZoneNotSupportedException - if *v == nil { - sv = &types.AvailabilityZoneNotSupportedException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentAvailabilityZones(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.AvailabilityZone - if *v == nil { - sv = make([]types.AvailabilityZone, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.AvailabilityZone - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentAvailabilityZonesUnwrapped(v *[]types.AvailabilityZone, decoder smithyxml.NodeDecoder) error { - var sv []types.AvailabilityZone - if *v == nil { - sv = make([]types.AvailabilityZone, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.AvailabilityZone - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentAvailabilityZone(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentCaCertificatesBundleNotFoundException(v **types.CaCertificatesBundleNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CaCertificatesBundleNotFoundException - if *v == nil { - sv = &types.CaCertificatesBundleNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentCapacityDecreaseRequestsLimitExceededException(v **types.CapacityDecreaseRequestsLimitExceededException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CapacityDecreaseRequestsLimitExceededException - if *v == nil { - sv = &types.CapacityDecreaseRequestsLimitExceededException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentCapacityReservationPendingException(v **types.CapacityReservationPendingException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CapacityReservationPendingException - if *v == nil { - sv = &types.CapacityReservationPendingException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentCapacityReservationStatus(v **types.CapacityReservationStatus, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CapacityReservationStatus - if *v == nil { - sv = &types.CapacityReservationStatus{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Code", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Code = types.CapacityReservationStateEnum(xtv) - } - - case strings.EqualFold("Reason", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Reason = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentCapacityUnitsLimitExceededException(v **types.CapacityUnitsLimitExceededException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CapacityUnitsLimitExceededException - if *v == nil { - sv = &types.CapacityUnitsLimitExceededException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentCertificate(v **types.Certificate, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Certificate - if *v == nil { - sv = &types.Certificate{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("CertificateArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CertificateArn = ptr.String(xtv) - } - - case strings.EqualFold("IsDefault", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected Default to be of type *bool, got %T instead", val) - } - sv.IsDefault = ptr.Bool(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentCertificateList(v *[]types.Certificate, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Certificate - if *v == nil { - sv = make([]types.Certificate, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.Certificate - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentCertificate(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentCertificateListUnwrapped(v *[]types.Certificate, decoder smithyxml.NodeDecoder) error { - var sv []types.Certificate - if *v == nil { - sv = make([]types.Certificate, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Certificate - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentCertificate(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentCertificateNotFoundException(v **types.CertificateNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.CertificateNotFoundException - if *v == nil { - sv = &types.CertificateNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentCipher(v **types.Cipher, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Cipher - if *v == nil { - sv = &types.Cipher{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Name", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Name = ptr.String(xtv) - } - - case strings.EqualFold("Priority", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Priority = ptr.Int32(int32(i64)) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentCiphers(v *[]types.Cipher, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Cipher - if *v == nil { - sv = make([]types.Cipher, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.Cipher - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentCipher(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentCiphersUnwrapped(v *[]types.Cipher, decoder smithyxml.NodeDecoder) error { - var sv []types.Cipher - if *v == nil { - sv = make([]types.Cipher, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Cipher - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentCipher(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentDeleteAssociationSameAccountException(v **types.DeleteAssociationSameAccountException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.DeleteAssociationSameAccountException - if *v == nil { - sv = &types.DeleteAssociationSameAccountException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentDescribeTrustStoreRevocation(v **types.DescribeTrustStoreRevocation, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.DescribeTrustStoreRevocation - if *v == nil { - sv = &types.DescribeTrustStoreRevocation{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("NumberOfRevokedEntries", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.NumberOfRevokedEntries = ptr.Int64(i64) - } - - case strings.EqualFold("RevocationId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.RevocationId = ptr.Int64(i64) - } - - case strings.EqualFold("RevocationType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.RevocationType = types.RevocationType(xtv) - } - - case strings.EqualFold("TrustStoreArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.TrustStoreArn = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentDescribeTrustStoreRevocationResponse(v *[]types.DescribeTrustStoreRevocation, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.DescribeTrustStoreRevocation - if *v == nil { - sv = make([]types.DescribeTrustStoreRevocation, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.DescribeTrustStoreRevocation - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentDescribeTrustStoreRevocation(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentDescribeTrustStoreRevocationResponseUnwrapped(v *[]types.DescribeTrustStoreRevocation, decoder smithyxml.NodeDecoder) error { - var sv []types.DescribeTrustStoreRevocation - if *v == nil { - sv = make([]types.DescribeTrustStoreRevocation, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.DescribeTrustStoreRevocation - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentDescribeTrustStoreRevocation(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentDuplicateListenerException(v **types.DuplicateListenerException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.DuplicateListenerException - if *v == nil { - sv = &types.DuplicateListenerException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentDuplicateLoadBalancerNameException(v **types.DuplicateLoadBalancerNameException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.DuplicateLoadBalancerNameException - if *v == nil { - sv = &types.DuplicateLoadBalancerNameException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentDuplicateTagKeysException(v **types.DuplicateTagKeysException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.DuplicateTagKeysException - if *v == nil { - sv = &types.DuplicateTagKeysException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentDuplicateTargetGroupNameException(v **types.DuplicateTargetGroupNameException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.DuplicateTargetGroupNameException - if *v == nil { - sv = &types.DuplicateTargetGroupNameException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentDuplicateTrustStoreNameException(v **types.DuplicateTrustStoreNameException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.DuplicateTrustStoreNameException - if *v == nil { - sv = &types.DuplicateTrustStoreNameException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentFixedResponseActionConfig(v **types.FixedResponseActionConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.FixedResponseActionConfig - if *v == nil { - sv = &types.FixedResponseActionConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("ContentType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ContentType = ptr.String(xtv) - } - - case strings.EqualFold("MessageBody", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.MessageBody = ptr.String(xtv) - } - - case strings.EqualFold("StatusCode", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.StatusCode = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentForwardActionConfig(v **types.ForwardActionConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.ForwardActionConfig - if *v == nil { - sv = &types.ForwardActionConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("TargetGroups", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetGroupList(&sv.TargetGroups, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("TargetGroupStickinessConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetGroupStickinessConfig(&sv.TargetGroupStickinessConfig, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentHealthUnavailableException(v **types.HealthUnavailableException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.HealthUnavailableException - if *v == nil { - sv = &types.HealthUnavailableException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentHostHeaderConditionConfig(v **types.HostHeaderConditionConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.HostHeaderConditionConfig - if *v == nil { - sv = &types.HostHeaderConditionConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("RegexValues", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListOfString(&sv.RegexValues, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Values", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListOfString(&sv.Values, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentHostHeaderRewriteConfig(v **types.HostHeaderRewriteConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.HostHeaderRewriteConfig - if *v == nil { - sv = &types.HostHeaderRewriteConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Rewrites", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRewriteConfigList(&sv.Rewrites, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentHttpHeaderConditionConfig(v **types.HttpHeaderConditionConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.HttpHeaderConditionConfig - if *v == nil { - sv = &types.HttpHeaderConditionConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("HttpHeaderName", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.HttpHeaderName = ptr.String(xtv) - } - - case strings.EqualFold("RegexValues", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListOfString(&sv.RegexValues, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Values", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListOfString(&sv.Values, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentHttpRequestMethodConditionConfig(v **types.HttpRequestMethodConditionConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.HttpRequestMethodConditionConfig - if *v == nil { - sv = &types.HttpRequestMethodConditionConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Values", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListOfString(&sv.Values, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentIncompatibleProtocolsException(v **types.IncompatibleProtocolsException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.IncompatibleProtocolsException - if *v == nil { - sv = &types.IncompatibleProtocolsException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentInsufficientCapacityException(v **types.InsufficientCapacityException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InsufficientCapacityException - if *v == nil { - sv = &types.InsufficientCapacityException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentInvalidCaCertificatesBundleException(v **types.InvalidCaCertificatesBundleException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InvalidCaCertificatesBundleException - if *v == nil { - sv = &types.InvalidCaCertificatesBundleException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentInvalidConfigurationRequestException(v **types.InvalidConfigurationRequestException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InvalidConfigurationRequestException - if *v == nil { - sv = &types.InvalidConfigurationRequestException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentInvalidLoadBalancerActionException(v **types.InvalidLoadBalancerActionException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InvalidLoadBalancerActionException - if *v == nil { - sv = &types.InvalidLoadBalancerActionException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentInvalidRevocationContentException(v **types.InvalidRevocationContentException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InvalidRevocationContentException - if *v == nil { - sv = &types.InvalidRevocationContentException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentInvalidSchemeException(v **types.InvalidSchemeException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InvalidSchemeException - if *v == nil { - sv = &types.InvalidSchemeException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentInvalidSecurityGroupException(v **types.InvalidSecurityGroupException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InvalidSecurityGroupException - if *v == nil { - sv = &types.InvalidSecurityGroupException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentInvalidSubnetException(v **types.InvalidSubnetException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InvalidSubnetException - if *v == nil { - sv = &types.InvalidSubnetException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentInvalidTargetException(v **types.InvalidTargetException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.InvalidTargetException - if *v == nil { - sv = &types.InvalidTargetException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentIpamPools(v **types.IpamPools, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.IpamPools - if *v == nil { - sv = &types.IpamPools{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Ipv4IpamPoolId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Ipv4IpamPoolId = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentJwtValidationActionAdditionalClaim(v **types.JwtValidationActionAdditionalClaim, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.JwtValidationActionAdditionalClaim - if *v == nil { - sv = &types.JwtValidationActionAdditionalClaim{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Format", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Format = types.JwtValidationActionAdditionalClaimFormatEnum(xtv) - } - - case strings.EqualFold("Name", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Name = ptr.String(xtv) - } - - case strings.EqualFold("Values", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentJwtValidationActionAdditionalClaimValues(&sv.Values, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentJwtValidationActionAdditionalClaims(v *[]types.JwtValidationActionAdditionalClaim, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.JwtValidationActionAdditionalClaim - if *v == nil { - sv = make([]types.JwtValidationActionAdditionalClaim, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.JwtValidationActionAdditionalClaim - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentJwtValidationActionAdditionalClaim(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentJwtValidationActionAdditionalClaimsUnwrapped(v *[]types.JwtValidationActionAdditionalClaim, decoder smithyxml.NodeDecoder) error { - var sv []types.JwtValidationActionAdditionalClaim - if *v == nil { - sv = make([]types.JwtValidationActionAdditionalClaim, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.JwtValidationActionAdditionalClaim - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentJwtValidationActionAdditionalClaim(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentJwtValidationActionAdditionalClaimValues(v *[]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("member", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentJwtValidationActionAdditionalClaimValuesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentJwtValidationActionConfig(v **types.JwtValidationActionConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.JwtValidationActionConfig - if *v == nil { - sv = &types.JwtValidationActionConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("AdditionalClaims", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentJwtValidationActionAdditionalClaims(&sv.AdditionalClaims, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Issuer", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Issuer = ptr.String(xtv) - } - - case strings.EqualFold("JwksEndpoint", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.JwksEndpoint = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentLimit(v **types.Limit, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Limit - if *v == nil { - sv = &types.Limit{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Max", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Max = ptr.String(xtv) - } - - case strings.EqualFold("Name", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Name = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentLimits(v *[]types.Limit, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Limit - if *v == nil { - sv = make([]types.Limit, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.Limit - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentLimit(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentLimitsUnwrapped(v *[]types.Limit, decoder smithyxml.NodeDecoder) error { - var sv []types.Limit - if *v == nil { - sv = make([]types.Limit, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Limit - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentLimit(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentListener(v **types.Listener, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Listener - if *v == nil { - sv = &types.Listener{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("AlpnPolicy", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAlpnPolicyName(&sv.AlpnPolicy, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Certificates", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCertificateList(&sv.Certificates, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("DefaultActions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentActions(&sv.DefaultActions, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("ListenerArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ListenerArn = ptr.String(xtv) - } - - case strings.EqualFold("LoadBalancerArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.LoadBalancerArn = ptr.String(xtv) - } - - case strings.EqualFold("MutualAuthentication", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMutualAuthenticationAttributes(&sv.MutualAuthentication, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Port", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Port = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("Protocol", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Protocol = types.ProtocolEnum(xtv) - } - - case strings.EqualFold("SslPolicy", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.SslPolicy = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentListenerAttribute(v **types.ListenerAttribute, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.ListenerAttribute - if *v == nil { - sv = &types.ListenerAttribute{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Key", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Key = ptr.String(xtv) - } - - case strings.EqualFold("Value", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Value = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentListenerAttributes(v *[]types.ListenerAttribute, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.ListenerAttribute - if *v == nil { - sv = make([]types.ListenerAttribute, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.ListenerAttribute - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentListenerAttribute(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentListenerAttributesUnwrapped(v *[]types.ListenerAttribute, decoder smithyxml.NodeDecoder) error { - var sv []types.ListenerAttribute - if *v == nil { - sv = make([]types.ListenerAttribute, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.ListenerAttribute - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentListenerAttribute(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentListenerNotFoundException(v **types.ListenerNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.ListenerNotFoundException - if *v == nil { - sv = &types.ListenerNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentListeners(v *[]types.Listener, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Listener - if *v == nil { - sv = make([]types.Listener, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.Listener - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentListener(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentListenersUnwrapped(v *[]types.Listener, decoder smithyxml.NodeDecoder) error { - var sv []types.Listener - if *v == nil { - sv = make([]types.Listener, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Listener - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentListener(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentListOfString(v *[]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("member", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentListOfStringUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentLoadBalancer(v **types.LoadBalancer, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.LoadBalancer - if *v == nil { - sv = &types.LoadBalancer{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("AvailabilityZones", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZones(&sv.AvailabilityZones, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("CanonicalHostedZoneId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CanonicalHostedZoneId = ptr.String(xtv) - } - - case strings.EqualFold("CreatedTime", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.CreatedTime = ptr.Time(t) - } - - case strings.EqualFold("CustomerOwnedIpv4Pool", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.CustomerOwnedIpv4Pool = ptr.String(xtv) - } - - case strings.EqualFold("DNSName", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.DNSName = ptr.String(xtv) - } - - case strings.EqualFold("EnablePrefixForIpv6SourceNat", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.EnablePrefixForIpv6SourceNat = types.EnablePrefixForIpv6SourceNatEnum(xtv) - } - - case strings.EqualFold("EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = ptr.String(xtv) - } - - case strings.EqualFold("IpAddressType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.IpAddressType = types.IpAddressType(xtv) - } - - case strings.EqualFold("IpamPools", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentIpamPools(&sv.IpamPools, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("LoadBalancerArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.LoadBalancerArn = ptr.String(xtv) - } - - case strings.EqualFold("LoadBalancerName", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.LoadBalancerName = ptr.String(xtv) - } - - case strings.EqualFold("Scheme", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Scheme = types.LoadBalancerSchemeEnum(xtv) - } - - case strings.EqualFold("SecurityGroups", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSecurityGroups(&sv.SecurityGroups, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("State", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerState(&sv.State, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Type", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Type = types.LoadBalancerTypeEnum(xtv) - } - - case strings.EqualFold("VpcId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.VpcId = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentLoadBalancerAddress(v **types.LoadBalancerAddress, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.LoadBalancerAddress - if *v == nil { - sv = &types.LoadBalancerAddress{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("AllocationId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.AllocationId = ptr.String(xtv) - } - - case strings.EqualFold("IpAddress", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.IpAddress = ptr.String(xtv) - } - - case strings.EqualFold("IPv6Address", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.IPv6Address = ptr.String(xtv) - } - - case strings.EqualFold("PrivateIPv4Address", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.PrivateIPv4Address = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentLoadBalancerAddresses(v *[]types.LoadBalancerAddress, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.LoadBalancerAddress - if *v == nil { - sv = make([]types.LoadBalancerAddress, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.LoadBalancerAddress - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentLoadBalancerAddress(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentLoadBalancerAddressesUnwrapped(v *[]types.LoadBalancerAddress, decoder smithyxml.NodeDecoder) error { - var sv []types.LoadBalancerAddress - if *v == nil { - sv = make([]types.LoadBalancerAddress, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.LoadBalancerAddress - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentLoadBalancerAddress(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentLoadBalancerArns(v *[]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("member", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentLoadBalancerArnsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentLoadBalancerAttribute(v **types.LoadBalancerAttribute, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.LoadBalancerAttribute - if *v == nil { - sv = &types.LoadBalancerAttribute{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Key", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Key = ptr.String(xtv) - } - - case strings.EqualFold("Value", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Value = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentLoadBalancerAttributes(v *[]types.LoadBalancerAttribute, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.LoadBalancerAttribute - if *v == nil { - sv = make([]types.LoadBalancerAttribute, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.LoadBalancerAttribute - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentLoadBalancerAttribute(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentLoadBalancerAttributesUnwrapped(v *[]types.LoadBalancerAttribute, decoder smithyxml.NodeDecoder) error { - var sv []types.LoadBalancerAttribute - if *v == nil { - sv = make([]types.LoadBalancerAttribute, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.LoadBalancerAttribute - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentLoadBalancerAttribute(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentLoadBalancerNotFoundException(v **types.LoadBalancerNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.LoadBalancerNotFoundException - if *v == nil { - sv = &types.LoadBalancerNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentLoadBalancers(v *[]types.LoadBalancer, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.LoadBalancer - if *v == nil { - sv = make([]types.LoadBalancer, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.LoadBalancer - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentLoadBalancer(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentLoadBalancersUnwrapped(v *[]types.LoadBalancer, decoder smithyxml.NodeDecoder) error { - var sv []types.LoadBalancer - if *v == nil { - sv = make([]types.LoadBalancer, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.LoadBalancer - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentLoadBalancer(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentLoadBalancerState(v **types.LoadBalancerState, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.LoadBalancerState - if *v == nil { - sv = &types.LoadBalancerState{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Code", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Code = types.LoadBalancerStateEnum(xtv) - } - - case strings.EqualFold("Reason", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Reason = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentMatcher(v **types.Matcher, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Matcher - if *v == nil { - sv = &types.Matcher{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("GrpcCode", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.GrpcCode = ptr.String(xtv) - } - - case strings.EqualFold("HttpCode", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.HttpCode = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentMinimumLoadBalancerCapacity(v **types.MinimumLoadBalancerCapacity, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.MinimumLoadBalancerCapacity - if *v == nil { - sv = &types.MinimumLoadBalancerCapacity{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("CapacityUnits", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.CapacityUnits = ptr.Int32(int32(i64)) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentMutualAuthenticationAttributes(v **types.MutualAuthenticationAttributes, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.MutualAuthenticationAttributes - if *v == nil { - sv = &types.MutualAuthenticationAttributes{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("AdvertiseTrustStoreCaNames", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.AdvertiseTrustStoreCaNames = types.AdvertiseTrustStoreCaNamesEnum(xtv) - } - - case strings.EqualFold("IgnoreClientCertificateExpiry", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected IgnoreClientCertificateExpiry to be of type *bool, got %T instead", val) - } - sv.IgnoreClientCertificateExpiry = ptr.Bool(xtv) - } - - case strings.EqualFold("Mode", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Mode = ptr.String(xtv) - } - - case strings.EqualFold("TrustStoreArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.TrustStoreArn = ptr.String(xtv) - } - - case strings.EqualFold("TrustStoreAssociationStatus", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.TrustStoreAssociationStatus = types.TrustStoreAssociationStatusEnum(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentOperationNotPermittedException(v **types.OperationNotPermittedException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.OperationNotPermittedException - if *v == nil { - sv = &types.OperationNotPermittedException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentPathPatternConditionConfig(v **types.PathPatternConditionConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.PathPatternConditionConfig - if *v == nil { - sv = &types.PathPatternConditionConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("RegexValues", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListOfString(&sv.RegexValues, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Values", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListOfString(&sv.Values, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentPriorityInUseException(v **types.PriorityInUseException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.PriorityInUseException - if *v == nil { - sv = &types.PriorityInUseException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentPriorRequestNotCompleteException(v **types.PriorRequestNotCompleteException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.PriorRequestNotCompleteException - if *v == nil { - sv = &types.PriorRequestNotCompleteException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentQueryStringConditionConfig(v **types.QueryStringConditionConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.QueryStringConditionConfig - if *v == nil { - sv = &types.QueryStringConditionConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Values", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentQueryStringKeyValuePairList(&sv.Values, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentQueryStringKeyValuePair(v **types.QueryStringKeyValuePair, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.QueryStringKeyValuePair - if *v == nil { - sv = &types.QueryStringKeyValuePair{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Key", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Key = ptr.String(xtv) - } - - case strings.EqualFold("Value", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Value = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentQueryStringKeyValuePairList(v *[]types.QueryStringKeyValuePair, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.QueryStringKeyValuePair - if *v == nil { - sv = make([]types.QueryStringKeyValuePair, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.QueryStringKeyValuePair - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentQueryStringKeyValuePair(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentQueryStringKeyValuePairListUnwrapped(v *[]types.QueryStringKeyValuePair, decoder smithyxml.NodeDecoder) error { - var sv []types.QueryStringKeyValuePair - if *v == nil { - sv = make([]types.QueryStringKeyValuePair, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.QueryStringKeyValuePair - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentQueryStringKeyValuePair(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentRedirectActionConfig(v **types.RedirectActionConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.RedirectActionConfig - if *v == nil { - sv = &types.RedirectActionConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Host", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Host = ptr.String(xtv) - } - - case strings.EqualFold("Path", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Path = ptr.String(xtv) - } - - case strings.EqualFold("Port", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Port = ptr.String(xtv) - } - - case strings.EqualFold("Protocol", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Protocol = ptr.String(xtv) - } - - case strings.EqualFold("Query", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Query = ptr.String(xtv) - } - - case strings.EqualFold("StatusCode", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.StatusCode = types.RedirectActionStatusCodeEnum(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentResourceInUseException(v **types.ResourceInUseException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.ResourceInUseException - if *v == nil { - sv = &types.ResourceInUseException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentResourceNotFoundException(v **types.ResourceNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.ResourceNotFoundException - if *v == nil { - sv = &types.ResourceNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentRevocationContentNotFoundException(v **types.RevocationContentNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.RevocationContentNotFoundException - if *v == nil { - sv = &types.RevocationContentNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentRevocationIdNotFoundException(v **types.RevocationIdNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.RevocationIdNotFoundException - if *v == nil { - sv = &types.RevocationIdNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentRewriteConfig(v **types.RewriteConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.RewriteConfig - if *v == nil { - sv = &types.RewriteConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Regex", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Regex = ptr.String(xtv) - } - - case strings.EqualFold("Replace", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Replace = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentRewriteConfigList(v *[]types.RewriteConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.RewriteConfig - if *v == nil { - sv = make([]types.RewriteConfig, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.RewriteConfig - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentRewriteConfig(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentRewriteConfigListUnwrapped(v *[]types.RewriteConfig, decoder smithyxml.NodeDecoder) error { - var sv []types.RewriteConfig - if *v == nil { - sv = make([]types.RewriteConfig, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.RewriteConfig - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentRewriteConfig(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentRule(v **types.Rule, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Rule - if *v == nil { - sv = &types.Rule{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Actions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentActions(&sv.Actions, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Conditions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRuleConditionList(&sv.Conditions, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("IsDefault", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected IsDefault to be of type *bool, got %T instead", val) - } - sv.IsDefault = ptr.Bool(xtv) - } - - case strings.EqualFold("Priority", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Priority = ptr.String(xtv) - } - - case strings.EqualFold("RuleArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.RuleArn = ptr.String(xtv) - } - - case strings.EqualFold("Transforms", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRuleTransformList(&sv.Transforms, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentRuleCondition(v **types.RuleCondition, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.RuleCondition - if *v == nil { - sv = &types.RuleCondition{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Field", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Field = ptr.String(xtv) - } - - case strings.EqualFold("HostHeaderConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentHostHeaderConditionConfig(&sv.HostHeaderConfig, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("HttpHeaderConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentHttpHeaderConditionConfig(&sv.HttpHeaderConfig, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("HttpRequestMethodConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentHttpRequestMethodConditionConfig(&sv.HttpRequestMethodConfig, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("PathPatternConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentPathPatternConditionConfig(&sv.PathPatternConfig, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("QueryStringConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentQueryStringConditionConfig(&sv.QueryStringConfig, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("RegexValues", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListOfString(&sv.RegexValues, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("SourceIpConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSourceIpConditionConfig(&sv.SourceIpConfig, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Values", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListOfString(&sv.Values, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentRuleConditionList(v *[]types.RuleCondition, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.RuleCondition - if *v == nil { - sv = make([]types.RuleCondition, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.RuleCondition - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentRuleCondition(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentRuleConditionListUnwrapped(v *[]types.RuleCondition, decoder smithyxml.NodeDecoder) error { - var sv []types.RuleCondition - if *v == nil { - sv = make([]types.RuleCondition, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.RuleCondition - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentRuleCondition(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentRuleNotFoundException(v **types.RuleNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.RuleNotFoundException - if *v == nil { - sv = &types.RuleNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentRules(v *[]types.Rule, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Rule - if *v == nil { - sv = make([]types.Rule, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.Rule - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentRule(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentRulesUnwrapped(v *[]types.Rule, decoder smithyxml.NodeDecoder) error { - var sv []types.Rule - if *v == nil { - sv = make([]types.Rule, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Rule - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentRule(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentRuleTransform(v **types.RuleTransform, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.RuleTransform - if *v == nil { - sv = &types.RuleTransform{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("HostHeaderRewriteConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentHostHeaderRewriteConfig(&sv.HostHeaderRewriteConfig, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Type", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Type = types.TransformTypeEnum(xtv) - } - - case strings.EqualFold("UrlRewriteConfig", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentUrlRewriteConfig(&sv.UrlRewriteConfig, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentRuleTransformList(v *[]types.RuleTransform, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.RuleTransform - if *v == nil { - sv = make([]types.RuleTransform, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.RuleTransform - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentRuleTransform(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentRuleTransformListUnwrapped(v *[]types.RuleTransform, decoder smithyxml.NodeDecoder) error { - var sv []types.RuleTransform - if *v == nil { - sv = make([]types.RuleTransform, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.RuleTransform - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentRuleTransform(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentSecurityGroups(v *[]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("member", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentSecurityGroupsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentSourceIpConditionConfig(v **types.SourceIpConditionConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.SourceIpConditionConfig - if *v == nil { - sv = &types.SourceIpConditionConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("IpAddressType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.IpAddressType = types.SourceIpAddressTypeEnum(xtv) - } - - case strings.EqualFold("Values", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListOfString(&sv.Values, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentSourceNatIpv6Prefixes(v *[]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("member", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentSourceNatIpv6PrefixesUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentSslPolicies(v *[]types.SslPolicy, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.SslPolicy - if *v == nil { - sv = make([]types.SslPolicy, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.SslPolicy - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentSslPolicy(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentSslPoliciesUnwrapped(v *[]types.SslPolicy, decoder smithyxml.NodeDecoder) error { - var sv []types.SslPolicy - if *v == nil { - sv = make([]types.SslPolicy, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.SslPolicy - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentSslPolicy(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentSslPolicy(v **types.SslPolicy, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.SslPolicy - if *v == nil { - sv = &types.SslPolicy{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Ciphers", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCiphers(&sv.Ciphers, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Name", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Name = ptr.String(xtv) - } - - case strings.EqualFold("SslProtocols", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSslProtocols(&sv.SslProtocols, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("SupportedLoadBalancerTypes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListOfString(&sv.SupportedLoadBalancerTypes, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentSSLPolicyNotFoundException(v **types.SSLPolicyNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.SSLPolicyNotFoundException - if *v == nil { - sv = &types.SSLPolicyNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentSslProtocols(v *[]string, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - memberDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - decoder = memberDecoder - switch { - case strings.EqualFold("member", t.Name.Local): - var col string - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - col = xtv - } - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentSslProtocolsUnwrapped(v *[]string, decoder smithyxml.NodeDecoder) error { - var sv []string - if *v == nil { - sv = make([]string, 0) - } else { - sv = *v - } - - switch { - default: - var mv string - t := decoder.StartEl - _ = t - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - mv = xtv - } - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentSubnetNotFoundException(v **types.SubnetNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.SubnetNotFoundException - if *v == nil { - sv = &types.SubnetNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTag(v **types.Tag, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.Tag - if *v == nil { - sv = &types.Tag{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Key", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Key = ptr.String(xtv) - } - - case strings.EqualFold("Value", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Value = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTagDescription(v **types.TagDescription, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TagDescription - if *v == nil { - sv = &types.TagDescription{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("ResourceArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ResourceArn = ptr.String(xtv) - } - - case strings.EqualFold("Tags", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTagDescriptions(v *[]types.TagDescription, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.TagDescription - if *v == nil { - sv = make([]types.TagDescription, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.TagDescription - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentTagDescription(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTagDescriptionsUnwrapped(v *[]types.TagDescription, decoder smithyxml.NodeDecoder) error { - var sv []types.TagDescription - if *v == nil { - sv = make([]types.TagDescription, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.TagDescription - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentTagDescription(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentTagList(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.Tag - if *v == nil { - sv = make([]types.Tag, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.Tag - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTagListUnwrapped(v *[]types.Tag, decoder smithyxml.NodeDecoder) error { - var sv []types.Tag - if *v == nil { - sv = make([]types.Tag, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.Tag - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentTag(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentTargetDescription(v **types.TargetDescription, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TargetDescription - if *v == nil { - sv = &types.TargetDescription{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("AvailabilityZone", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) - } - - case strings.EqualFold("Id", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Id = ptr.String(xtv) - } - - case strings.EqualFold("Port", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Port = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("QuicServerId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.QuicServerId = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTargetGroup(v **types.TargetGroup, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TargetGroup - if *v == nil { - sv = &types.TargetGroup{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("HealthCheckEnabled", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected HealthCheckEnabled to be of type *bool, got %T instead", val) - } - sv.HealthCheckEnabled = ptr.Bool(xtv) - } - - case strings.EqualFold("HealthCheckIntervalSeconds", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.HealthCheckIntervalSeconds = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("HealthCheckPath", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.HealthCheckPath = ptr.String(xtv) - } - - case strings.EqualFold("HealthCheckPort", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.HealthCheckPort = ptr.String(xtv) - } - - case strings.EqualFold("HealthCheckProtocol", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.HealthCheckProtocol = types.ProtocolEnum(xtv) - } - - case strings.EqualFold("HealthCheckTimeoutSeconds", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.HealthCheckTimeoutSeconds = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("HealthyThresholdCount", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.HealthyThresholdCount = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("IpAddressType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.IpAddressType = types.TargetGroupIpAddressTypeEnum(xtv) - } - - case strings.EqualFold("LoadBalancerArns", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerArns(&sv.LoadBalancerArns, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Matcher", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMatcher(&sv.Matcher, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("Port", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Port = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("Protocol", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Protocol = types.ProtocolEnum(xtv) - } - - case strings.EqualFold("ProtocolVersion", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ProtocolVersion = ptr.String(xtv) - } - - case strings.EqualFold("TargetControlPort", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.TargetControlPort = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("TargetGroupArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.TargetGroupArn = ptr.String(xtv) - } - - case strings.EqualFold("TargetGroupName", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.TargetGroupName = ptr.String(xtv) - } - - case strings.EqualFold("TargetType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.TargetType = types.TargetTypeEnum(xtv) - } - - case strings.EqualFold("UnhealthyThresholdCount", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.UnhealthyThresholdCount = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("VpcId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.VpcId = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTargetGroupAssociationLimitException(v **types.TargetGroupAssociationLimitException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TargetGroupAssociationLimitException - if *v == nil { - sv = &types.TargetGroupAssociationLimitException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTargetGroupAttribute(v **types.TargetGroupAttribute, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TargetGroupAttribute - if *v == nil { - sv = &types.TargetGroupAttribute{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Key", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Key = ptr.String(xtv) - } - - case strings.EqualFold("Value", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Value = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTargetGroupAttributes(v *[]types.TargetGroupAttribute, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.TargetGroupAttribute - if *v == nil { - sv = make([]types.TargetGroupAttribute, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.TargetGroupAttribute - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentTargetGroupAttribute(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTargetGroupAttributesUnwrapped(v *[]types.TargetGroupAttribute, decoder smithyxml.NodeDecoder) error { - var sv []types.TargetGroupAttribute - if *v == nil { - sv = make([]types.TargetGroupAttribute, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.TargetGroupAttribute - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentTargetGroupAttribute(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentTargetGroupList(v *[]types.TargetGroupTuple, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.TargetGroupTuple - if *v == nil { - sv = make([]types.TargetGroupTuple, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.TargetGroupTuple - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentTargetGroupTuple(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTargetGroupListUnwrapped(v *[]types.TargetGroupTuple, decoder smithyxml.NodeDecoder) error { - var sv []types.TargetGroupTuple - if *v == nil { - sv = make([]types.TargetGroupTuple, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.TargetGroupTuple - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentTargetGroupTuple(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentTargetGroupNotFoundException(v **types.TargetGroupNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TargetGroupNotFoundException - if *v == nil { - sv = &types.TargetGroupNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTargetGroups(v *[]types.TargetGroup, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.TargetGroup - if *v == nil { - sv = make([]types.TargetGroup, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.TargetGroup - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentTargetGroup(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTargetGroupsUnwrapped(v *[]types.TargetGroup, decoder smithyxml.NodeDecoder) error { - var sv []types.TargetGroup - if *v == nil { - sv = make([]types.TargetGroup, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.TargetGroup - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentTargetGroup(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentTargetGroupStickinessConfig(v **types.TargetGroupStickinessConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TargetGroupStickinessConfig - if *v == nil { - sv = &types.TargetGroupStickinessConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("DurationSeconds", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.DurationSeconds = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("Enabled", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv, err := strconv.ParseBool(string(val)) - if err != nil { - return fmt.Errorf("expected TargetGroupStickinessEnabled to be of type *bool, got %T instead", val) - } - sv.Enabled = ptr.Bool(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTargetGroupTuple(v **types.TargetGroupTuple, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TargetGroupTuple - if *v == nil { - sv = &types.TargetGroupTuple{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("TargetGroupArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.TargetGroupArn = ptr.String(xtv) - } - - case strings.EqualFold("Weight", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.Weight = ptr.Int32(int32(i64)) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTargetHealth(v **types.TargetHealth, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TargetHealth - if *v == nil { - sv = &types.TargetHealth{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Description", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Description = ptr.String(xtv) - } - - case strings.EqualFold("Reason", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Reason = types.TargetHealthReasonEnum(xtv) - } - - case strings.EqualFold("State", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.State = types.TargetHealthStateEnum(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTargetHealthDescription(v **types.TargetHealthDescription, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TargetHealthDescription - if *v == nil { - sv = &types.TargetHealthDescription{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("AdministrativeOverride", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAdministrativeOverride(&sv.AdministrativeOverride, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("AnomalyDetection", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAnomalyDetection(&sv.AnomalyDetection, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("HealthCheckPort", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.HealthCheckPort = ptr.String(xtv) - } - - case strings.EqualFold("Target", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetDescription(&sv.Target, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("TargetHealth", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetHealth(&sv.TargetHealth, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTargetHealthDescriptions(v *[]types.TargetHealthDescription, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.TargetHealthDescription - if *v == nil { - sv = make([]types.TargetHealthDescription, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.TargetHealthDescription - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentTargetHealthDescription(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTargetHealthDescriptionsUnwrapped(v *[]types.TargetHealthDescription, decoder smithyxml.NodeDecoder) error { - var sv []types.TargetHealthDescription - if *v == nil { - sv = make([]types.TargetHealthDescription, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.TargetHealthDescription - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentTargetHealthDescription(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentTooManyActionsException(v **types.TooManyActionsException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TooManyActionsException - if *v == nil { - sv = &types.TooManyActionsException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTooManyCertificatesException(v **types.TooManyCertificatesException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TooManyCertificatesException - if *v == nil { - sv = &types.TooManyCertificatesException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTooManyListenersException(v **types.TooManyListenersException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TooManyListenersException - if *v == nil { - sv = &types.TooManyListenersException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTooManyLoadBalancersException(v **types.TooManyLoadBalancersException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TooManyLoadBalancersException - if *v == nil { - sv = &types.TooManyLoadBalancersException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTooManyRegistrationsForTargetIdException(v **types.TooManyRegistrationsForTargetIdException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TooManyRegistrationsForTargetIdException - if *v == nil { - sv = &types.TooManyRegistrationsForTargetIdException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTooManyRulesException(v **types.TooManyRulesException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TooManyRulesException - if *v == nil { - sv = &types.TooManyRulesException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTooManyTagsException(v **types.TooManyTagsException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TooManyTagsException - if *v == nil { - sv = &types.TooManyTagsException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTooManyTargetGroupsException(v **types.TooManyTargetGroupsException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TooManyTargetGroupsException - if *v == nil { - sv = &types.TooManyTargetGroupsException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTooManyTargetsException(v **types.TooManyTargetsException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TooManyTargetsException - if *v == nil { - sv = &types.TooManyTargetsException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTooManyTrustStoreRevocationEntriesException(v **types.TooManyTrustStoreRevocationEntriesException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TooManyTrustStoreRevocationEntriesException - if *v == nil { - sv = &types.TooManyTrustStoreRevocationEntriesException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTooManyTrustStoresException(v **types.TooManyTrustStoresException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TooManyTrustStoresException - if *v == nil { - sv = &types.TooManyTrustStoresException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTooManyUniqueTargetGroupsPerLoadBalancerException(v **types.TooManyUniqueTargetGroupsPerLoadBalancerException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TooManyUniqueTargetGroupsPerLoadBalancerException - if *v == nil { - sv = &types.TooManyUniqueTargetGroupsPerLoadBalancerException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTrustStore(v **types.TrustStore, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TrustStore - if *v == nil { - sv = &types.TrustStore{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Name", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Name = ptr.String(xtv) - } - - case strings.EqualFold("NumberOfCaCertificates", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.NumberOfCaCertificates = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("Status", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Status = types.TrustStoreStatus(xtv) - } - - case strings.EqualFold("TotalRevokedEntries", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.TotalRevokedEntries = ptr.Int64(i64) - } - - case strings.EqualFold("TrustStoreArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.TrustStoreArn = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTrustStoreAssociation(v **types.TrustStoreAssociation, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TrustStoreAssociation - if *v == nil { - sv = &types.TrustStoreAssociation{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("ResourceArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.ResourceArn = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTrustStoreAssociationNotFoundException(v **types.TrustStoreAssociationNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TrustStoreAssociationNotFoundException - if *v == nil { - sv = &types.TrustStoreAssociationNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTrustStoreAssociations(v *[]types.TrustStoreAssociation, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.TrustStoreAssociation - if *v == nil { - sv = make([]types.TrustStoreAssociation, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.TrustStoreAssociation - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentTrustStoreAssociation(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTrustStoreAssociationsUnwrapped(v *[]types.TrustStoreAssociation, decoder smithyxml.NodeDecoder) error { - var sv []types.TrustStoreAssociation - if *v == nil { - sv = make([]types.TrustStoreAssociation, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.TrustStoreAssociation - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentTrustStoreAssociation(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentTrustStoreInUseException(v **types.TrustStoreInUseException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TrustStoreInUseException - if *v == nil { - sv = &types.TrustStoreInUseException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTrustStoreNotFoundException(v **types.TrustStoreNotFoundException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TrustStoreNotFoundException - if *v == nil { - sv = &types.TrustStoreNotFoundException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTrustStoreNotReadyException(v **types.TrustStoreNotReadyException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TrustStoreNotReadyException - if *v == nil { - sv = &types.TrustStoreNotReadyException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTrustStoreRevocation(v **types.TrustStoreRevocation, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.TrustStoreRevocation - if *v == nil { - sv = &types.TrustStoreRevocation{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("NumberOfRevokedEntries", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.NumberOfRevokedEntries = ptr.Int64(i64) - } - - case strings.EqualFold("RevocationId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.RevocationId = ptr.Int64(i64) - } - - case strings.EqualFold("RevocationType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.RevocationType = types.RevocationType(xtv) - } - - case strings.EqualFold("TrustStoreArn", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.TrustStoreArn = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTrustStoreRevocations(v *[]types.TrustStoreRevocation, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.TrustStoreRevocation - if *v == nil { - sv = make([]types.TrustStoreRevocation, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.TrustStoreRevocation - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentTrustStoreRevocation(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTrustStoreRevocationsUnwrapped(v *[]types.TrustStoreRevocation, decoder smithyxml.NodeDecoder) error { - var sv []types.TrustStoreRevocation - if *v == nil { - sv = make([]types.TrustStoreRevocation, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.TrustStoreRevocation - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentTrustStoreRevocation(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentTrustStores(v *[]types.TrustStore, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.TrustStore - if *v == nil { - sv = make([]types.TrustStore, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.TrustStore - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentTrustStore(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentTrustStoresUnwrapped(v *[]types.TrustStore, decoder smithyxml.NodeDecoder) error { - var sv []types.TrustStore - if *v == nil { - sv = make([]types.TrustStore, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.TrustStore - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentTrustStore(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeDocumentUnsupportedProtocolException(v **types.UnsupportedProtocolException, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.UnsupportedProtocolException - if *v == nil { - sv = &types.UnsupportedProtocolException{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Message", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Message = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentUrlRewriteConfig(v **types.UrlRewriteConfig, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.UrlRewriteConfig - if *v == nil { - sv = &types.UrlRewriteConfig{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Rewrites", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRewriteConfigList(&sv.Rewrites, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentZonalCapacityReservationState(v **types.ZonalCapacityReservationState, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *types.ZonalCapacityReservationState - if *v == nil { - sv = &types.ZonalCapacityReservationState{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("AvailabilityZone", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.AvailabilityZone = ptr.String(xtv) - } - - case strings.EqualFold("EffectiveCapacityUnits", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - f64, err := strconv.ParseFloat(xtv, 64) - if err != nil { - return err - } - sv.EffectiveCapacityUnits = ptr.Float64(f64) - } - - case strings.EqualFold("State", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCapacityReservationStatus(&sv.State, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentZonalCapacityReservationStates(v *[]types.ZonalCapacityReservationState, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.ZonalCapacityReservationState - if *v == nil { - sv = make([]types.ZonalCapacityReservationState, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("member", t.Name.Local): - var col types.ZonalCapacityReservationState - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsAwsquery_deserializeDocumentZonalCapacityReservationState(&destAddr, nodeDecoder); err != nil { - return err - } - col = *destAddr - sv = append(sv, col) - - default: - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeDocumentZonalCapacityReservationStatesUnwrapped(v *[]types.ZonalCapacityReservationState, decoder smithyxml.NodeDecoder) error { - var sv []types.ZonalCapacityReservationState - if *v == nil { - sv = make([]types.ZonalCapacityReservationState, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.ZonalCapacityReservationState - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsAwsquery_deserializeDocumentZonalCapacityReservationState(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsAwsquery_deserializeOpDocumentAddListenerCertificatesOutput(v **AddListenerCertificatesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *AddListenerCertificatesOutput - if *v == nil { - sv = &AddListenerCertificatesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Certificates", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCertificateList(&sv.Certificates, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentAddTagsOutput(v **AddTagsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *AddTagsOutput - if *v == nil { - sv = &AddTagsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentAddTrustStoreRevocationsOutput(v **AddTrustStoreRevocationsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *AddTrustStoreRevocationsOutput - if *v == nil { - sv = &AddTrustStoreRevocationsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("TrustStoreRevocations", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTrustStoreRevocations(&sv.TrustStoreRevocations, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentCreateListenerOutput(v **CreateListenerOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *CreateListenerOutput - if *v == nil { - sv = &CreateListenerOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Listeners", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListeners(&sv.Listeners, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentCreateLoadBalancerOutput(v **CreateLoadBalancerOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *CreateLoadBalancerOutput - if *v == nil { - sv = &CreateLoadBalancerOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("LoadBalancers", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancers(&sv.LoadBalancers, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentCreateRuleOutput(v **CreateRuleOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *CreateRuleOutput - if *v == nil { - sv = &CreateRuleOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Rules", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRules(&sv.Rules, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentCreateTargetGroupOutput(v **CreateTargetGroupOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *CreateTargetGroupOutput - if *v == nil { - sv = &CreateTargetGroupOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("TargetGroups", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetGroups(&sv.TargetGroups, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentCreateTrustStoreOutput(v **CreateTrustStoreOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *CreateTrustStoreOutput - if *v == nil { - sv = &CreateTrustStoreOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("TrustStores", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTrustStores(&sv.TrustStores, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDeleteListenerOutput(v **DeleteListenerOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DeleteListenerOutput - if *v == nil { - sv = &DeleteListenerOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDeleteLoadBalancerOutput(v **DeleteLoadBalancerOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DeleteLoadBalancerOutput - if *v == nil { - sv = &DeleteLoadBalancerOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDeleteRuleOutput(v **DeleteRuleOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DeleteRuleOutput - if *v == nil { - sv = &DeleteRuleOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDeleteSharedTrustStoreAssociationOutput(v **DeleteSharedTrustStoreAssociationOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DeleteSharedTrustStoreAssociationOutput - if *v == nil { - sv = &DeleteSharedTrustStoreAssociationOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDeleteTargetGroupOutput(v **DeleteTargetGroupOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DeleteTargetGroupOutput - if *v == nil { - sv = &DeleteTargetGroupOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDeleteTrustStoreOutput(v **DeleteTrustStoreOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DeleteTrustStoreOutput - if *v == nil { - sv = &DeleteTrustStoreOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDeregisterTargetsOutput(v **DeregisterTargetsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DeregisterTargetsOutput - if *v == nil { - sv = &DeregisterTargetsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeAccountLimitsOutput(v **DescribeAccountLimitsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeAccountLimitsOutput - if *v == nil { - sv = &DescribeAccountLimitsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Limits", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLimits(&sv.Limits, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("NextMarker", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextMarker = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeCapacityReservationOutput(v **DescribeCapacityReservationOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeCapacityReservationOutput - if *v == nil { - sv = &DescribeCapacityReservationOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("CapacityReservationState", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentZonalCapacityReservationStates(&sv.CapacityReservationState, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("DecreaseRequestsRemaining", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.DecreaseRequestsRemaining = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("LastModifiedTime", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.LastModifiedTime = ptr.Time(t) - } - - case strings.EqualFold("MinimumLoadBalancerCapacity", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMinimumLoadBalancerCapacity(&sv.MinimumLoadBalancerCapacity, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeListenerAttributesOutput(v **DescribeListenerAttributesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeListenerAttributesOutput - if *v == nil { - sv = &DescribeListenerAttributesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Attributes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListenerAttributes(&sv.Attributes, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeListenerCertificatesOutput(v **DescribeListenerCertificatesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeListenerCertificatesOutput - if *v == nil { - sv = &DescribeListenerCertificatesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Certificates", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentCertificateList(&sv.Certificates, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("NextMarker", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextMarker = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeListenersOutput(v **DescribeListenersOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeListenersOutput - if *v == nil { - sv = &DescribeListenersOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Listeners", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListeners(&sv.Listeners, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("NextMarker", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextMarker = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeLoadBalancerAttributesOutput(v **DescribeLoadBalancerAttributesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeLoadBalancerAttributesOutput - if *v == nil { - sv = &DescribeLoadBalancerAttributesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Attributes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerAttributes(&sv.Attributes, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeLoadBalancersOutput(v **DescribeLoadBalancersOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeLoadBalancersOutput - if *v == nil { - sv = &DescribeLoadBalancersOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("LoadBalancers", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancers(&sv.LoadBalancers, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("NextMarker", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextMarker = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeRulesOutput(v **DescribeRulesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeRulesOutput - if *v == nil { - sv = &DescribeRulesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("NextMarker", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextMarker = ptr.String(xtv) - } - - case strings.EqualFold("Rules", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRules(&sv.Rules, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeSSLPoliciesOutput(v **DescribeSSLPoliciesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeSSLPoliciesOutput - if *v == nil { - sv = &DescribeSSLPoliciesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("NextMarker", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextMarker = ptr.String(xtv) - } - - case strings.EqualFold("SslPolicies", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSslPolicies(&sv.SslPolicies, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeTagsOutput - if *v == nil { - sv = &DescribeTagsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("TagDescriptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTagDescriptions(&sv.TagDescriptions, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeTargetGroupAttributesOutput(v **DescribeTargetGroupAttributesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeTargetGroupAttributesOutput - if *v == nil { - sv = &DescribeTargetGroupAttributesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Attributes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetGroupAttributes(&sv.Attributes, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeTargetGroupsOutput(v **DescribeTargetGroupsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeTargetGroupsOutput - if *v == nil { - sv = &DescribeTargetGroupsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("NextMarker", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextMarker = ptr.String(xtv) - } - - case strings.EqualFold("TargetGroups", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetGroups(&sv.TargetGroups, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeTargetHealthOutput(v **DescribeTargetHealthOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeTargetHealthOutput - if *v == nil { - sv = &DescribeTargetHealthOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("TargetHealthDescriptions", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetHealthDescriptions(&sv.TargetHealthDescriptions, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeTrustStoreAssociationsOutput(v **DescribeTrustStoreAssociationsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeTrustStoreAssociationsOutput - if *v == nil { - sv = &DescribeTrustStoreAssociationsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("NextMarker", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextMarker = ptr.String(xtv) - } - - case strings.EqualFold("TrustStoreAssociations", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTrustStoreAssociations(&sv.TrustStoreAssociations, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeTrustStoreRevocationsOutput(v **DescribeTrustStoreRevocationsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeTrustStoreRevocationsOutput - if *v == nil { - sv = &DescribeTrustStoreRevocationsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("NextMarker", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextMarker = ptr.String(xtv) - } - - case strings.EqualFold("TrustStoreRevocations", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentDescribeTrustStoreRevocationResponse(&sv.TrustStoreRevocations, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentDescribeTrustStoresOutput(v **DescribeTrustStoresOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeTrustStoresOutput - if *v == nil { - sv = &DescribeTrustStoresOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("NextMarker", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.NextMarker = ptr.String(xtv) - } - - case strings.EqualFold("TrustStores", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTrustStores(&sv.TrustStores, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentGetResourcePolicyOutput(v **GetResourcePolicyOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *GetResourcePolicyOutput - if *v == nil { - sv = &GetResourcePolicyOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Policy", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Policy = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentGetTrustStoreCaCertificatesBundleOutput(v **GetTrustStoreCaCertificatesBundleOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *GetTrustStoreCaCertificatesBundleOutput - if *v == nil { - sv = &GetTrustStoreCaCertificatesBundleOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Location", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Location = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentGetTrustStoreRevocationContentOutput(v **GetTrustStoreRevocationContentOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *GetTrustStoreRevocationContentOutput - if *v == nil { - sv = &GetTrustStoreRevocationContentOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Location", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.Location = ptr.String(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentModifyCapacityReservationOutput(v **ModifyCapacityReservationOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *ModifyCapacityReservationOutput - if *v == nil { - sv = &ModifyCapacityReservationOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("CapacityReservationState", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentZonalCapacityReservationStates(&sv.CapacityReservationState, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("DecreaseRequestsRemaining", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) - if err != nil { - return err - } - sv.DecreaseRequestsRemaining = ptr.Int32(int32(i64)) - } - - case strings.EqualFold("LastModifiedTime", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.LastModifiedTime = ptr.Time(t) - } - - case strings.EqualFold("MinimumLoadBalancerCapacity", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentMinimumLoadBalancerCapacity(&sv.MinimumLoadBalancerCapacity, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentModifyIpPoolsOutput(v **ModifyIpPoolsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *ModifyIpPoolsOutput - if *v == nil { - sv = &ModifyIpPoolsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("IpamPools", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentIpamPools(&sv.IpamPools, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentModifyListenerAttributesOutput(v **ModifyListenerAttributesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *ModifyListenerAttributesOutput - if *v == nil { - sv = &ModifyListenerAttributesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Attributes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListenerAttributes(&sv.Attributes, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentModifyListenerOutput(v **ModifyListenerOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *ModifyListenerOutput - if *v == nil { - sv = &ModifyListenerOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Listeners", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentListeners(&sv.Listeners, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentModifyLoadBalancerAttributesOutput(v **ModifyLoadBalancerAttributesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *ModifyLoadBalancerAttributesOutput - if *v == nil { - sv = &ModifyLoadBalancerAttributesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Attributes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentLoadBalancerAttributes(&sv.Attributes, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentModifyRuleOutput(v **ModifyRuleOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *ModifyRuleOutput - if *v == nil { - sv = &ModifyRuleOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Rules", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRules(&sv.Rules, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentModifyTargetGroupAttributesOutput(v **ModifyTargetGroupAttributesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *ModifyTargetGroupAttributesOutput - if *v == nil { - sv = &ModifyTargetGroupAttributesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Attributes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetGroupAttributes(&sv.Attributes, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentModifyTargetGroupOutput(v **ModifyTargetGroupOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *ModifyTargetGroupOutput - if *v == nil { - sv = &ModifyTargetGroupOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("TargetGroups", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTargetGroups(&sv.TargetGroups, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentModifyTrustStoreOutput(v **ModifyTrustStoreOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *ModifyTrustStoreOutput - if *v == nil { - sv = &ModifyTrustStoreOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("TrustStores", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentTrustStores(&sv.TrustStores, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentRegisterTargetsOutput(v **RegisterTargetsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *RegisterTargetsOutput - if *v == nil { - sv = &RegisterTargetsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentRemoveListenerCertificatesOutput(v **RemoveListenerCertificatesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *RemoveListenerCertificatesOutput - if *v == nil { - sv = &RemoveListenerCertificatesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentRemoveTagsOutput(v **RemoveTagsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *RemoveTagsOutput - if *v == nil { - sv = &RemoveTagsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentRemoveTrustStoreRevocationsOutput(v **RemoveTrustStoreRevocationsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *RemoveTrustStoreRevocationsOutput - if *v == nil { - sv = &RemoveTrustStoreRevocationsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentSetIpAddressTypeOutput(v **SetIpAddressTypeOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *SetIpAddressTypeOutput - if *v == nil { - sv = &SetIpAddressTypeOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("IpAddressType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.IpAddressType = types.IpAddressType(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentSetRulePrioritiesOutput(v **SetRulePrioritiesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *SetRulePrioritiesOutput - if *v == nil { - sv = &SetRulePrioritiesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("Rules", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentRules(&sv.Rules, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentSetSecurityGroupsOutput(v **SetSecurityGroupsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *SetSecurityGroupsOutput - if *v == nil { - sv = &SetSecurityGroupsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = types.EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum(xtv) - } - - case strings.EqualFold("SecurityGroupIds", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentSecurityGroups(&sv.SecurityGroupIds, nodeDecoder); err != nil { - return err - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsAwsquery_deserializeOpDocumentSetSubnetsOutput(v **SetSubnetsOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *SetSubnetsOutput - if *v == nil { - sv = &SetSubnetsOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("AvailabilityZones", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsAwsquery_deserializeDocumentAvailabilityZones(&sv.AvailabilityZones, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("EnablePrefixForIpv6SourceNat", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.EnablePrefixForIpv6SourceNat = types.EnablePrefixForIpv6SourceNatEnum(xtv) - } - - case strings.EqualFold("IpAddressType", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.IpAddressType = types.IpAddressType(xtv) - } - - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { - return err - } - - } - decoder = originalDecoder - } - *v = sv - return nil -} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/generated.json b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/generated.json index 10959f95a..56886b55a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/generated.json +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/generated.json @@ -60,7 +60,7 @@ "api_op_SetSecurityGroups.go", "api_op_SetSubnets.go", "auth.go", - "deserializers.go", + "common_serde.go", "doc.go", "endpoints.go", "endpoints_config_test.go", @@ -71,9 +71,12 @@ "options.go", "request_snapshot_test.go", "response_snapshot_test.go", - "serializers.go", + "response_snapshot_update_test.go", + "schemas/schemas.go", "snapshot_test.go", "sra_operation_order_test.go", + "type_registry.go", + "types/common_serde.go", "types/enums.go", "types/errors.go", "types/types.go", diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/go_module_metadata.go index e86ca342c..02c4bc1a0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/go_module_metadata.go @@ -3,4 +3,4 @@ package elasticloadbalancingv2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.63.8" +const goModuleVersion = "1.65.1" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/options.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/options.go index c9b63b661..f0e8e0213 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/options.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/options.go @@ -119,6 +119,8 @@ type Options struct { // Currently does not support per operation call overrides, may in the future. resolvedDefaultsMode aws.DefaultsMode + Protocol smithyhttp.ClientProtocol + // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas/schemas.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas/schemas.go new file mode 100644 index 000000000..847e52654 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas/schemas.go @@ -0,0 +1,4945 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package schemas + +import ( + smithy "github.com/aws/smithy-go" + smithyprelude "github.com/aws/smithy-go/prelude" + smithytraits "github.com/aws/smithy-go/traits" +) + +var AddListenerCertificates = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AddListenerCertificates", +}, smithy.ShapeTypeOperation, 0) + +var AddTags = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AddTags", +}, smithy.ShapeTypeOperation, 0) + +var AddTrustStoreRevocations = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AddTrustStoreRevocations", +}, smithy.ShapeTypeOperation, 0) + +var CreateListener = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateListener", +}, smithy.ShapeTypeOperation, 0) + +var CreateLoadBalancer = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateLoadBalancer", +}, smithy.ShapeTypeOperation, 0) + +var CreateRule = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateRule", +}, smithy.ShapeTypeOperation, 0) + +var CreateTargetGroup = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateTargetGroup", +}, smithy.ShapeTypeOperation, 0) + +var CreateTrustStore = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateTrustStore", +}, smithy.ShapeTypeOperation, 0) + +var DeleteListener = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteListener", +}, smithy.ShapeTypeOperation, 0) + +var DeleteLoadBalancer = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteLoadBalancer", +}, smithy.ShapeTypeOperation, 0) + +var DeleteRule = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteRule", +}, smithy.ShapeTypeOperation, 0) + +var DeleteSharedTrustStoreAssociation = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteSharedTrustStoreAssociation", +}, smithy.ShapeTypeOperation, 0) + +var DeleteTargetGroup = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteTargetGroup", +}, smithy.ShapeTypeOperation, 0) + +var DeleteTrustStore = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteTrustStore", +}, smithy.ShapeTypeOperation, 0) + +var DeregisterTargets = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeregisterTargets", +}, smithy.ShapeTypeOperation, 0) + +var DescribeAccountLimits = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeAccountLimits", +}, smithy.ShapeTypeOperation, 0) + +var DescribeCapacityReservation = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeCapacityReservation", +}, smithy.ShapeTypeOperation, 0) + +var DescribeListenerAttributes = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeListenerAttributes", +}, smithy.ShapeTypeOperation, 0) + +var DescribeListenerCertificates = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeListenerCertificates", +}, smithy.ShapeTypeOperation, 0) + +var DescribeListeners = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeListeners", +}, smithy.ShapeTypeOperation, 0) + +var DescribeLoadBalancerAttributes = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeLoadBalancerAttributes", +}, smithy.ShapeTypeOperation, 0) + +var DescribeLoadBalancers = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeLoadBalancers", +}, smithy.ShapeTypeOperation, 0) + +var DescribeRules = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeRules", +}, smithy.ShapeTypeOperation, 0) + +var DescribeSSLPolicies = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeSSLPolicies", +}, smithy.ShapeTypeOperation, 0) + +var DescribeTags = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTags", +}, smithy.ShapeTypeOperation, 0) + +var DescribeTargetGroupAttributes = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTargetGroupAttributes", +}, smithy.ShapeTypeOperation, 0) + +var DescribeTargetGroups = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTargetGroups", +}, smithy.ShapeTypeOperation, 0) + +var DescribeTargetHealth = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTargetHealth", +}, smithy.ShapeTypeOperation, 0) + +var DescribeTrustStoreAssociations = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTrustStoreAssociations", +}, smithy.ShapeTypeOperation, 0) + +var DescribeTrustStoreRevocations = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTrustStoreRevocations", +}, smithy.ShapeTypeOperation, 0) + +var DescribeTrustStores = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTrustStores", +}, smithy.ShapeTypeOperation, 0) + +var GetResourcePolicy = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "GetResourcePolicy", +}, smithy.ShapeTypeOperation, 0) + +var GetTrustStoreCaCertificatesBundle = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "GetTrustStoreCaCertificatesBundle", +}, smithy.ShapeTypeOperation, 0) + +var GetTrustStoreRevocationContent = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "GetTrustStoreRevocationContent", +}, smithy.ShapeTypeOperation, 0) + +var ModifyCapacityReservation = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyCapacityReservation", +}, smithy.ShapeTypeOperation, 0) + +var ModifyIpPools = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyIpPools", +}, smithy.ShapeTypeOperation, 0) + +var ModifyListener = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyListener", +}, smithy.ShapeTypeOperation, 0) + +var ModifyListenerAttributes = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyListenerAttributes", +}, smithy.ShapeTypeOperation, 0) + +var ModifyLoadBalancerAttributes = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyLoadBalancerAttributes", +}, smithy.ShapeTypeOperation, 0) + +var ModifyRule = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyRule", +}, smithy.ShapeTypeOperation, 0) + +var ModifyTargetGroup = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyTargetGroup", +}, smithy.ShapeTypeOperation, 0) + +var ModifyTargetGroupAttributes = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyTargetGroupAttributes", +}, smithy.ShapeTypeOperation, 0) + +var ModifyTrustStore = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyTrustStore", +}, smithy.ShapeTypeOperation, 0) + +var RegisterTargets = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RegisterTargets", +}, smithy.ShapeTypeOperation, 0) + +var RemoveListenerCertificates = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RemoveListenerCertificates", +}, smithy.ShapeTypeOperation, 0) + +var RemoveTags = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RemoveTags", +}, smithy.ShapeTypeOperation, 0) + +var RemoveTrustStoreRevocations = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RemoveTrustStoreRevocations", +}, smithy.ShapeTypeOperation, 0) + +var SetIpAddressType = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SetIpAddressType", +}, smithy.ShapeTypeOperation, 0) + +var SetRulePriorities = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SetRulePriorities", +}, smithy.ShapeTypeOperation, 0) + +var SetSecurityGroups = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SetSecurityGroups", +}, smithy.ShapeTypeOperation, 0) + +var SetSubnets = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SetSubnets", +}, smithy.ShapeTypeOperation, 0) + +var _ElasticLoadBalancing_v10 = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ElasticLoadBalancing_v10", +}, smithy.ShapeTypeService, 0, &smithytraits.XMLNamespace{URI: "http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/"}) + +var ElasticLoadBalancing_v10 = smithy.NewServiceSchema(_ElasticLoadBalancing_v10, "2015-12-01") + +var Action = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Action", +}, smithy.ShapeTypeStructure, 9) +var Action_Type *smithy.Schema + +var Action_TargetGroupArn *smithy.Schema + +var Action_AuthenticateOidcConfig *smithy.Schema + +var Action_AuthenticateCognitoConfig *smithy.Schema + +var Action_Order *smithy.Schema + +var Action_RedirectConfig *smithy.Schema + +var Action_FixedResponseConfig *smithy.Schema + +var Action_ForwardConfig *smithy.Schema + +var Action_JwtValidationConfig *smithy.Schema + +var _ActionOrder = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ActionOrder", +}, smithy.ShapeTypeInteger, 0) + +var _Actions = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Actions", +}, smithy.ShapeTypeList, 1) +var _Actions_member *smithy.Schema + +var ActionTypeEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ActionTypeEnum", +}, smithy.ShapeTypeEnum, 6) +var ActionTypeEnum_FORWARD *smithy.Schema + +var ActionTypeEnum_AUTHENTICATE_OIDC *smithy.Schema + +var ActionTypeEnum_AUTHENTICATE_COGNITO *smithy.Schema + +var ActionTypeEnum_REDIRECT *smithy.Schema + +var ActionTypeEnum_FIXED_RESPONSE *smithy.Schema + +var ActionTypeEnum_JWT_VALIDATION *smithy.Schema + +var AdministrativeOverride = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AdministrativeOverride", +}, smithy.ShapeTypeStructure, 3) +var AdministrativeOverride_State *smithy.Schema + +var AdministrativeOverride_Reason *smithy.Schema + +var AdministrativeOverride_Description *smithy.Schema + +var AdvertiseTrustStoreCaNamesEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AdvertiseTrustStoreCaNamesEnum", +}, smithy.ShapeTypeEnum, 2) +var AdvertiseTrustStoreCaNamesEnum_on *smithy.Schema + +var AdvertiseTrustStoreCaNamesEnum_off *smithy.Schema + +var _AllocationId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AllocationId", +}, smithy.ShapeTypeString, 0) + +var AllocationIdNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AllocationIdNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "AllocationIdNotFound", + StatusCode: 400}) +var AllocationIdNotFoundException_Message *smithy.Schema + +var _AlpnPolicyName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AlpnPolicyName", +}, smithy.ShapeTypeList, 1) +var _AlpnPolicyName_member *smithy.Schema + +var ALPNPolicyNotSupportedException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ALPNPolicyNotSupportedException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "ALPNPolicyNotFound", + StatusCode: 400}) +var ALPNPolicyNotSupportedException_Message *smithy.Schema + +var _AlpnPolicyValue = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AlpnPolicyValue", +}, smithy.ShapeTypeString, 0) + +var AnomalyDetection = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AnomalyDetection", +}, smithy.ShapeTypeStructure, 2) +var AnomalyDetection_Result *smithy.Schema + +var AnomalyDetection_MitigationInEffect *smithy.Schema + +var AnomalyResultEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AnomalyResultEnum", +}, smithy.ShapeTypeEnum, 2) +var AnomalyResultEnum_ANOMALOUS *smithy.Schema + +var AnomalyResultEnum_NORMAL *smithy.Schema + +var _AuthenticateCognitoActionAuthenticationRequestExtraParams = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateCognitoActionAuthenticationRequestExtraParams", +}, smithy.ShapeTypeMap, 2) +var _AuthenticateCognitoActionAuthenticationRequestExtraParams_key *smithy.Schema + +var _AuthenticateCognitoActionAuthenticationRequestExtraParams_value *smithy.Schema + +var _AuthenticateCognitoActionAuthenticationRequestParamName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateCognitoActionAuthenticationRequestParamName", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateCognitoActionAuthenticationRequestParamValue = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateCognitoActionAuthenticationRequestParamValue", +}, smithy.ShapeTypeString, 0) + +var AuthenticateCognitoActionConditionalBehaviorEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateCognitoActionConditionalBehaviorEnum", +}, smithy.ShapeTypeEnum, 3) +var AuthenticateCognitoActionConditionalBehaviorEnum_DENY *smithy.Schema + +var AuthenticateCognitoActionConditionalBehaviorEnum_ALLOW *smithy.Schema + +var AuthenticateCognitoActionConditionalBehaviorEnum_AUTHENTICATE *smithy.Schema + +var AuthenticateCognitoActionConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateCognitoActionConfig", +}, smithy.ShapeTypeStructure, 8) +var AuthenticateCognitoActionConfig_UserPoolArn *smithy.Schema + +var AuthenticateCognitoActionConfig_UserPoolClientId *smithy.Schema + +var AuthenticateCognitoActionConfig_UserPoolDomain *smithy.Schema + +var AuthenticateCognitoActionConfig_SessionCookieName *smithy.Schema + +var AuthenticateCognitoActionConfig_Scope *smithy.Schema + +var AuthenticateCognitoActionConfig_SessionTimeout *smithy.Schema + +var AuthenticateCognitoActionConfig_AuthenticationRequestExtraParams *smithy.Schema + +var AuthenticateCognitoActionConfig_OnUnauthenticatedRequest *smithy.Schema + +var _AuthenticateCognitoActionScope = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateCognitoActionScope", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateCognitoActionSessionCookieName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateCognitoActionSessionCookieName", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateCognitoActionSessionTimeout = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateCognitoActionSessionTimeout", +}, smithy.ShapeTypeLong, 0) + +var _AuthenticateCognitoActionUserPoolArn = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateCognitoActionUserPoolArn", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateCognitoActionUserPoolClientId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateCognitoActionUserPoolClientId", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateCognitoActionUserPoolDomain = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateCognitoActionUserPoolDomain", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateOidcActionAuthenticationRequestExtraParams = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionAuthenticationRequestExtraParams", +}, smithy.ShapeTypeMap, 2) +var _AuthenticateOidcActionAuthenticationRequestExtraParams_key *smithy.Schema + +var _AuthenticateOidcActionAuthenticationRequestExtraParams_value *smithy.Schema + +var _AuthenticateOidcActionAuthenticationRequestParamName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionAuthenticationRequestParamName", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateOidcActionAuthenticationRequestParamValue = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionAuthenticationRequestParamValue", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateOidcActionAuthorizationEndpoint = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionAuthorizationEndpoint", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateOidcActionClientId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionClientId", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateOidcActionClientSecret = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionClientSecret", +}, smithy.ShapeTypeString, 0) + +var AuthenticateOidcActionConditionalBehaviorEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionConditionalBehaviorEnum", +}, smithy.ShapeTypeEnum, 3) +var AuthenticateOidcActionConditionalBehaviorEnum_DENY *smithy.Schema + +var AuthenticateOidcActionConditionalBehaviorEnum_ALLOW *smithy.Schema + +var AuthenticateOidcActionConditionalBehaviorEnum_AUTHENTICATE *smithy.Schema + +var AuthenticateOidcActionConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionConfig", +}, smithy.ShapeTypeStructure, 12) +var AuthenticateOidcActionConfig_Issuer *smithy.Schema + +var AuthenticateOidcActionConfig_AuthorizationEndpoint *smithy.Schema + +var AuthenticateOidcActionConfig_TokenEndpoint *smithy.Schema + +var AuthenticateOidcActionConfig_UserInfoEndpoint *smithy.Schema + +var AuthenticateOidcActionConfig_ClientId *smithy.Schema + +var AuthenticateOidcActionConfig_ClientSecret *smithy.Schema + +var AuthenticateOidcActionConfig_SessionCookieName *smithy.Schema + +var AuthenticateOidcActionConfig_Scope *smithy.Schema + +var AuthenticateOidcActionConfig_SessionTimeout *smithy.Schema + +var AuthenticateOidcActionConfig_AuthenticationRequestExtraParams *smithy.Schema + +var AuthenticateOidcActionConfig_OnUnauthenticatedRequest *smithy.Schema + +var AuthenticateOidcActionConfig_UseExistingClientSecret *smithy.Schema + +var _AuthenticateOidcActionIssuer = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionIssuer", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateOidcActionScope = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionScope", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateOidcActionSessionCookieName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionSessionCookieName", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateOidcActionSessionTimeout = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionSessionTimeout", +}, smithy.ShapeTypeLong, 0) + +var _AuthenticateOidcActionTokenEndpoint = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionTokenEndpoint", +}, smithy.ShapeTypeString, 0) + +var _AuthenticateOidcActionUseExistingClientSecret = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionUseExistingClientSecret", +}, smithy.ShapeTypeBoolean, 0) + +var _AuthenticateOidcActionUserInfoEndpoint = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AuthenticateOidcActionUserInfoEndpoint", +}, smithy.ShapeTypeString, 0) + +var AvailabilityZone = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AvailabilityZone", +}, smithy.ShapeTypeStructure, 5) +var AvailabilityZone_ZoneName *smithy.Schema + +var AvailabilityZone_SubnetId *smithy.Schema + +var AvailabilityZone_OutpostId *smithy.Schema + +var AvailabilityZone_LoadBalancerAddresses *smithy.Schema + +var AvailabilityZone_SourceNatIpv6Prefixes *smithy.Schema + +var AvailabilityZoneNotSupportedException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AvailabilityZoneNotSupportedException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "AvailabilityZoneNotSupported", + StatusCode: 400}) +var AvailabilityZoneNotSupportedException_Message *smithy.Schema + +var _AvailabilityZones = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AvailabilityZones", +}, smithy.ShapeTypeList, 1) +var _AvailabilityZones_member *smithy.Schema + +var CaCertificatesBundleNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CaCertificatesBundleNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "CaCertificatesBundleNotFound", + StatusCode: 400}) +var CaCertificatesBundleNotFoundException_Message *smithy.Schema + +var _CanonicalHostedZoneId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CanonicalHostedZoneId", +}, smithy.ShapeTypeString, 0) + +var CapacityDecreaseRequestsLimitExceededException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CapacityDecreaseRequestsLimitExceededException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "CapacityDecreaseRequestLimitExceeded", + StatusCode: 400}) +var CapacityDecreaseRequestsLimitExceededException_Message *smithy.Schema + +var CapacityReservationPendingException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CapacityReservationPendingException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "CapacityReservationPending", + StatusCode: 400}) +var CapacityReservationPendingException_Message *smithy.Schema + +var CapacityReservationStateEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CapacityReservationStateEnum", +}, smithy.ShapeTypeEnum, 4) +var CapacityReservationStateEnum_PROVISIONED *smithy.Schema + +var CapacityReservationStateEnum_PENDING *smithy.Schema + +var CapacityReservationStateEnum_REBALANCING *smithy.Schema + +var CapacityReservationStateEnum_FAILED *smithy.Schema + +var CapacityReservationStatus = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CapacityReservationStatus", +}, smithy.ShapeTypeStructure, 2) +var CapacityReservationStatus_Code *smithy.Schema + +var CapacityReservationStatus_Reason *smithy.Schema + +var _CapacityUnits = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CapacityUnits", +}, smithy.ShapeTypeInteger, 0) + +var _CapacityUnitsDouble = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CapacityUnitsDouble", +}, smithy.ShapeTypeDouble, 0) + +var CapacityUnitsLimitExceededException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CapacityUnitsLimitExceededException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "CapacityUnitsLimitExceeded", + StatusCode: 400}) +var CapacityUnitsLimitExceededException_Message *smithy.Schema + +var Certificate = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Certificate", +}, smithy.ShapeTypeStructure, 2) +var Certificate_CertificateArn *smithy.Schema + +var Certificate_IsDefault *smithy.Schema + +var _CertificateArn = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CertificateArn", +}, smithy.ShapeTypeString, 0) + +var _CertificateList = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CertificateList", +}, smithy.ShapeTypeList, 1) +var _CertificateList_member *smithy.Schema + +var CertificateNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CertificateNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "CertificateNotFound", + StatusCode: 400}) +var CertificateNotFoundException_Message *smithy.Schema + +var Cipher = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Cipher", +}, smithy.ShapeTypeStructure, 2) +var Cipher_Name *smithy.Schema + +var Cipher_Priority *smithy.Schema + +var _CipherName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CipherName", +}, smithy.ShapeTypeString, 0) + +var _CipherPriority = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CipherPriority", +}, smithy.ShapeTypeInteger, 0) + +var _Ciphers = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Ciphers", +}, smithy.ShapeTypeList, 1) +var _Ciphers_member *smithy.Schema + +var ClientCertificateIdentityFilter = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ClientCertificateIdentityFilter", +}, smithy.ShapeTypeStructure, 4) +var ClientCertificateIdentityFilter_Field *smithy.Schema + +var ClientCertificateIdentityFilter_Action *smithy.Schema + +var ClientCertificateIdentityFilter_MatchType *smithy.Schema + +var ClientCertificateIdentityFilter_Value *smithy.Schema + +var ClientCertificateIdentityFilterAction = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ClientCertificateIdentityFilterAction", +}, smithy.ShapeTypeEnum, 1) +var ClientCertificateIdentityFilterAction_ACCEPT *smithy.Schema + +var ClientCertificateIdentityFilterField = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ClientCertificateIdentityFilterField", +}, smithy.ShapeTypeEnum, 4) +var ClientCertificateIdentityFilterField_SUBJECT_CN *smithy.Schema + +var ClientCertificateIdentityFilterField_SUBJECT_OU *smithy.Schema + +var ClientCertificateIdentityFilterField_SAN_DNS *smithy.Schema + +var ClientCertificateIdentityFilterField_SAN_URI *smithy.Schema + +var ClientCertificateIdentityFilterMatchType = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ClientCertificateIdentityFilterMatchType", +}, smithy.ShapeTypeEnum, 2) +var ClientCertificateIdentityFilterMatchType_EXACT *smithy.Schema + +var ClientCertificateIdentityFilterMatchType_PREFIX *smithy.Schema + +var _ClientCertificateIdentityFilters = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ClientCertificateIdentityFilters", +}, smithy.ShapeTypeList, 1) +var _ClientCertificateIdentityFilters_member *smithy.Schema + +var _ClientCertificateIdentityFilterValue = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ClientCertificateIdentityFilterValue", +}, smithy.ShapeTypeString, 0) + +var _ConditionFieldName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ConditionFieldName", +}, smithy.ShapeTypeString, 0) + +var _CreatedTime = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreatedTime", +}, smithy.ShapeTypeTimestamp, 0) + +var _CustomerOwnedIpv4Pool = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CustomerOwnedIpv4Pool", +}, smithy.ShapeTypeString, 0) + +var _DecreaseRequestsRemaining = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DecreaseRequestsRemaining", +}, smithy.ShapeTypeInteger, 0) + +var _Default = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Default", +}, smithy.ShapeTypeBoolean, 0) + +var DeleteAssociationSameAccountException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteAssociationSameAccountException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "DeleteAssociationSameAccount", + StatusCode: 400}) +var DeleteAssociationSameAccountException_Message *smithy.Schema + +var DescribeTargetHealthInputIncludeEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTargetHealthInputIncludeEnum", +}, smithy.ShapeTypeEnum, 2) +var DescribeTargetHealthInputIncludeEnum_ANOMALY *smithy.Schema + +var DescribeTargetHealthInputIncludeEnum_ALL *smithy.Schema + +var DescribeTrustStoreRevocation = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTrustStoreRevocation", +}, smithy.ShapeTypeStructure, 4) +var DescribeTrustStoreRevocation_TrustStoreArn *smithy.Schema + +var DescribeTrustStoreRevocation_RevocationId *smithy.Schema + +var DescribeTrustStoreRevocation_RevocationType *smithy.Schema + +var DescribeTrustStoreRevocation_NumberOfRevokedEntries *smithy.Schema + +var _DescribeTrustStoreRevocationResponse = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTrustStoreRevocationResponse", +}, smithy.ShapeTypeList, 1) +var _DescribeTrustStoreRevocationResponse_member *smithy.Schema + +var _Description = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Description", +}, smithy.ShapeTypeString, 0) + +var _DNSName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DNSName", +}, smithy.ShapeTypeString, 0) + +var DuplicateListenerException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DuplicateListenerException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "DuplicateListener", + StatusCode: 400}) +var DuplicateListenerException_Message *smithy.Schema + +var DuplicateLoadBalancerNameException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DuplicateLoadBalancerNameException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "DuplicateLoadBalancerName", + StatusCode: 400}) +var DuplicateLoadBalancerNameException_Message *smithy.Schema + +var DuplicateTagKeysException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DuplicateTagKeysException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "DuplicateTagKeys", + StatusCode: 400}) +var DuplicateTagKeysException_Message *smithy.Schema + +var DuplicateTargetGroupNameException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DuplicateTargetGroupNameException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "DuplicateTargetGroupName", + StatusCode: 400}) +var DuplicateTargetGroupNameException_Message *smithy.Schema + +var DuplicateTrustStoreNameException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DuplicateTrustStoreNameException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "DuplicateTrustStoreName", + StatusCode: 400}) +var DuplicateTrustStoreNameException_Message *smithy.Schema + +var EnablePrefixForIpv6SourceNatEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "EnablePrefixForIpv6SourceNatEnum", +}, smithy.ShapeTypeEnum, 2) +var EnablePrefixForIpv6SourceNatEnum_ON *smithy.Schema + +var EnablePrefixForIpv6SourceNatEnum_OFF *smithy.Schema + +var _EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic", +}, smithy.ShapeTypeString, 0) + +var EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum", +}, smithy.ShapeTypeEnum, 2) +var EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum_on *smithy.Schema + +var EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum_off *smithy.Schema + +var _ErrorDescription = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ErrorDescription", +}, smithy.ShapeTypeString, 0) + +var FixedResponseActionConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "FixedResponseActionConfig", +}, smithy.ShapeTypeStructure, 3) +var FixedResponseActionConfig_MessageBody *smithy.Schema + +var FixedResponseActionConfig_StatusCode *smithy.Schema + +var FixedResponseActionConfig_ContentType *smithy.Schema + +var _FixedResponseActionContentType = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "FixedResponseActionContentType", +}, smithy.ShapeTypeString, 0) + +var _FixedResponseActionMessage = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "FixedResponseActionMessage", +}, smithy.ShapeTypeString, 0) + +var _FixedResponseActionStatusCode = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "FixedResponseActionStatusCode", +}, smithy.ShapeTypeString, 0) + +var ForwardActionConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ForwardActionConfig", +}, smithy.ShapeTypeStructure, 2) +var ForwardActionConfig_TargetGroups *smithy.Schema + +var ForwardActionConfig_TargetGroupStickinessConfig *smithy.Schema + +var _GrpcCode = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "GrpcCode", +}, smithy.ShapeTypeString, 0) + +var _HealthCheckEnabled = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "HealthCheckEnabled", +}, smithy.ShapeTypeBoolean, 0) + +var _HealthCheckIntervalSeconds = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "HealthCheckIntervalSeconds", +}, smithy.ShapeTypeInteger, 0) + +var _HealthCheckPort = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "HealthCheckPort", +}, smithy.ShapeTypeString, 0) + +var _HealthCheckThresholdCount = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "HealthCheckThresholdCount", +}, smithy.ShapeTypeInteger, 0) + +var _HealthCheckTimeoutSeconds = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "HealthCheckTimeoutSeconds", +}, smithy.ShapeTypeInteger, 0) + +var HealthUnavailableException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "HealthUnavailableException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "server"}, + &smithytraits.HTTPError{Code: 500}, + &smithytraits.AWSQueryError{ErrorCode: "HealthUnavailable", + StatusCode: 500}) +var HealthUnavailableException_Message *smithy.Schema + +var HostHeaderConditionConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "HostHeaderConditionConfig", +}, smithy.ShapeTypeStructure, 2) +var HostHeaderConditionConfig_Values *smithy.Schema + +var HostHeaderConditionConfig_RegexValues *smithy.Schema + +var HostHeaderRewriteConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "HostHeaderRewriteConfig", +}, smithy.ShapeTypeStructure, 1) +var HostHeaderRewriteConfig_Rewrites *smithy.Schema + +var _HttpCode = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "HttpCode", +}, smithy.ShapeTypeString, 0) + +var HttpHeaderConditionConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "HttpHeaderConditionConfig", +}, smithy.ShapeTypeStructure, 3) +var HttpHeaderConditionConfig_HttpHeaderName *smithy.Schema + +var HttpHeaderConditionConfig_Values *smithy.Schema + +var HttpHeaderConditionConfig_RegexValues *smithy.Schema + +var _HttpHeaderConditionName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "HttpHeaderConditionName", +}, smithy.ShapeTypeString, 0) + +var HttpRequestMethodConditionConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "HttpRequestMethodConditionConfig", +}, smithy.ShapeTypeStructure, 1) +var HttpRequestMethodConditionConfig_Values *smithy.Schema + +var _IgnoreClientCertificateExpiry = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "IgnoreClientCertificateExpiry", +}, smithy.ShapeTypeBoolean, 0) + +var IncompatibleProtocolsException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "IncompatibleProtocolsException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "IncompatibleProtocols", + StatusCode: 400}) +var IncompatibleProtocolsException_Message *smithy.Schema + +var InsufficientCapacityException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "InsufficientCapacityException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "server"}, + &smithytraits.HTTPError{Code: 500}, + &smithytraits.AWSQueryError{ErrorCode: "InsufficientCapacity", + StatusCode: 500}) +var InsufficientCapacityException_Message *smithy.Schema + +var InvalidCaCertificatesBundleException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "InvalidCaCertificatesBundleException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "InvalidCaCertificatesBundle", + StatusCode: 400}) +var InvalidCaCertificatesBundleException_Message *smithy.Schema + +var InvalidConfigurationRequestException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "InvalidConfigurationRequestException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "InvalidConfigurationRequest", + StatusCode: 400}) +var InvalidConfigurationRequestException_Message *smithy.Schema + +var InvalidLoadBalancerActionException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "InvalidLoadBalancerActionException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "InvalidLoadBalancerAction", + StatusCode: 400}) +var InvalidLoadBalancerActionException_Message *smithy.Schema + +var InvalidRevocationContentException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "InvalidRevocationContentException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "InvalidRevocationContent", + StatusCode: 400}) +var InvalidRevocationContentException_Message *smithy.Schema + +var InvalidSchemeException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "InvalidSchemeException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "InvalidScheme", + StatusCode: 400}) +var InvalidSchemeException_Message *smithy.Schema + +var InvalidSecurityGroupException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "InvalidSecurityGroupException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "InvalidSecurityGroup", + StatusCode: 400}) +var InvalidSecurityGroupException_Message *smithy.Schema + +var InvalidSubnetException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "InvalidSubnetException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "InvalidSubnet", + StatusCode: 400}) +var InvalidSubnetException_Message *smithy.Schema + +var InvalidTargetException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "InvalidTargetException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "InvalidTarget", + StatusCode: 400}) +var InvalidTargetException_Message *smithy.Schema + +var _IpAddress = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "IpAddress", +}, smithy.ShapeTypeString, 0) + +var IpAddressType = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "IpAddressType", +}, smithy.ShapeTypeEnum, 3) +var IpAddressType_IPV4 *smithy.Schema + +var IpAddressType_DUALSTACK *smithy.Schema + +var IpAddressType_DUALSTACK_WITHOUT_PUBLIC_IPV4 *smithy.Schema + +var _IpamPoolId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "IpamPoolId", +}, smithy.ShapeTypeString, 0) + +var IpamPools = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "IpamPools", +}, smithy.ShapeTypeStructure, 1) +var IpamPools_Ipv4IpamPoolId *smithy.Schema + +var _IPv6Address = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "IPv6Address", +}, smithy.ShapeTypeString, 0) + +var _IsDefault = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "IsDefault", +}, smithy.ShapeTypeBoolean, 0) + +var JwtValidationActionAdditionalClaim = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "JwtValidationActionAdditionalClaim", +}, smithy.ShapeTypeStructure, 3) +var JwtValidationActionAdditionalClaim_Format *smithy.Schema + +var JwtValidationActionAdditionalClaim_Name *smithy.Schema + +var JwtValidationActionAdditionalClaim_Values *smithy.Schema + +var JwtValidationActionAdditionalClaimFormatEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "JwtValidationActionAdditionalClaimFormatEnum", +}, smithy.ShapeTypeEnum, 3) +var JwtValidationActionAdditionalClaimFormatEnum_SINGLE_STRING *smithy.Schema + +var JwtValidationActionAdditionalClaimFormatEnum_STRING_ARRAY *smithy.Schema + +var JwtValidationActionAdditionalClaimFormatEnum_SPACE_SEPARATED_VALUES *smithy.Schema + +var _JwtValidationActionAdditionalClaimName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "JwtValidationActionAdditionalClaimName", +}, smithy.ShapeTypeString, 0) + +var _JwtValidationActionAdditionalClaims = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "JwtValidationActionAdditionalClaims", +}, smithy.ShapeTypeList, 1) +var _JwtValidationActionAdditionalClaims_member *smithy.Schema + +var _JwtValidationActionAdditionalClaimValue = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "JwtValidationActionAdditionalClaimValue", +}, smithy.ShapeTypeString, 0) + +var _JwtValidationActionAdditionalClaimValues = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "JwtValidationActionAdditionalClaimValues", +}, smithy.ShapeTypeList, 1) +var _JwtValidationActionAdditionalClaimValues_member *smithy.Schema + +var JwtValidationActionConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "JwtValidationActionConfig", +}, smithy.ShapeTypeStructure, 3) +var JwtValidationActionConfig_JwksEndpoint *smithy.Schema + +var JwtValidationActionConfig_Issuer *smithy.Schema + +var JwtValidationActionConfig_AdditionalClaims *smithy.Schema + +var _JwtValidationActionIssuer = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "JwtValidationActionIssuer", +}, smithy.ShapeTypeString, 0) + +var _JwtValidationActionJwksEndpoint = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "JwtValidationActionJwksEndpoint", +}, smithy.ShapeTypeString, 0) + +var _LastModifiedTime = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LastModifiedTime", +}, smithy.ShapeTypeTimestamp, 0) + +var Limit = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Limit", +}, smithy.ShapeTypeStructure, 2) +var Limit_Name *smithy.Schema + +var Limit_Max *smithy.Schema + +var _Limits = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Limits", +}, smithy.ShapeTypeList, 1) +var _Limits_member *smithy.Schema + +var Listener = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Listener", +}, smithy.ShapeTypeStructure, 9) +var Listener_ListenerArn *smithy.Schema + +var Listener_LoadBalancerArn *smithy.Schema + +var Listener_Port *smithy.Schema + +var Listener_Protocol *smithy.Schema + +var Listener_Certificates *smithy.Schema + +var Listener_SslPolicy *smithy.Schema + +var Listener_DefaultActions *smithy.Schema + +var Listener_AlpnPolicy *smithy.Schema + +var Listener_MutualAuthentication *smithy.Schema + +var _ListenerArn = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ListenerArn", +}, smithy.ShapeTypeString, 0) + +var _ListenerArns = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ListenerArns", +}, smithy.ShapeTypeList, 1) +var _ListenerArns_member *smithy.Schema + +var ListenerAttribute = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ListenerAttribute", +}, smithy.ShapeTypeStructure, 2) +var ListenerAttribute_Key *smithy.Schema + +var ListenerAttribute_Value *smithy.Schema + +var _ListenerAttributeKey = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ListenerAttributeKey", +}, smithy.ShapeTypeString, 0) + +var _ListenerAttributes = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ListenerAttributes", +}, smithy.ShapeTypeList, 1) +var _ListenerAttributes_member *smithy.Schema + +var _ListenerAttributeValue = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ListenerAttributeValue", +}, smithy.ShapeTypeString, 0) + +var ListenerNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ListenerNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "ListenerNotFound", + StatusCode: 400}) +var ListenerNotFoundException_Message *smithy.Schema + +var _Listeners = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Listeners", +}, smithy.ShapeTypeList, 1) +var _Listeners_member *smithy.Schema + +var _ListOfDescribeTargetHealthIncludeOptions = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ListOfDescribeTargetHealthIncludeOptions", +}, smithy.ShapeTypeList, 1) +var _ListOfDescribeTargetHealthIncludeOptions_member *smithy.Schema + +var _ListOfString = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ListOfString", +}, smithy.ShapeTypeList, 1) +var _ListOfString_member *smithy.Schema + +var LoadBalancer = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancer", +}, smithy.ShapeTypeStructure, 16) +var LoadBalancer_LoadBalancerArn *smithy.Schema + +var LoadBalancer_DNSName *smithy.Schema + +var LoadBalancer_CanonicalHostedZoneId *smithy.Schema + +var LoadBalancer_CreatedTime *smithy.Schema + +var LoadBalancer_LoadBalancerName *smithy.Schema + +var LoadBalancer_Scheme *smithy.Schema + +var LoadBalancer_VpcId *smithy.Schema + +var LoadBalancer_State *smithy.Schema + +var LoadBalancer_Type *smithy.Schema + +var LoadBalancer_AvailabilityZones *smithy.Schema + +var LoadBalancer_SecurityGroups *smithy.Schema + +var LoadBalancer_IpAddressType *smithy.Schema + +var LoadBalancer_CustomerOwnedIpv4Pool *smithy.Schema + +var LoadBalancer_EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic *smithy.Schema + +var LoadBalancer_EnablePrefixForIpv6SourceNat *smithy.Schema + +var LoadBalancer_IpamPools *smithy.Schema + +var LoadBalancerAddress = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerAddress", +}, smithy.ShapeTypeStructure, 4) +var LoadBalancerAddress_IpAddress *smithy.Schema + +var LoadBalancerAddress_AllocationId *smithy.Schema + +var LoadBalancerAddress_PrivateIPv4Address *smithy.Schema + +var LoadBalancerAddress_IPv6Address *smithy.Schema + +var _LoadBalancerAddresses = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerAddresses", +}, smithy.ShapeTypeList, 1) +var _LoadBalancerAddresses_member *smithy.Schema + +var _LoadBalancerArn = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerArn", +}, smithy.ShapeTypeString, 0) + +var _LoadBalancerArns = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerArns", +}, smithy.ShapeTypeList, 1) +var _LoadBalancerArns_member *smithy.Schema + +var LoadBalancerAttribute = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerAttribute", +}, smithy.ShapeTypeStructure, 2) +var LoadBalancerAttribute_Key *smithy.Schema + +var LoadBalancerAttribute_Value *smithy.Schema + +var _LoadBalancerAttributeKey = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerAttributeKey", +}, smithy.ShapeTypeString, 0) + +var _LoadBalancerAttributes = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerAttributes", +}, smithy.ShapeTypeList, 1) +var _LoadBalancerAttributes_member *smithy.Schema + +var _LoadBalancerAttributeValue = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerAttributeValue", +}, smithy.ShapeTypeString, 0) + +var _LoadBalancerName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerName", +}, smithy.ShapeTypeString, 0) + +var _LoadBalancerNames = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerNames", +}, smithy.ShapeTypeList, 1) +var _LoadBalancerNames_member *smithy.Schema + +var LoadBalancerNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "LoadBalancerNotFound", + StatusCode: 400}) +var LoadBalancerNotFoundException_Message *smithy.Schema + +var _LoadBalancers = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancers", +}, smithy.ShapeTypeList, 1) +var _LoadBalancers_member *smithy.Schema + +var LoadBalancerSchemeEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerSchemeEnum", +}, smithy.ShapeTypeEnum, 2) +var LoadBalancerSchemeEnum_INTERNET_FACING *smithy.Schema + +var LoadBalancerSchemeEnum_INTERNAL *smithy.Schema + +var LoadBalancerState = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerState", +}, smithy.ShapeTypeStructure, 2) +var LoadBalancerState_Code *smithy.Schema + +var LoadBalancerState_Reason *smithy.Schema + +var LoadBalancerStateEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerStateEnum", +}, smithy.ShapeTypeEnum, 4) +var LoadBalancerStateEnum_ACTIVE *smithy.Schema + +var LoadBalancerStateEnum_PROVISIONING *smithy.Schema + +var LoadBalancerStateEnum_ACTIVE_IMPAIRED *smithy.Schema + +var LoadBalancerStateEnum_FAILED *smithy.Schema + +var LoadBalancerTypeEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "LoadBalancerTypeEnum", +}, smithy.ShapeTypeEnum, 3) +var LoadBalancerTypeEnum_APPLICATION *smithy.Schema + +var LoadBalancerTypeEnum_NETWORK *smithy.Schema + +var LoadBalancerTypeEnum_GATEWAY *smithy.Schema + +var _Location = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Location", +}, smithy.ShapeTypeString, 0) + +var _Marker = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Marker", +}, smithy.ShapeTypeString, 0) + +var Matcher = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Matcher", +}, smithy.ShapeTypeStructure, 2) +var Matcher_HttpCode *smithy.Schema + +var Matcher_GrpcCode *smithy.Schema + +var _Max = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Max", +}, smithy.ShapeTypeString, 0) + +var MinimumLoadBalancerCapacity = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "MinimumLoadBalancerCapacity", +}, smithy.ShapeTypeStructure, 1) +var MinimumLoadBalancerCapacity_CapacityUnits *smithy.Schema + +var MitigationInEffectEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "MitigationInEffectEnum", +}, smithy.ShapeTypeEnum, 2) +var MitigationInEffectEnum_YES *smithy.Schema + +var MitigationInEffectEnum_NO *smithy.Schema + +var _Mode = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Mode", +}, smithy.ShapeTypeString, 0) + +var MutualAuthenticationAttributes = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "MutualAuthenticationAttributes", +}, smithy.ShapeTypeStructure, 6) +var MutualAuthenticationAttributes_Mode *smithy.Schema + +var MutualAuthenticationAttributes_TrustStoreArn *smithy.Schema + +var MutualAuthenticationAttributes_IgnoreClientCertificateExpiry *smithy.Schema + +var MutualAuthenticationAttributes_TrustStoreAssociationStatus *smithy.Schema + +var MutualAuthenticationAttributes_AdvertiseTrustStoreCaNames *smithy.Schema + +var MutualAuthenticationAttributes_ClientCertificateIdentityFilters *smithy.Schema + +var _Name = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Name", +}, smithy.ShapeTypeString, 0) + +var _NumberOfCaCertificates = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "NumberOfCaCertificates", +}, smithy.ShapeTypeInteger, 0) + +var _NumberOfRevokedEntries = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "NumberOfRevokedEntries", +}, smithy.ShapeTypeLong, 0) + +var OperationNotPermittedException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "OperationNotPermittedException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "OperationNotPermitted", + StatusCode: 400}) +var OperationNotPermittedException_Message *smithy.Schema + +var _OutpostId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "OutpostId", +}, smithy.ShapeTypeString, 0) + +var _PageSize = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "PageSize", +}, smithy.ShapeTypeInteger, 0) + +var _Path = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Path", +}, smithy.ShapeTypeString, 0) + +var PathPatternConditionConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "PathPatternConditionConfig", +}, smithy.ShapeTypeStructure, 2) +var PathPatternConditionConfig_Values *smithy.Schema + +var PathPatternConditionConfig_RegexValues *smithy.Schema + +var _Policy = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Policy", +}, smithy.ShapeTypeString, 0) + +var _Port = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Port", +}, smithy.ShapeTypeInteger, 0) + +var PriorityInUseException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "PriorityInUseException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "PriorityInUse", + StatusCode: 400}) +var PriorityInUseException_Message *smithy.Schema + +var PriorRequestNotCompleteException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "PriorRequestNotCompleteException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 429}, + &smithytraits.AWSQueryError{ErrorCode: "PriorRequestNotComplete", + StatusCode: 429}) +var PriorRequestNotCompleteException_Message *smithy.Schema + +var _PrivateIPv4Address = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "PrivateIPv4Address", +}, smithy.ShapeTypeString, 0) + +var ProtocolEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ProtocolEnum", +}, smithy.ShapeTypeEnum, 9) +var ProtocolEnum_HTTP *smithy.Schema + +var ProtocolEnum_HTTPS *smithy.Schema + +var ProtocolEnum_TCP *smithy.Schema + +var ProtocolEnum_TLS *smithy.Schema + +var ProtocolEnum_UDP *smithy.Schema + +var ProtocolEnum_TCP_UDP *smithy.Schema + +var ProtocolEnum_GENEVE *smithy.Schema + +var ProtocolEnum_QUIC *smithy.Schema + +var ProtocolEnum_TCP_QUIC *smithy.Schema + +var _ProtocolVersion = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ProtocolVersion", +}, smithy.ShapeTypeString, 0) + +var QueryStringConditionConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "QueryStringConditionConfig", +}, smithy.ShapeTypeStructure, 1) +var QueryStringConditionConfig_Values *smithy.Schema + +var QueryStringKeyValuePair = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "QueryStringKeyValuePair", +}, smithy.ShapeTypeStructure, 2) +var QueryStringKeyValuePair_Key *smithy.Schema + +var QueryStringKeyValuePair_Value *smithy.Schema + +var _QueryStringKeyValuePairList = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "QueryStringKeyValuePairList", +}, smithy.ShapeTypeList, 1) +var _QueryStringKeyValuePairList_member *smithy.Schema + +var _QuicServerId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "QuicServerId", +}, smithy.ShapeTypeString, 0) + +var RedirectActionConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RedirectActionConfig", +}, smithy.ShapeTypeStructure, 6) +var RedirectActionConfig_Protocol *smithy.Schema + +var RedirectActionConfig_Port *smithy.Schema + +var RedirectActionConfig_Host *smithy.Schema + +var RedirectActionConfig_Path *smithy.Schema + +var RedirectActionConfig_Query *smithy.Schema + +var RedirectActionConfig_StatusCode *smithy.Schema + +var _RedirectActionHost = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RedirectActionHost", +}, smithy.ShapeTypeString, 0) + +var _RedirectActionPath = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RedirectActionPath", +}, smithy.ShapeTypeString, 0) + +var _RedirectActionPort = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RedirectActionPort", +}, smithy.ShapeTypeString, 0) + +var _RedirectActionProtocol = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RedirectActionProtocol", +}, smithy.ShapeTypeString, 0) + +var _RedirectActionQuery = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RedirectActionQuery", +}, smithy.ShapeTypeString, 0) + +var RedirectActionStatusCodeEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RedirectActionStatusCodeEnum", +}, smithy.ShapeTypeEnum, 2) +var RedirectActionStatusCodeEnum_HTTP_301 *smithy.Schema + +var RedirectActionStatusCodeEnum_HTTP_302 *smithy.Schema + +var RemoveIpamPoolEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RemoveIpamPoolEnum", +}, smithy.ShapeTypeEnum, 1) +var RemoveIpamPoolEnum_ipv4 *smithy.Schema + +var _RemoveIpamPools = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RemoveIpamPools", +}, smithy.ShapeTypeList, 1) +var _RemoveIpamPools_member *smithy.Schema + +var _ResetCapacityReservation = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ResetCapacityReservation", +}, smithy.ShapeTypeBoolean, 0) + +var _ResetTransforms = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ResetTransforms", +}, smithy.ShapeTypeBoolean, 0) + +var _ResourceArn = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ResourceArn", +}, smithy.ShapeTypeString, 0) + +var _ResourceArns = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ResourceArns", +}, smithy.ShapeTypeList, 1) +var _ResourceArns_member *smithy.Schema + +var ResourceInUseException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ResourceInUseException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "ResourceInUse", + StatusCode: 400}) +var ResourceInUseException_Message *smithy.Schema + +var ResourceNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ResourceNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "ResourceNotFound", + StatusCode: 400}) +var ResourceNotFoundException_Message *smithy.Schema + +var RevocationContent = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RevocationContent", +}, smithy.ShapeTypeStructure, 4) +var RevocationContent_S3Bucket *smithy.Schema + +var RevocationContent_S3Key *smithy.Schema + +var RevocationContent_S3ObjectVersion *smithy.Schema + +var RevocationContent_RevocationType *smithy.Schema + +var RevocationContentNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RevocationContentNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "RevocationContentNotFound", + StatusCode: 400}) +var RevocationContentNotFoundException_Message *smithy.Schema + +var _RevocationContents = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RevocationContents", +}, smithy.ShapeTypeList, 1) +var _RevocationContents_member *smithy.Schema + +var _RevocationId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RevocationId", +}, smithy.ShapeTypeLong, 0) + +var RevocationIdNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RevocationIdNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "RevocationIdNotFound", + StatusCode: 400}) +var RevocationIdNotFoundException_Message *smithy.Schema + +var _RevocationIds = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RevocationIds", +}, smithy.ShapeTypeList, 1) +var _RevocationIds_member *smithy.Schema + +var RevocationType = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RevocationType", +}, smithy.ShapeTypeEnum, 1) +var RevocationType_CRL *smithy.Schema + +var RewriteConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RewriteConfig", +}, smithy.ShapeTypeStructure, 2) +var RewriteConfig_Regex *smithy.Schema + +var RewriteConfig_Replace *smithy.Schema + +var _RewriteConfigList = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RewriteConfigList", +}, smithy.ShapeTypeList, 1) +var _RewriteConfigList_member *smithy.Schema + +var Rule = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Rule", +}, smithy.ShapeTypeStructure, 6) +var Rule_RuleArn *smithy.Schema + +var Rule_Priority *smithy.Schema + +var Rule_Conditions *smithy.Schema + +var Rule_Actions *smithy.Schema + +var Rule_IsDefault *smithy.Schema + +var Rule_Transforms *smithy.Schema + +var _RuleArn = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RuleArn", +}, smithy.ShapeTypeString, 0) + +var _RuleArns = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RuleArns", +}, smithy.ShapeTypeList, 1) +var _RuleArns_member *smithy.Schema + +var RuleCondition = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RuleCondition", +}, smithy.ShapeTypeStructure, 9) +var RuleCondition_Field *smithy.Schema + +var RuleCondition_Values *smithy.Schema + +var RuleCondition_HostHeaderConfig *smithy.Schema + +var RuleCondition_PathPatternConfig *smithy.Schema + +var RuleCondition_HttpHeaderConfig *smithy.Schema + +var RuleCondition_QueryStringConfig *smithy.Schema + +var RuleCondition_HttpRequestMethodConfig *smithy.Schema + +var RuleCondition_SourceIpConfig *smithy.Schema + +var RuleCondition_RegexValues *smithy.Schema + +var _RuleConditionList = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RuleConditionList", +}, smithy.ShapeTypeList, 1) +var _RuleConditionList_member *smithy.Schema + +var RuleNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RuleNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "RuleNotFound", + StatusCode: 400}) +var RuleNotFoundException_Message *smithy.Schema + +var _RulePriority = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RulePriority", +}, smithy.ShapeTypeInteger, 0) + +var _RulePriorityList = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RulePriorityList", +}, smithy.ShapeTypeList, 1) +var _RulePriorityList_member *smithy.Schema + +var RulePriorityPair = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RulePriorityPair", +}, smithy.ShapeTypeStructure, 2) +var RulePriorityPair_RuleArn *smithy.Schema + +var RulePriorityPair_Priority *smithy.Schema + +var _Rules = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Rules", +}, smithy.ShapeTypeList, 1) +var _Rules_member *smithy.Schema + +var RuleTransform = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RuleTransform", +}, smithy.ShapeTypeStructure, 3) +var RuleTransform_Type *smithy.Schema + +var RuleTransform_HostHeaderRewriteConfig *smithy.Schema + +var RuleTransform_UrlRewriteConfig *smithy.Schema + +var _RuleTransformList = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RuleTransformList", +}, smithy.ShapeTypeList, 1) +var _RuleTransformList_member *smithy.Schema + +var _S3Bucket = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "S3Bucket", +}, smithy.ShapeTypeString, 0) + +var _S3Key = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "S3Key", +}, smithy.ShapeTypeString, 0) + +var _S3ObjectVersion = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "S3ObjectVersion", +}, smithy.ShapeTypeString, 0) + +var _SecurityGroupId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SecurityGroupId", +}, smithy.ShapeTypeString, 0) + +var _SecurityGroups = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SecurityGroups", +}, smithy.ShapeTypeList, 1) +var _SecurityGroups_member *smithy.Schema + +var SourceIpAddressTypeEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SourceIpAddressTypeEnum", +}, smithy.ShapeTypeEnum, 2) +var SourceIpAddressTypeEnum_IPV4 *smithy.Schema + +var SourceIpAddressTypeEnum_IPV6 *smithy.Schema + +var SourceIpConditionConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SourceIpConditionConfig", +}, smithy.ShapeTypeStructure, 2) +var SourceIpConditionConfig_Values *smithy.Schema + +var SourceIpConditionConfig_IpAddressType *smithy.Schema + +var _SourceNatIpv6Prefix = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SourceNatIpv6Prefix", +}, smithy.ShapeTypeString, 0) + +var _SourceNatIpv6Prefixes = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SourceNatIpv6Prefixes", +}, smithy.ShapeTypeList, 1) +var _SourceNatIpv6Prefixes_member *smithy.Schema + +var _SslPolicies = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SslPolicies", +}, smithy.ShapeTypeList, 1) +var _SslPolicies_member *smithy.Schema + +var SslPolicy = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SslPolicy", +}, smithy.ShapeTypeStructure, 4) +var SslPolicy_SslProtocols *smithy.Schema + +var SslPolicy_Ciphers *smithy.Schema + +var SslPolicy_Name *smithy.Schema + +var SslPolicy_SupportedLoadBalancerTypes *smithy.Schema + +var _SslPolicyName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SslPolicyName", +}, smithy.ShapeTypeString, 0) + +var _SslPolicyNames = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SslPolicyNames", +}, smithy.ShapeTypeList, 1) +var _SslPolicyNames_member *smithy.Schema + +var SSLPolicyNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SSLPolicyNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "SSLPolicyNotFound", + StatusCode: 400}) +var SSLPolicyNotFoundException_Message *smithy.Schema + +var _SslProtocol = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SslProtocol", +}, smithy.ShapeTypeString, 0) + +var _SslProtocols = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SslProtocols", +}, smithy.ShapeTypeList, 1) +var _SslProtocols_member *smithy.Schema + +var _StateReason = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "StateReason", +}, smithy.ShapeTypeString, 0) + +var _String = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "String", +}, smithy.ShapeTypeString, 0) + +var _StringValue = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "StringValue", +}, smithy.ShapeTypeString, 0) + +var _SubnetId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SubnetId", +}, smithy.ShapeTypeString, 0) + +var SubnetMapping = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SubnetMapping", +}, smithy.ShapeTypeStructure, 5) +var SubnetMapping_SubnetId *smithy.Schema + +var SubnetMapping_AllocationId *smithy.Schema + +var SubnetMapping_PrivateIPv4Address *smithy.Schema + +var SubnetMapping_IPv6Address *smithy.Schema + +var SubnetMapping_SourceNatIpv6Prefix *smithy.Schema + +var _SubnetMappings = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SubnetMappings", +}, smithy.ShapeTypeList, 1) +var _SubnetMappings_member *smithy.Schema + +var SubnetNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SubnetNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "SubnetNotFound", + StatusCode: 400}) +var SubnetNotFoundException_Message *smithy.Schema + +var _Subnets = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Subnets", +}, smithy.ShapeTypeList, 1) +var _Subnets_member *smithy.Schema + +var Tag = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "Tag", +}, smithy.ShapeTypeStructure, 2) +var Tag_Key *smithy.Schema + +var Tag_Value *smithy.Schema + +var TagDescription = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TagDescription", +}, smithy.ShapeTypeStructure, 2) +var TagDescription_ResourceArn *smithy.Schema + +var TagDescription_Tags *smithy.Schema + +var _TagDescriptions = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TagDescriptions", +}, smithy.ShapeTypeList, 1) +var _TagDescriptions_member *smithy.Schema + +var _TagKey = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TagKey", +}, smithy.ShapeTypeString, 0) + +var _TagKeys = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TagKeys", +}, smithy.ShapeTypeList, 1) +var _TagKeys_member *smithy.Schema + +var _TagList = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TagList", +}, smithy.ShapeTypeList, 1) +var _TagList_member *smithy.Schema + +var _TagValue = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TagValue", +}, smithy.ShapeTypeString, 0) + +var TargetAdministrativeOverrideReasonEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetAdministrativeOverrideReasonEnum", +}, smithy.ShapeTypeEnum, 4) +var TargetAdministrativeOverrideReasonEnum_INTERNAL_ERROR *smithy.Schema + +var TargetAdministrativeOverrideReasonEnum_NO_OVERRIDE_ENGAGED *smithy.Schema + +var TargetAdministrativeOverrideReasonEnum_ZONAL_SHIFT_ENGAGED *smithy.Schema + +var TargetAdministrativeOverrideReasonEnum_ZONAL_SHIFT_DELEGATED_TO_DNS *smithy.Schema + +var TargetAdministrativeOverrideStateEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetAdministrativeOverrideStateEnum", +}, smithy.ShapeTypeEnum, 4) +var TargetAdministrativeOverrideStateEnum_UNKNOWN *smithy.Schema + +var TargetAdministrativeOverrideStateEnum_NO_OVERRIDE *smithy.Schema + +var TargetAdministrativeOverrideStateEnum_ZONAL_SHIFT_ACTIVE *smithy.Schema + +var TargetAdministrativeOverrideStateEnum_ZONAL_SHIFT_DELEGATED_TO_DNS *smithy.Schema + +var _TargetControlPort = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetControlPort", +}, smithy.ShapeTypeInteger, 0) + +var TargetDescription = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetDescription", +}, smithy.ShapeTypeStructure, 4) +var TargetDescription_Id *smithy.Schema + +var TargetDescription_Port *smithy.Schema + +var TargetDescription_AvailabilityZone *smithy.Schema + +var TargetDescription_QuicServerId *smithy.Schema + +var _TargetDescriptions = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetDescriptions", +}, smithy.ShapeTypeList, 1) +var _TargetDescriptions_member *smithy.Schema + +var TargetGroup = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroup", +}, smithy.ShapeTypeStructure, 19) +var TargetGroup_TargetGroupArn *smithy.Schema + +var TargetGroup_TargetGroupName *smithy.Schema + +var TargetGroup_Protocol *smithy.Schema + +var TargetGroup_Port *smithy.Schema + +var TargetGroup_VpcId *smithy.Schema + +var TargetGroup_HealthCheckProtocol *smithy.Schema + +var TargetGroup_HealthCheckPort *smithy.Schema + +var TargetGroup_HealthCheckEnabled *smithy.Schema + +var TargetGroup_HealthCheckIntervalSeconds *smithy.Schema + +var TargetGroup_HealthCheckTimeoutSeconds *smithy.Schema + +var TargetGroup_HealthyThresholdCount *smithy.Schema + +var TargetGroup_UnhealthyThresholdCount *smithy.Schema + +var TargetGroup_HealthCheckPath *smithy.Schema + +var TargetGroup_Matcher *smithy.Schema + +var TargetGroup_LoadBalancerArns *smithy.Schema + +var TargetGroup_TargetType *smithy.Schema + +var TargetGroup_ProtocolVersion *smithy.Schema + +var TargetGroup_IpAddressType *smithy.Schema + +var TargetGroup_TargetControlPort *smithy.Schema + +var _TargetGroupArn = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupArn", +}, smithy.ShapeTypeString, 0) + +var _TargetGroupArns = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupArns", +}, smithy.ShapeTypeList, 1) +var _TargetGroupArns_member *smithy.Schema + +var TargetGroupAssociationLimitException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupAssociationLimitException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TargetGroupAssociationLimit", + StatusCode: 400}) +var TargetGroupAssociationLimitException_Message *smithy.Schema + +var TargetGroupAttribute = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupAttribute", +}, smithy.ShapeTypeStructure, 2) +var TargetGroupAttribute_Key *smithy.Schema + +var TargetGroupAttribute_Value *smithy.Schema + +var _TargetGroupAttributeKey = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupAttributeKey", +}, smithy.ShapeTypeString, 0) + +var _TargetGroupAttributes = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupAttributes", +}, smithy.ShapeTypeList, 1) +var _TargetGroupAttributes_member *smithy.Schema + +var _TargetGroupAttributeValue = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupAttributeValue", +}, smithy.ShapeTypeString, 0) + +var TargetGroupIpAddressTypeEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupIpAddressTypeEnum", +}, smithy.ShapeTypeEnum, 2) +var TargetGroupIpAddressTypeEnum_IPV4 *smithy.Schema + +var TargetGroupIpAddressTypeEnum_IPV6 *smithy.Schema + +var _TargetGroupList = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupList", +}, smithy.ShapeTypeList, 1) +var _TargetGroupList_member *smithy.Schema + +var _TargetGroupName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupName", +}, smithy.ShapeTypeString, 0) + +var _TargetGroupNames = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupNames", +}, smithy.ShapeTypeList, 1) +var _TargetGroupNames_member *smithy.Schema + +var TargetGroupNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TargetGroupNotFound", + StatusCode: 400}) +var TargetGroupNotFoundException_Message *smithy.Schema + +var _TargetGroups = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroups", +}, smithy.ShapeTypeList, 1) +var _TargetGroups_member *smithy.Schema + +var TargetGroupStickinessConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupStickinessConfig", +}, smithy.ShapeTypeStructure, 2) +var TargetGroupStickinessConfig_Enabled *smithy.Schema + +var TargetGroupStickinessConfig_DurationSeconds *smithy.Schema + +var _TargetGroupStickinessDurationSeconds = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupStickinessDurationSeconds", +}, smithy.ShapeTypeInteger, 0) + +var _TargetGroupStickinessEnabled = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupStickinessEnabled", +}, smithy.ShapeTypeBoolean, 0) + +var TargetGroupTuple = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupTuple", +}, smithy.ShapeTypeStructure, 2) +var TargetGroupTuple_TargetGroupArn *smithy.Schema + +var TargetGroupTuple_Weight *smithy.Schema + +var _TargetGroupWeight = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetGroupWeight", +}, smithy.ShapeTypeInteger, 0) + +var TargetHealth = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetHealth", +}, smithy.ShapeTypeStructure, 3) +var TargetHealth_State *smithy.Schema + +var TargetHealth_Reason *smithy.Schema + +var TargetHealth_Description *smithy.Schema + +var TargetHealthDescription = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetHealthDescription", +}, smithy.ShapeTypeStructure, 5) +var TargetHealthDescription_Target *smithy.Schema + +var TargetHealthDescription_HealthCheckPort *smithy.Schema + +var TargetHealthDescription_TargetHealth *smithy.Schema + +var TargetHealthDescription_AnomalyDetection *smithy.Schema + +var TargetHealthDescription_AdministrativeOverride *smithy.Schema + +var _TargetHealthDescriptions = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetHealthDescriptions", +}, smithy.ShapeTypeList, 1) +var _TargetHealthDescriptions_member *smithy.Schema + +var TargetHealthReasonEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetHealthReasonEnum", +}, smithy.ShapeTypeEnum, 12) +var TargetHealthReasonEnum_REGISTRATION_IN_PROGRESS *smithy.Schema + +var TargetHealthReasonEnum_INITIAL_HEALTH_CHECKING *smithy.Schema + +var TargetHealthReasonEnum_RESPONSE_CODE_MISMATCH *smithy.Schema + +var TargetHealthReasonEnum_TIMEOUT *smithy.Schema + +var TargetHealthReasonEnum_FAILED_HEALTH_CHECKS *smithy.Schema + +var TargetHealthReasonEnum_NOT_REGISTERED *smithy.Schema + +var TargetHealthReasonEnum_NOT_IN_USE *smithy.Schema + +var TargetHealthReasonEnum_DEREGISTRATION_IN_PROGRESS *smithy.Schema + +var TargetHealthReasonEnum_INVALID_STATE *smithy.Schema + +var TargetHealthReasonEnum_IP_UNUSABLE *smithy.Schema + +var TargetHealthReasonEnum_HEALTH_CHECK_DISABLED *smithy.Schema + +var TargetHealthReasonEnum_INTERNAL_ERROR *smithy.Schema + +var TargetHealthStateEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetHealthStateEnum", +}, smithy.ShapeTypeEnum, 7) +var TargetHealthStateEnum_INITIAL *smithy.Schema + +var TargetHealthStateEnum_HEALTHY *smithy.Schema + +var TargetHealthStateEnum_UNHEALTHY *smithy.Schema + +var TargetHealthStateEnum_UNHEALTHY_DRAINING *smithy.Schema + +var TargetHealthStateEnum_UNUSED *smithy.Schema + +var TargetHealthStateEnum_DRAINING *smithy.Schema + +var TargetHealthStateEnum_UNAVAILABLE *smithy.Schema + +var _TargetId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetId", +}, smithy.ShapeTypeString, 0) + +var TargetTypeEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TargetTypeEnum", +}, smithy.ShapeTypeEnum, 4) +var TargetTypeEnum_INSTANCE *smithy.Schema + +var TargetTypeEnum_IP *smithy.Schema + +var TargetTypeEnum_LAMBDA *smithy.Schema + +var TargetTypeEnum_ALB *smithy.Schema + +var TooManyActionsException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TooManyActionsException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TooManyActions", + StatusCode: 400}) +var TooManyActionsException_Message *smithy.Schema + +var TooManyCertificatesException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TooManyCertificatesException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TooManyCertificates", + StatusCode: 400}) +var TooManyCertificatesException_Message *smithy.Schema + +var TooManyListenersException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TooManyListenersException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TooManyListeners", + StatusCode: 400}) +var TooManyListenersException_Message *smithy.Schema + +var TooManyLoadBalancersException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TooManyLoadBalancersException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TooManyLoadBalancers", + StatusCode: 400}) +var TooManyLoadBalancersException_Message *smithy.Schema + +var TooManyRegistrationsForTargetIdException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TooManyRegistrationsForTargetIdException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TooManyRegistrationsForTargetId", + StatusCode: 400}) +var TooManyRegistrationsForTargetIdException_Message *smithy.Schema + +var TooManyRulesException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TooManyRulesException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TooManyRules", + StatusCode: 400}) +var TooManyRulesException_Message *smithy.Schema + +var TooManyTagsException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TooManyTagsException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TooManyTags", + StatusCode: 400}) +var TooManyTagsException_Message *smithy.Schema + +var TooManyTargetGroupsException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TooManyTargetGroupsException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TooManyTargetGroups", + StatusCode: 400}) +var TooManyTargetGroupsException_Message *smithy.Schema + +var TooManyTargetsException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TooManyTargetsException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TooManyTargets", + StatusCode: 400}) +var TooManyTargetsException_Message *smithy.Schema + +var TooManyTrustStoreRevocationEntriesException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TooManyTrustStoreRevocationEntriesException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TooManyTrustStoreRevocationEntries", + StatusCode: 400}) +var TooManyTrustStoreRevocationEntriesException_Message *smithy.Schema + +var TooManyTrustStoresException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TooManyTrustStoresException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TooManyTrustStores", + StatusCode: 400}) +var TooManyTrustStoresException_Message *smithy.Schema + +var TooManyUniqueTargetGroupsPerLoadBalancerException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TooManyUniqueTargetGroupsPerLoadBalancerException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TooManyUniqueTargetGroupsPerLoadBalancer", + StatusCode: 400}) +var TooManyUniqueTargetGroupsPerLoadBalancerException_Message *smithy.Schema + +var _TotalRevokedEntries = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TotalRevokedEntries", +}, smithy.ShapeTypeLong, 0) + +var TransformTypeEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TransformTypeEnum", +}, smithy.ShapeTypeEnum, 2) +var TransformTypeEnum_HOST_HEADER_REWRITE *smithy.Schema + +var TransformTypeEnum_URL_REWRITE *smithy.Schema + +var TrustStore = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStore", +}, smithy.ShapeTypeStructure, 5) +var TrustStore_Name *smithy.Schema + +var TrustStore_TrustStoreArn *smithy.Schema + +var TrustStore_Status *smithy.Schema + +var TrustStore_NumberOfCaCertificates *smithy.Schema + +var TrustStore_TotalRevokedEntries *smithy.Schema + +var _TrustStoreArn = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreArn", +}, smithy.ShapeTypeString, 0) + +var _TrustStoreArns = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreArns", +}, smithy.ShapeTypeList, 1) +var _TrustStoreArns_member *smithy.Schema + +var TrustStoreAssociation = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreAssociation", +}, smithy.ShapeTypeStructure, 1) +var TrustStoreAssociation_ResourceArn *smithy.Schema + +var TrustStoreAssociationNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreAssociationNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "AssociationNotFound", + StatusCode: 400}) +var TrustStoreAssociationNotFoundException_Message *smithy.Schema + +var _TrustStoreAssociationResourceArn = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreAssociationResourceArn", +}, smithy.ShapeTypeString, 0) + +var _TrustStoreAssociations = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreAssociations", +}, smithy.ShapeTypeList, 1) +var _TrustStoreAssociations_member *smithy.Schema + +var TrustStoreAssociationStatusEnum = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreAssociationStatusEnum", +}, smithy.ShapeTypeEnum, 2) +var TrustStoreAssociationStatusEnum_ACTIVE *smithy.Schema + +var TrustStoreAssociationStatusEnum_REMOVED *smithy.Schema + +var TrustStoreInUseException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreInUseException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TrustStoreInUse", + StatusCode: 400}) +var TrustStoreInUseException_Message *smithy.Schema + +var _TrustStoreName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreName", +}, smithy.ShapeTypeString, 0) + +var _TrustStoreNames = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreNames", +}, smithy.ShapeTypeList, 1) +var _TrustStoreNames_member *smithy.Schema + +var TrustStoreNotFoundException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreNotFoundException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TrustStoreNotFound", + StatusCode: 400}) +var TrustStoreNotFoundException_Message *smithy.Schema + +var TrustStoreNotReadyException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreNotReadyException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "TrustStoreNotReady", + StatusCode: 400}) +var TrustStoreNotReadyException_Message *smithy.Schema + +var TrustStoreRevocation = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreRevocation", +}, smithy.ShapeTypeStructure, 4) +var TrustStoreRevocation_TrustStoreArn *smithy.Schema + +var TrustStoreRevocation_RevocationId *smithy.Schema + +var TrustStoreRevocation_RevocationType *smithy.Schema + +var TrustStoreRevocation_NumberOfRevokedEntries *smithy.Schema + +var _TrustStoreRevocations = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreRevocations", +}, smithy.ShapeTypeList, 1) +var _TrustStoreRevocations_member *smithy.Schema + +var _TrustStores = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStores", +}, smithy.ShapeTypeList, 1) +var _TrustStores_member *smithy.Schema + +var TrustStoreStatus = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "TrustStoreStatus", +}, smithy.ShapeTypeEnum, 2) +var TrustStoreStatus_ACTIVE *smithy.Schema + +var TrustStoreStatus_CREATING *smithy.Schema + +var UnsupportedProtocolException = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "UnsupportedProtocolException", +}, smithy.ShapeTypeStructure, 1, &smithytraits.Error{Type: "client"}, + &smithytraits.HTTPError{Code: 400}, + &smithytraits.AWSQueryError{ErrorCode: "UnsupportedProtocol", + StatusCode: 400}) +var UnsupportedProtocolException_Message *smithy.Schema + +var UrlRewriteConfig = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "UrlRewriteConfig", +}, smithy.ShapeTypeStructure, 1) +var UrlRewriteConfig_Rewrites *smithy.Schema + +var _VpcId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "VpcId", +}, smithy.ShapeTypeString, 0) + +var ZonalCapacityReservationState = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ZonalCapacityReservationState", +}, smithy.ShapeTypeStructure, 3) +var ZonalCapacityReservationState_State *smithy.Schema + +var ZonalCapacityReservationState_AvailabilityZone *smithy.Schema + +var ZonalCapacityReservationState_EffectiveCapacityUnits *smithy.Schema + +var _ZonalCapacityReservationStates = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ZonalCapacityReservationStates", +}, smithy.ShapeTypeList, 1) +var _ZonalCapacityReservationStates_member *smithy.Schema + +var _ZoneName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ZoneName", +}, smithy.ShapeTypeString, 0) + +var AddListenerCertificatesInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AddListenerCertificatesInput", +}, smithy.ShapeTypeStructure, 2) +var AddListenerCertificatesInput_ListenerArn *smithy.Schema + +var AddListenerCertificatesInput_Certificates *smithy.Schema + +var AddListenerCertificatesOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AddListenerCertificatesOutput", +}, smithy.ShapeTypeStructure, 1) +var AddListenerCertificatesOutput_Certificates *smithy.Schema + +var AddTagsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AddTagsInput", +}, smithy.ShapeTypeStructure, 2) +var AddTagsInput_ResourceArns *smithy.Schema + +var AddTagsInput_Tags *smithy.Schema + +var AddTagsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AddTagsOutput", +}, smithy.ShapeTypeStructure, 0) + +var AddTrustStoreRevocationsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AddTrustStoreRevocationsInput", +}, smithy.ShapeTypeStructure, 2) +var AddTrustStoreRevocationsInput_TrustStoreArn *smithy.Schema + +var AddTrustStoreRevocationsInput_RevocationContents *smithy.Schema + +var AddTrustStoreRevocationsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "AddTrustStoreRevocationsOutput", +}, smithy.ShapeTypeStructure, 1) +var AddTrustStoreRevocationsOutput_TrustStoreRevocations *smithy.Schema + +var CreateListenerInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateListenerInput", +}, smithy.ShapeTypeStructure, 9) +var CreateListenerInput_LoadBalancerArn *smithy.Schema + +var CreateListenerInput_Protocol *smithy.Schema + +var CreateListenerInput_Port *smithy.Schema + +var CreateListenerInput_SslPolicy *smithy.Schema + +var CreateListenerInput_Certificates *smithy.Schema + +var CreateListenerInput_DefaultActions *smithy.Schema + +var CreateListenerInput_AlpnPolicy *smithy.Schema + +var CreateListenerInput_Tags *smithy.Schema + +var CreateListenerInput_MutualAuthentication *smithy.Schema + +var CreateListenerOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateListenerOutput", +}, smithy.ShapeTypeStructure, 1) +var CreateListenerOutput_Listeners *smithy.Schema + +var CreateLoadBalancerInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateLoadBalancerInput", +}, smithy.ShapeTypeStructure, 11) +var CreateLoadBalancerInput_Name *smithy.Schema + +var CreateLoadBalancerInput_Subnets *smithy.Schema + +var CreateLoadBalancerInput_SubnetMappings *smithy.Schema + +var CreateLoadBalancerInput_SecurityGroups *smithy.Schema + +var CreateLoadBalancerInput_Scheme *smithy.Schema + +var CreateLoadBalancerInput_Tags *smithy.Schema + +var CreateLoadBalancerInput_Type *smithy.Schema + +var CreateLoadBalancerInput_IpAddressType *smithy.Schema + +var CreateLoadBalancerInput_CustomerOwnedIpv4Pool *smithy.Schema + +var CreateLoadBalancerInput_EnablePrefixForIpv6SourceNat *smithy.Schema + +var CreateLoadBalancerInput_IpamPools *smithy.Schema + +var CreateLoadBalancerOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateLoadBalancerOutput", +}, smithy.ShapeTypeStructure, 1) +var CreateLoadBalancerOutput_LoadBalancers *smithy.Schema + +var CreateRuleInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateRuleInput", +}, smithy.ShapeTypeStructure, 6) +var CreateRuleInput_ListenerArn *smithy.Schema + +var CreateRuleInput_Conditions *smithy.Schema + +var CreateRuleInput_Priority *smithy.Schema + +var CreateRuleInput_Actions *smithy.Schema + +var CreateRuleInput_Tags *smithy.Schema + +var CreateRuleInput_Transforms *smithy.Schema + +var CreateRuleOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateRuleOutput", +}, smithy.ShapeTypeStructure, 1) +var CreateRuleOutput_Rules *smithy.Schema + +var CreateTargetGroupInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateTargetGroupInput", +}, smithy.ShapeTypeStructure, 18) +var CreateTargetGroupInput_Name *smithy.Schema + +var CreateTargetGroupInput_Protocol *smithy.Schema + +var CreateTargetGroupInput_ProtocolVersion *smithy.Schema + +var CreateTargetGroupInput_Port *smithy.Schema + +var CreateTargetGroupInput_VpcId *smithy.Schema + +var CreateTargetGroupInput_HealthCheckProtocol *smithy.Schema + +var CreateTargetGroupInput_HealthCheckPort *smithy.Schema + +var CreateTargetGroupInput_HealthCheckEnabled *smithy.Schema + +var CreateTargetGroupInput_HealthCheckPath *smithy.Schema + +var CreateTargetGroupInput_HealthCheckIntervalSeconds *smithy.Schema + +var CreateTargetGroupInput_HealthCheckTimeoutSeconds *smithy.Schema + +var CreateTargetGroupInput_HealthyThresholdCount *smithy.Schema + +var CreateTargetGroupInput_UnhealthyThresholdCount *smithy.Schema + +var CreateTargetGroupInput_Matcher *smithy.Schema + +var CreateTargetGroupInput_TargetType *smithy.Schema + +var CreateTargetGroupInput_Tags *smithy.Schema + +var CreateTargetGroupInput_IpAddressType *smithy.Schema + +var CreateTargetGroupInput_TargetControlPort *smithy.Schema + +var CreateTargetGroupOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateTargetGroupOutput", +}, smithy.ShapeTypeStructure, 1) +var CreateTargetGroupOutput_TargetGroups *smithy.Schema + +var CreateTrustStoreInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateTrustStoreInput", +}, smithy.ShapeTypeStructure, 5) +var CreateTrustStoreInput_Name *smithy.Schema + +var CreateTrustStoreInput_CaCertificatesBundleS3Bucket *smithy.Schema + +var CreateTrustStoreInput_CaCertificatesBundleS3Key *smithy.Schema + +var CreateTrustStoreInput_CaCertificatesBundleS3ObjectVersion *smithy.Schema + +var CreateTrustStoreInput_Tags *smithy.Schema + +var CreateTrustStoreOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "CreateTrustStoreOutput", +}, smithy.ShapeTypeStructure, 1) +var CreateTrustStoreOutput_TrustStores *smithy.Schema + +var DeleteListenerInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteListenerInput", +}, smithy.ShapeTypeStructure, 1) +var DeleteListenerInput_ListenerArn *smithy.Schema + +var DeleteListenerOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteListenerOutput", +}, smithy.ShapeTypeStructure, 0) + +var DeleteLoadBalancerInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteLoadBalancerInput", +}, smithy.ShapeTypeStructure, 1) +var DeleteLoadBalancerInput_LoadBalancerArn *smithy.Schema + +var DeleteLoadBalancerOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteLoadBalancerOutput", +}, smithy.ShapeTypeStructure, 0) + +var DeleteRuleInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteRuleInput", +}, smithy.ShapeTypeStructure, 1) +var DeleteRuleInput_RuleArn *smithy.Schema + +var DeleteRuleOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteRuleOutput", +}, smithy.ShapeTypeStructure, 0) + +var DeleteSharedTrustStoreAssociationInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteSharedTrustStoreAssociationInput", +}, smithy.ShapeTypeStructure, 2) +var DeleteSharedTrustStoreAssociationInput_TrustStoreArn *smithy.Schema + +var DeleteSharedTrustStoreAssociationInput_ResourceArn *smithy.Schema + +var DeleteSharedTrustStoreAssociationOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteSharedTrustStoreAssociationOutput", +}, smithy.ShapeTypeStructure, 0) + +var DeleteTargetGroupInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteTargetGroupInput", +}, smithy.ShapeTypeStructure, 1) +var DeleteTargetGroupInput_TargetGroupArn *smithy.Schema + +var DeleteTargetGroupOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteTargetGroupOutput", +}, smithy.ShapeTypeStructure, 0) + +var DeleteTrustStoreInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteTrustStoreInput", +}, smithy.ShapeTypeStructure, 1) +var DeleteTrustStoreInput_TrustStoreArn *smithy.Schema + +var DeleteTrustStoreOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeleteTrustStoreOutput", +}, smithy.ShapeTypeStructure, 0) + +var DeregisterTargetsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeregisterTargetsInput", +}, smithy.ShapeTypeStructure, 2) +var DeregisterTargetsInput_TargetGroupArn *smithy.Schema + +var DeregisterTargetsInput_Targets *smithy.Schema + +var DeregisterTargetsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DeregisterTargetsOutput", +}, smithy.ShapeTypeStructure, 0) + +var DescribeAccountLimitsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeAccountLimitsInput", +}, smithy.ShapeTypeStructure, 2) +var DescribeAccountLimitsInput_Marker *smithy.Schema + +var DescribeAccountLimitsInput_PageSize *smithy.Schema + +var DescribeAccountLimitsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeAccountLimitsOutput", +}, smithy.ShapeTypeStructure, 2) +var DescribeAccountLimitsOutput_Limits *smithy.Schema + +var DescribeAccountLimitsOutput_NextMarker *smithy.Schema + +var DescribeCapacityReservationInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeCapacityReservationInput", +}, smithy.ShapeTypeStructure, 1) +var DescribeCapacityReservationInput_LoadBalancerArn *smithy.Schema + +var DescribeCapacityReservationOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeCapacityReservationOutput", +}, smithy.ShapeTypeStructure, 4) +var DescribeCapacityReservationOutput_LastModifiedTime *smithy.Schema + +var DescribeCapacityReservationOutput_DecreaseRequestsRemaining *smithy.Schema + +var DescribeCapacityReservationOutput_MinimumLoadBalancerCapacity *smithy.Schema + +var DescribeCapacityReservationOutput_CapacityReservationState *smithy.Schema + +var DescribeListenerAttributesInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeListenerAttributesInput", +}, smithy.ShapeTypeStructure, 1) +var DescribeListenerAttributesInput_ListenerArn *smithy.Schema + +var DescribeListenerAttributesOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeListenerAttributesOutput", +}, smithy.ShapeTypeStructure, 1) +var DescribeListenerAttributesOutput_Attributes *smithy.Schema + +var DescribeListenerCertificatesInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeListenerCertificatesInput", +}, smithy.ShapeTypeStructure, 3) +var DescribeListenerCertificatesInput_ListenerArn *smithy.Schema + +var DescribeListenerCertificatesInput_Marker *smithy.Schema + +var DescribeListenerCertificatesInput_PageSize *smithy.Schema + +var DescribeListenerCertificatesOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeListenerCertificatesOutput", +}, smithy.ShapeTypeStructure, 2) +var DescribeListenerCertificatesOutput_Certificates *smithy.Schema + +var DescribeListenerCertificatesOutput_NextMarker *smithy.Schema + +var DescribeListenersInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeListenersInput", +}, smithy.ShapeTypeStructure, 4) +var DescribeListenersInput_LoadBalancerArn *smithy.Schema + +var DescribeListenersInput_ListenerArns *smithy.Schema + +var DescribeListenersInput_Marker *smithy.Schema + +var DescribeListenersInput_PageSize *smithy.Schema + +var DescribeListenersOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeListenersOutput", +}, smithy.ShapeTypeStructure, 2) +var DescribeListenersOutput_Listeners *smithy.Schema + +var DescribeListenersOutput_NextMarker *smithy.Schema + +var DescribeLoadBalancerAttributesInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeLoadBalancerAttributesInput", +}, smithy.ShapeTypeStructure, 1) +var DescribeLoadBalancerAttributesInput_LoadBalancerArn *smithy.Schema + +var DescribeLoadBalancerAttributesOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeLoadBalancerAttributesOutput", +}, smithy.ShapeTypeStructure, 1) +var DescribeLoadBalancerAttributesOutput_Attributes *smithy.Schema + +var DescribeLoadBalancersInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeLoadBalancersInput", +}, smithy.ShapeTypeStructure, 4) +var DescribeLoadBalancersInput_LoadBalancerArns *smithy.Schema + +var DescribeLoadBalancersInput_Names *smithy.Schema + +var DescribeLoadBalancersInput_Marker *smithy.Schema + +var DescribeLoadBalancersInput_PageSize *smithy.Schema + +var DescribeLoadBalancersOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeLoadBalancersOutput", +}, smithy.ShapeTypeStructure, 2) +var DescribeLoadBalancersOutput_LoadBalancers *smithy.Schema + +var DescribeLoadBalancersOutput_NextMarker *smithy.Schema + +var DescribeRulesInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeRulesInput", +}, smithy.ShapeTypeStructure, 4) +var DescribeRulesInput_ListenerArn *smithy.Schema + +var DescribeRulesInput_RuleArns *smithy.Schema + +var DescribeRulesInput_Marker *smithy.Schema + +var DescribeRulesInput_PageSize *smithy.Schema + +var DescribeRulesOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeRulesOutput", +}, smithy.ShapeTypeStructure, 2) +var DescribeRulesOutput_Rules *smithy.Schema + +var DescribeRulesOutput_NextMarker *smithy.Schema + +var DescribeSSLPoliciesInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeSSLPoliciesInput", +}, smithy.ShapeTypeStructure, 4) +var DescribeSSLPoliciesInput_Names *smithy.Schema + +var DescribeSSLPoliciesInput_Marker *smithy.Schema + +var DescribeSSLPoliciesInput_PageSize *smithy.Schema + +var DescribeSSLPoliciesInput_LoadBalancerType *smithy.Schema + +var DescribeSSLPoliciesOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeSSLPoliciesOutput", +}, smithy.ShapeTypeStructure, 2) +var DescribeSSLPoliciesOutput_SslPolicies *smithy.Schema + +var DescribeSSLPoliciesOutput_NextMarker *smithy.Schema + +var DescribeTagsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTagsInput", +}, smithy.ShapeTypeStructure, 1) +var DescribeTagsInput_ResourceArns *smithy.Schema + +var DescribeTagsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTagsOutput", +}, smithy.ShapeTypeStructure, 1) +var DescribeTagsOutput_TagDescriptions *smithy.Schema + +var DescribeTargetGroupAttributesInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTargetGroupAttributesInput", +}, smithy.ShapeTypeStructure, 1) +var DescribeTargetGroupAttributesInput_TargetGroupArn *smithy.Schema + +var DescribeTargetGroupAttributesOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTargetGroupAttributesOutput", +}, smithy.ShapeTypeStructure, 1) +var DescribeTargetGroupAttributesOutput_Attributes *smithy.Schema + +var DescribeTargetGroupsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTargetGroupsInput", +}, smithy.ShapeTypeStructure, 5) +var DescribeTargetGroupsInput_LoadBalancerArn *smithy.Schema + +var DescribeTargetGroupsInput_TargetGroupArns *smithy.Schema + +var DescribeTargetGroupsInput_Names *smithy.Schema + +var DescribeTargetGroupsInput_Marker *smithy.Schema + +var DescribeTargetGroupsInput_PageSize *smithy.Schema + +var DescribeTargetGroupsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTargetGroupsOutput", +}, smithy.ShapeTypeStructure, 2) +var DescribeTargetGroupsOutput_TargetGroups *smithy.Schema + +var DescribeTargetGroupsOutput_NextMarker *smithy.Schema + +var DescribeTargetHealthInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTargetHealthInput", +}, smithy.ShapeTypeStructure, 3) +var DescribeTargetHealthInput_TargetGroupArn *smithy.Schema + +var DescribeTargetHealthInput_Targets *smithy.Schema + +var DescribeTargetHealthInput_Include *smithy.Schema + +var DescribeTargetHealthOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTargetHealthOutput", +}, smithy.ShapeTypeStructure, 1) +var DescribeTargetHealthOutput_TargetHealthDescriptions *smithy.Schema + +var DescribeTrustStoreAssociationsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTrustStoreAssociationsInput", +}, smithy.ShapeTypeStructure, 3) +var DescribeTrustStoreAssociationsInput_TrustStoreArn *smithy.Schema + +var DescribeTrustStoreAssociationsInput_Marker *smithy.Schema + +var DescribeTrustStoreAssociationsInput_PageSize *smithy.Schema + +var DescribeTrustStoreAssociationsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTrustStoreAssociationsOutput", +}, smithy.ShapeTypeStructure, 2) +var DescribeTrustStoreAssociationsOutput_TrustStoreAssociations *smithy.Schema + +var DescribeTrustStoreAssociationsOutput_NextMarker *smithy.Schema + +var DescribeTrustStoreRevocationsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTrustStoreRevocationsInput", +}, smithy.ShapeTypeStructure, 4) +var DescribeTrustStoreRevocationsInput_TrustStoreArn *smithy.Schema + +var DescribeTrustStoreRevocationsInput_RevocationIds *smithy.Schema + +var DescribeTrustStoreRevocationsInput_Marker *smithy.Schema + +var DescribeTrustStoreRevocationsInput_PageSize *smithy.Schema + +var DescribeTrustStoreRevocationsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTrustStoreRevocationsOutput", +}, smithy.ShapeTypeStructure, 2) +var DescribeTrustStoreRevocationsOutput_TrustStoreRevocations *smithy.Schema + +var DescribeTrustStoreRevocationsOutput_NextMarker *smithy.Schema + +var DescribeTrustStoresInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTrustStoresInput", +}, smithy.ShapeTypeStructure, 4) +var DescribeTrustStoresInput_TrustStoreArns *smithy.Schema + +var DescribeTrustStoresInput_Names *smithy.Schema + +var DescribeTrustStoresInput_Marker *smithy.Schema + +var DescribeTrustStoresInput_PageSize *smithy.Schema + +var DescribeTrustStoresOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "DescribeTrustStoresOutput", +}, smithy.ShapeTypeStructure, 2) +var DescribeTrustStoresOutput_TrustStores *smithy.Schema + +var DescribeTrustStoresOutput_NextMarker *smithy.Schema + +var GetResourcePolicyInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "GetResourcePolicyInput", +}, smithy.ShapeTypeStructure, 1) +var GetResourcePolicyInput_ResourceArn *smithy.Schema + +var GetResourcePolicyOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "GetResourcePolicyOutput", +}, smithy.ShapeTypeStructure, 1) +var GetResourcePolicyOutput_Policy *smithy.Schema + +var GetTrustStoreCaCertificatesBundleInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "GetTrustStoreCaCertificatesBundleInput", +}, smithy.ShapeTypeStructure, 1) +var GetTrustStoreCaCertificatesBundleInput_TrustStoreArn *smithy.Schema + +var GetTrustStoreCaCertificatesBundleOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "GetTrustStoreCaCertificatesBundleOutput", +}, smithy.ShapeTypeStructure, 1) +var GetTrustStoreCaCertificatesBundleOutput_Location *smithy.Schema + +var GetTrustStoreRevocationContentInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "GetTrustStoreRevocationContentInput", +}, smithy.ShapeTypeStructure, 2) +var GetTrustStoreRevocationContentInput_TrustStoreArn *smithy.Schema + +var GetTrustStoreRevocationContentInput_RevocationId *smithy.Schema + +var GetTrustStoreRevocationContentOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "GetTrustStoreRevocationContentOutput", +}, smithy.ShapeTypeStructure, 1) +var GetTrustStoreRevocationContentOutput_Location *smithy.Schema + +var ModifyCapacityReservationInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyCapacityReservationInput", +}, smithy.ShapeTypeStructure, 3) +var ModifyCapacityReservationInput_LoadBalancerArn *smithy.Schema + +var ModifyCapacityReservationInput_MinimumLoadBalancerCapacity *smithy.Schema + +var ModifyCapacityReservationInput_ResetCapacityReservation *smithy.Schema + +var ModifyCapacityReservationOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyCapacityReservationOutput", +}, smithy.ShapeTypeStructure, 4) +var ModifyCapacityReservationOutput_LastModifiedTime *smithy.Schema + +var ModifyCapacityReservationOutput_DecreaseRequestsRemaining *smithy.Schema + +var ModifyCapacityReservationOutput_MinimumLoadBalancerCapacity *smithy.Schema + +var ModifyCapacityReservationOutput_CapacityReservationState *smithy.Schema + +var ModifyIpPoolsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyIpPoolsInput", +}, smithy.ShapeTypeStructure, 3) +var ModifyIpPoolsInput_LoadBalancerArn *smithy.Schema + +var ModifyIpPoolsInput_IpamPools *smithy.Schema + +var ModifyIpPoolsInput_RemoveIpamPools *smithy.Schema + +var ModifyIpPoolsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyIpPoolsOutput", +}, smithy.ShapeTypeStructure, 1) +var ModifyIpPoolsOutput_IpamPools *smithy.Schema + +var ModifyListenerAttributesInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyListenerAttributesInput", +}, smithy.ShapeTypeStructure, 2) +var ModifyListenerAttributesInput_ListenerArn *smithy.Schema + +var ModifyListenerAttributesInput_Attributes *smithy.Schema + +var ModifyListenerAttributesOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyListenerAttributesOutput", +}, smithy.ShapeTypeStructure, 1) +var ModifyListenerAttributesOutput_Attributes *smithy.Schema + +var ModifyListenerInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyListenerInput", +}, smithy.ShapeTypeStructure, 8) +var ModifyListenerInput_ListenerArn *smithy.Schema + +var ModifyListenerInput_Port *smithy.Schema + +var ModifyListenerInput_Protocol *smithy.Schema + +var ModifyListenerInput_SslPolicy *smithy.Schema + +var ModifyListenerInput_Certificates *smithy.Schema + +var ModifyListenerInput_DefaultActions *smithy.Schema + +var ModifyListenerInput_AlpnPolicy *smithy.Schema + +var ModifyListenerInput_MutualAuthentication *smithy.Schema + +var ModifyListenerOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyListenerOutput", +}, smithy.ShapeTypeStructure, 1) +var ModifyListenerOutput_Listeners *smithy.Schema + +var ModifyLoadBalancerAttributesInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyLoadBalancerAttributesInput", +}, smithy.ShapeTypeStructure, 2) +var ModifyLoadBalancerAttributesInput_LoadBalancerArn *smithy.Schema + +var ModifyLoadBalancerAttributesInput_Attributes *smithy.Schema + +var ModifyLoadBalancerAttributesOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyLoadBalancerAttributesOutput", +}, smithy.ShapeTypeStructure, 1) +var ModifyLoadBalancerAttributesOutput_Attributes *smithy.Schema + +var ModifyRuleInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyRuleInput", +}, smithy.ShapeTypeStructure, 5) +var ModifyRuleInput_RuleArn *smithy.Schema + +var ModifyRuleInput_Conditions *smithy.Schema + +var ModifyRuleInput_Actions *smithy.Schema + +var ModifyRuleInput_Transforms *smithy.Schema + +var ModifyRuleInput_ResetTransforms *smithy.Schema + +var ModifyRuleOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyRuleOutput", +}, smithy.ShapeTypeStructure, 1) +var ModifyRuleOutput_Rules *smithy.Schema + +var ModifyTargetGroupAttributesInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyTargetGroupAttributesInput", +}, smithy.ShapeTypeStructure, 2) +var ModifyTargetGroupAttributesInput_TargetGroupArn *smithy.Schema + +var ModifyTargetGroupAttributesInput_Attributes *smithy.Schema + +var ModifyTargetGroupAttributesOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyTargetGroupAttributesOutput", +}, smithy.ShapeTypeStructure, 1) +var ModifyTargetGroupAttributesOutput_Attributes *smithy.Schema + +var ModifyTargetGroupInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyTargetGroupInput", +}, smithy.ShapeTypeStructure, 10) +var ModifyTargetGroupInput_TargetGroupArn *smithy.Schema + +var ModifyTargetGroupInput_HealthCheckProtocol *smithy.Schema + +var ModifyTargetGroupInput_HealthCheckPort *smithy.Schema + +var ModifyTargetGroupInput_HealthCheckPath *smithy.Schema + +var ModifyTargetGroupInput_HealthCheckEnabled *smithy.Schema + +var ModifyTargetGroupInput_HealthCheckIntervalSeconds *smithy.Schema + +var ModifyTargetGroupInput_HealthCheckTimeoutSeconds *smithy.Schema + +var ModifyTargetGroupInput_HealthyThresholdCount *smithy.Schema + +var ModifyTargetGroupInput_UnhealthyThresholdCount *smithy.Schema + +var ModifyTargetGroupInput_Matcher *smithy.Schema + +var ModifyTargetGroupOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyTargetGroupOutput", +}, smithy.ShapeTypeStructure, 1) +var ModifyTargetGroupOutput_TargetGroups *smithy.Schema + +var ModifyTrustStoreInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyTrustStoreInput", +}, smithy.ShapeTypeStructure, 4) +var ModifyTrustStoreInput_TrustStoreArn *smithy.Schema + +var ModifyTrustStoreInput_CaCertificatesBundleS3Bucket *smithy.Schema + +var ModifyTrustStoreInput_CaCertificatesBundleS3Key *smithy.Schema + +var ModifyTrustStoreInput_CaCertificatesBundleS3ObjectVersion *smithy.Schema + +var ModifyTrustStoreOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "ModifyTrustStoreOutput", +}, smithy.ShapeTypeStructure, 1) +var ModifyTrustStoreOutput_TrustStores *smithy.Schema + +var RegisterTargetsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RegisterTargetsInput", +}, smithy.ShapeTypeStructure, 2) +var RegisterTargetsInput_TargetGroupArn *smithy.Schema + +var RegisterTargetsInput_Targets *smithy.Schema + +var RegisterTargetsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RegisterTargetsOutput", +}, smithy.ShapeTypeStructure, 0) + +var RemoveListenerCertificatesInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RemoveListenerCertificatesInput", +}, smithy.ShapeTypeStructure, 2) +var RemoveListenerCertificatesInput_ListenerArn *smithy.Schema + +var RemoveListenerCertificatesInput_Certificates *smithy.Schema + +var RemoveListenerCertificatesOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RemoveListenerCertificatesOutput", +}, smithy.ShapeTypeStructure, 0) + +var RemoveTagsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RemoveTagsInput", +}, smithy.ShapeTypeStructure, 2) +var RemoveTagsInput_ResourceArns *smithy.Schema + +var RemoveTagsInput_TagKeys *smithy.Schema + +var RemoveTagsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RemoveTagsOutput", +}, smithy.ShapeTypeStructure, 0) + +var RemoveTrustStoreRevocationsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RemoveTrustStoreRevocationsInput", +}, smithy.ShapeTypeStructure, 2) +var RemoveTrustStoreRevocationsInput_TrustStoreArn *smithy.Schema + +var RemoveTrustStoreRevocationsInput_RevocationIds *smithy.Schema + +var RemoveTrustStoreRevocationsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "RemoveTrustStoreRevocationsOutput", +}, smithy.ShapeTypeStructure, 0) + +var SetIpAddressTypeInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SetIpAddressTypeInput", +}, smithy.ShapeTypeStructure, 2) +var SetIpAddressTypeInput_LoadBalancerArn *smithy.Schema + +var SetIpAddressTypeInput_IpAddressType *smithy.Schema + +var SetIpAddressTypeOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SetIpAddressTypeOutput", +}, smithy.ShapeTypeStructure, 1) +var SetIpAddressTypeOutput_IpAddressType *smithy.Schema + +var SetRulePrioritiesInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SetRulePrioritiesInput", +}, smithy.ShapeTypeStructure, 1) +var SetRulePrioritiesInput_RulePriorities *smithy.Schema + +var SetRulePrioritiesOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SetRulePrioritiesOutput", +}, smithy.ShapeTypeStructure, 1) +var SetRulePrioritiesOutput_Rules *smithy.Schema + +var SetSecurityGroupsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SetSecurityGroupsInput", +}, smithy.ShapeTypeStructure, 3) +var SetSecurityGroupsInput_LoadBalancerArn *smithy.Schema + +var SetSecurityGroupsInput_SecurityGroups *smithy.Schema + +var SetSecurityGroupsInput_EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic *smithy.Schema + +var SetSecurityGroupsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SetSecurityGroupsOutput", +}, smithy.ShapeTypeStructure, 2) +var SetSecurityGroupsOutput_SecurityGroupIds *smithy.Schema + +var SetSecurityGroupsOutput_EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic *smithy.Schema + +var SetSubnetsInput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SetSubnetsInput", +}, smithy.ShapeTypeStructure, 5) +var SetSubnetsInput_LoadBalancerArn *smithy.Schema + +var SetSubnetsInput_Subnets *smithy.Schema + +var SetSubnetsInput_SubnetMappings *smithy.Schema + +var SetSubnetsInput_IpAddressType *smithy.Schema + +var SetSubnetsInput_EnablePrefixForIpv6SourceNat *smithy.Schema + +var SetSubnetsOutput = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.elasticloadbalancingv2", + Name: "SetSubnetsOutput", +}, smithy.ShapeTypeStructure, 3) +var SetSubnetsOutput_AvailabilityZones *smithy.Schema + +var SetSubnetsOutput_IpAddressType *smithy.Schema + +var SetSubnetsOutput_EnablePrefixForIpv6SourceNat *smithy.Schema + +// Initialize schema members after all schemas are declared to avoid +// initialization cycles +func init() { + ActionTypeEnum_FORWARD = ActionTypeEnum.AddMember("FORWARD", smithyprelude.Unit) + + ActionTypeEnum_AUTHENTICATE_OIDC = ActionTypeEnum.AddMember("AUTHENTICATE_OIDC", smithyprelude.Unit) + + ActionTypeEnum_AUTHENTICATE_COGNITO = ActionTypeEnum.AddMember("AUTHENTICATE_COGNITO", smithyprelude.Unit) + + ActionTypeEnum_REDIRECT = ActionTypeEnum.AddMember("REDIRECT", smithyprelude.Unit) + + ActionTypeEnum_FIXED_RESPONSE = ActionTypeEnum.AddMember("FIXED_RESPONSE", smithyprelude.Unit) + + ActionTypeEnum_JWT_VALIDATION = ActionTypeEnum.AddMember("JWT_VALIDATION", smithyprelude.Unit) + + _AuthenticateOidcActionAuthenticationRequestExtraParams_key = _AuthenticateOidcActionAuthenticationRequestExtraParams.AddMember("key", _AuthenticateOidcActionAuthenticationRequestParamName) + + _AuthenticateOidcActionAuthenticationRequestExtraParams_value = _AuthenticateOidcActionAuthenticationRequestExtraParams.AddMember("value", _AuthenticateOidcActionAuthenticationRequestParamValue) + + AuthenticateOidcActionConditionalBehaviorEnum_DENY = AuthenticateOidcActionConditionalBehaviorEnum.AddMember("DENY", smithyprelude.Unit) + + AuthenticateOidcActionConditionalBehaviorEnum_ALLOW = AuthenticateOidcActionConditionalBehaviorEnum.AddMember("ALLOW", smithyprelude.Unit) + + AuthenticateOidcActionConditionalBehaviorEnum_AUTHENTICATE = AuthenticateOidcActionConditionalBehaviorEnum.AddMember("AUTHENTICATE", smithyprelude.Unit) + + AuthenticateOidcActionConfig_Issuer = AuthenticateOidcActionConfig.AddMember("Issuer", _AuthenticateOidcActionIssuer) + + AuthenticateOidcActionConfig_AuthorizationEndpoint = AuthenticateOidcActionConfig.AddMember("AuthorizationEndpoint", _AuthenticateOidcActionAuthorizationEndpoint) + + AuthenticateOidcActionConfig_TokenEndpoint = AuthenticateOidcActionConfig.AddMember("TokenEndpoint", _AuthenticateOidcActionTokenEndpoint) + + AuthenticateOidcActionConfig_UserInfoEndpoint = AuthenticateOidcActionConfig.AddMember("UserInfoEndpoint", _AuthenticateOidcActionUserInfoEndpoint) + + AuthenticateOidcActionConfig_ClientId = AuthenticateOidcActionConfig.AddMember("ClientId", _AuthenticateOidcActionClientId) + + AuthenticateOidcActionConfig_ClientSecret = AuthenticateOidcActionConfig.AddMember("ClientSecret", _AuthenticateOidcActionClientSecret) + + AuthenticateOidcActionConfig_SessionCookieName = AuthenticateOidcActionConfig.AddMember("SessionCookieName", _AuthenticateOidcActionSessionCookieName) + + AuthenticateOidcActionConfig_Scope = AuthenticateOidcActionConfig.AddMember("Scope", _AuthenticateOidcActionScope) + + AuthenticateOidcActionConfig_SessionTimeout = AuthenticateOidcActionConfig.AddMember("SessionTimeout", _AuthenticateOidcActionSessionTimeout) + + AuthenticateOidcActionConfig_AuthenticationRequestExtraParams = AuthenticateOidcActionConfig.AddMember("AuthenticationRequestExtraParams", _AuthenticateOidcActionAuthenticationRequestExtraParams) + + AuthenticateOidcActionConfig_OnUnauthenticatedRequest = AuthenticateOidcActionConfig.AddMember("OnUnauthenticatedRequest", AuthenticateOidcActionConditionalBehaviorEnum) + + AuthenticateOidcActionConfig_UseExistingClientSecret = AuthenticateOidcActionConfig.AddMember("UseExistingClientSecret", _AuthenticateOidcActionUseExistingClientSecret) + + _AuthenticateCognitoActionAuthenticationRequestExtraParams_key = _AuthenticateCognitoActionAuthenticationRequestExtraParams.AddMember("key", _AuthenticateCognitoActionAuthenticationRequestParamName) + + _AuthenticateCognitoActionAuthenticationRequestExtraParams_value = _AuthenticateCognitoActionAuthenticationRequestExtraParams.AddMember("value", _AuthenticateCognitoActionAuthenticationRequestParamValue) + + AuthenticateCognitoActionConditionalBehaviorEnum_DENY = AuthenticateCognitoActionConditionalBehaviorEnum.AddMember("DENY", smithyprelude.Unit) + + AuthenticateCognitoActionConditionalBehaviorEnum_ALLOW = AuthenticateCognitoActionConditionalBehaviorEnum.AddMember("ALLOW", smithyprelude.Unit) + + AuthenticateCognitoActionConditionalBehaviorEnum_AUTHENTICATE = AuthenticateCognitoActionConditionalBehaviorEnum.AddMember("AUTHENTICATE", smithyprelude.Unit) + + AuthenticateCognitoActionConfig_UserPoolArn = AuthenticateCognitoActionConfig.AddMember("UserPoolArn", _AuthenticateCognitoActionUserPoolArn) + + AuthenticateCognitoActionConfig_UserPoolClientId = AuthenticateCognitoActionConfig.AddMember("UserPoolClientId", _AuthenticateCognitoActionUserPoolClientId) + + AuthenticateCognitoActionConfig_UserPoolDomain = AuthenticateCognitoActionConfig.AddMember("UserPoolDomain", _AuthenticateCognitoActionUserPoolDomain) + + AuthenticateCognitoActionConfig_SessionCookieName = AuthenticateCognitoActionConfig.AddMember("SessionCookieName", _AuthenticateCognitoActionSessionCookieName) + + AuthenticateCognitoActionConfig_Scope = AuthenticateCognitoActionConfig.AddMember("Scope", _AuthenticateCognitoActionScope) + + AuthenticateCognitoActionConfig_SessionTimeout = AuthenticateCognitoActionConfig.AddMember("SessionTimeout", _AuthenticateCognitoActionSessionTimeout) + + AuthenticateCognitoActionConfig_AuthenticationRequestExtraParams = AuthenticateCognitoActionConfig.AddMember("AuthenticationRequestExtraParams", _AuthenticateCognitoActionAuthenticationRequestExtraParams) + + AuthenticateCognitoActionConfig_OnUnauthenticatedRequest = AuthenticateCognitoActionConfig.AddMember("OnUnauthenticatedRequest", AuthenticateCognitoActionConditionalBehaviorEnum) + + RedirectActionStatusCodeEnum_HTTP_301 = RedirectActionStatusCodeEnum.AddMember("HTTP_301", smithyprelude.Unit) + + RedirectActionStatusCodeEnum_HTTP_302 = RedirectActionStatusCodeEnum.AddMember("HTTP_302", smithyprelude.Unit) + + RedirectActionConfig_Protocol = RedirectActionConfig.AddMember("Protocol", _RedirectActionProtocol) + + RedirectActionConfig_Port = RedirectActionConfig.AddMember("Port", _RedirectActionPort) + + RedirectActionConfig_Host = RedirectActionConfig.AddMember("Host", _RedirectActionHost) + + RedirectActionConfig_Path = RedirectActionConfig.AddMember("Path", _RedirectActionPath) + + RedirectActionConfig_Query = RedirectActionConfig.AddMember("Query", _RedirectActionQuery) + + RedirectActionConfig_StatusCode = RedirectActionConfig.AddMember("StatusCode", RedirectActionStatusCodeEnum) + + FixedResponseActionConfig_MessageBody = FixedResponseActionConfig.AddMember("MessageBody", _FixedResponseActionMessage) + + FixedResponseActionConfig_StatusCode = FixedResponseActionConfig.AddMember("StatusCode", _FixedResponseActionStatusCode) + + FixedResponseActionConfig_ContentType = FixedResponseActionConfig.AddMember("ContentType", _FixedResponseActionContentType) + + TargetGroupTuple_TargetGroupArn = TargetGroupTuple.AddMember("TargetGroupArn", _TargetGroupArn) + + TargetGroupTuple_Weight = TargetGroupTuple.AddMember("Weight", _TargetGroupWeight) + + _TargetGroupList_member = _TargetGroupList.AddMember("member", TargetGroupTuple) + + TargetGroupStickinessConfig_Enabled = TargetGroupStickinessConfig.AddMember("Enabled", _TargetGroupStickinessEnabled) + + TargetGroupStickinessConfig_DurationSeconds = TargetGroupStickinessConfig.AddMember("DurationSeconds", _TargetGroupStickinessDurationSeconds) + + ForwardActionConfig_TargetGroups = ForwardActionConfig.AddMember("TargetGroups", _TargetGroupList) + + ForwardActionConfig_TargetGroupStickinessConfig = ForwardActionConfig.AddMember("TargetGroupStickinessConfig", TargetGroupStickinessConfig) + + JwtValidationActionAdditionalClaimFormatEnum_SINGLE_STRING = JwtValidationActionAdditionalClaimFormatEnum.AddMember("SINGLE_STRING", smithyprelude.Unit) + + JwtValidationActionAdditionalClaimFormatEnum_STRING_ARRAY = JwtValidationActionAdditionalClaimFormatEnum.AddMember("STRING_ARRAY", smithyprelude.Unit) + + JwtValidationActionAdditionalClaimFormatEnum_SPACE_SEPARATED_VALUES = JwtValidationActionAdditionalClaimFormatEnum.AddMember("SPACE_SEPARATED_VALUES", smithyprelude.Unit) + + _JwtValidationActionAdditionalClaimValues_member = _JwtValidationActionAdditionalClaimValues.AddMember("member", _JwtValidationActionAdditionalClaimValue) + + JwtValidationActionAdditionalClaim_Format = JwtValidationActionAdditionalClaim.AddMember("Format", JwtValidationActionAdditionalClaimFormatEnum) + + JwtValidationActionAdditionalClaim_Name = JwtValidationActionAdditionalClaim.AddMember("Name", _JwtValidationActionAdditionalClaimName) + + JwtValidationActionAdditionalClaim_Values = JwtValidationActionAdditionalClaim.AddMember("Values", _JwtValidationActionAdditionalClaimValues) + + _JwtValidationActionAdditionalClaims_member = _JwtValidationActionAdditionalClaims.AddMember("member", JwtValidationActionAdditionalClaim) + + JwtValidationActionConfig_JwksEndpoint = JwtValidationActionConfig.AddMember("JwksEndpoint", _JwtValidationActionJwksEndpoint) + + JwtValidationActionConfig_Issuer = JwtValidationActionConfig.AddMember("Issuer", _JwtValidationActionIssuer) + + JwtValidationActionConfig_AdditionalClaims = JwtValidationActionConfig.AddMember("AdditionalClaims", _JwtValidationActionAdditionalClaims) + + Action_Type = Action.AddMember("Type", ActionTypeEnum) + + Action_TargetGroupArn = Action.AddMember("TargetGroupArn", _TargetGroupArn) + + Action_AuthenticateOidcConfig = Action.AddMember("AuthenticateOidcConfig", AuthenticateOidcActionConfig) + + Action_AuthenticateCognitoConfig = Action.AddMember("AuthenticateCognitoConfig", AuthenticateCognitoActionConfig) + + Action_Order = Action.AddMember("Order", _ActionOrder) + + Action_RedirectConfig = Action.AddMember("RedirectConfig", RedirectActionConfig) + + Action_FixedResponseConfig = Action.AddMember("FixedResponseConfig", FixedResponseActionConfig) + + Action_ForwardConfig = Action.AddMember("ForwardConfig", ForwardActionConfig) + + Action_JwtValidationConfig = Action.AddMember("JwtValidationConfig", JwtValidationActionConfig) + + _Actions_member = _Actions.AddMember("member", Action) + + TargetAdministrativeOverrideStateEnum_UNKNOWN = TargetAdministrativeOverrideStateEnum.AddMember("UNKNOWN", smithyprelude.Unit) + + TargetAdministrativeOverrideStateEnum_NO_OVERRIDE = TargetAdministrativeOverrideStateEnum.AddMember("NO_OVERRIDE", smithyprelude.Unit) + + TargetAdministrativeOverrideStateEnum_ZONAL_SHIFT_ACTIVE = TargetAdministrativeOverrideStateEnum.AddMember("ZONAL_SHIFT_ACTIVE", smithyprelude.Unit) + + TargetAdministrativeOverrideStateEnum_ZONAL_SHIFT_DELEGATED_TO_DNS = TargetAdministrativeOverrideStateEnum.AddMember("ZONAL_SHIFT_DELEGATED_TO_DNS", smithyprelude.Unit) + + TargetAdministrativeOverrideReasonEnum_INTERNAL_ERROR = TargetAdministrativeOverrideReasonEnum.AddMember("INTERNAL_ERROR", smithyprelude.Unit) + + TargetAdministrativeOverrideReasonEnum_NO_OVERRIDE_ENGAGED = TargetAdministrativeOverrideReasonEnum.AddMember("NO_OVERRIDE_ENGAGED", smithyprelude.Unit) + + TargetAdministrativeOverrideReasonEnum_ZONAL_SHIFT_ENGAGED = TargetAdministrativeOverrideReasonEnum.AddMember("ZONAL_SHIFT_ENGAGED", smithyprelude.Unit) + + TargetAdministrativeOverrideReasonEnum_ZONAL_SHIFT_DELEGATED_TO_DNS = TargetAdministrativeOverrideReasonEnum.AddMember("ZONAL_SHIFT_DELEGATED_TO_DNS", smithyprelude.Unit) + + AdministrativeOverride_State = AdministrativeOverride.AddMember("State", TargetAdministrativeOverrideStateEnum) + + AdministrativeOverride_Reason = AdministrativeOverride.AddMember("Reason", TargetAdministrativeOverrideReasonEnum) + + AdministrativeOverride_Description = AdministrativeOverride.AddMember("Description", _Description) + + AdvertiseTrustStoreCaNamesEnum_on = AdvertiseTrustStoreCaNamesEnum.AddMember("on", smithyprelude.Unit) + + AdvertiseTrustStoreCaNamesEnum_off = AdvertiseTrustStoreCaNamesEnum.AddMember("off", smithyprelude.Unit) + + AllocationIdNotFoundException_Message = AllocationIdNotFoundException.AddMember("Message", _ErrorDescription) + + _AlpnPolicyName_member = _AlpnPolicyName.AddMember("member", _AlpnPolicyValue) + + ALPNPolicyNotSupportedException_Message = ALPNPolicyNotSupportedException.AddMember("Message", _ErrorDescription) + + AnomalyResultEnum_ANOMALOUS = AnomalyResultEnum.AddMember("ANOMALOUS", smithyprelude.Unit) + + AnomalyResultEnum_NORMAL = AnomalyResultEnum.AddMember("NORMAL", smithyprelude.Unit) + + MitigationInEffectEnum_YES = MitigationInEffectEnum.AddMember("YES", smithyprelude.Unit) + + MitigationInEffectEnum_NO = MitigationInEffectEnum.AddMember("NO", smithyprelude.Unit) + + AnomalyDetection_Result = AnomalyDetection.AddMember("Result", AnomalyResultEnum) + + AnomalyDetection_MitigationInEffect = AnomalyDetection.AddMember("MitigationInEffect", MitigationInEffectEnum) + + LoadBalancerAddress_IpAddress = LoadBalancerAddress.AddMember("IpAddress", _IpAddress) + + LoadBalancerAddress_AllocationId = LoadBalancerAddress.AddMember("AllocationId", _AllocationId) + + LoadBalancerAddress_PrivateIPv4Address = LoadBalancerAddress.AddMember("PrivateIPv4Address", _PrivateIPv4Address) + + LoadBalancerAddress_IPv6Address = LoadBalancerAddress.AddMember("IPv6Address", _IPv6Address) + + _LoadBalancerAddresses_member = _LoadBalancerAddresses.AddMember("member", LoadBalancerAddress) + + _SourceNatIpv6Prefixes_member = _SourceNatIpv6Prefixes.AddMember("member", _SourceNatIpv6Prefix) + + AvailabilityZone_ZoneName = AvailabilityZone.AddMember("ZoneName", _ZoneName) + + AvailabilityZone_SubnetId = AvailabilityZone.AddMember("SubnetId", _SubnetId) + + AvailabilityZone_OutpostId = AvailabilityZone.AddMember("OutpostId", _OutpostId) + + AvailabilityZone_LoadBalancerAddresses = AvailabilityZone.AddMember("LoadBalancerAddresses", _LoadBalancerAddresses) + + AvailabilityZone_SourceNatIpv6Prefixes = AvailabilityZone.AddMember("SourceNatIpv6Prefixes", _SourceNatIpv6Prefixes) + + AvailabilityZoneNotSupportedException_Message = AvailabilityZoneNotSupportedException.AddMember("Message", _ErrorDescription) + + _AvailabilityZones_member = _AvailabilityZones.AddMember("member", AvailabilityZone) + + CaCertificatesBundleNotFoundException_Message = CaCertificatesBundleNotFoundException.AddMember("Message", _ErrorDescription) + + CapacityDecreaseRequestsLimitExceededException_Message = CapacityDecreaseRequestsLimitExceededException.AddMember("Message", _ErrorDescription) + + CapacityReservationPendingException_Message = CapacityReservationPendingException.AddMember("Message", _ErrorDescription) + + CapacityReservationStateEnum_PROVISIONED = CapacityReservationStateEnum.AddMember("PROVISIONED", smithyprelude.Unit) + + CapacityReservationStateEnum_PENDING = CapacityReservationStateEnum.AddMember("PENDING", smithyprelude.Unit) + + CapacityReservationStateEnum_REBALANCING = CapacityReservationStateEnum.AddMember("REBALANCING", smithyprelude.Unit) + + CapacityReservationStateEnum_FAILED = CapacityReservationStateEnum.AddMember("FAILED", smithyprelude.Unit) + + CapacityReservationStatus_Code = CapacityReservationStatus.AddMember("Code", CapacityReservationStateEnum) + + CapacityReservationStatus_Reason = CapacityReservationStatus.AddMember("Reason", _StateReason) + + CapacityUnitsLimitExceededException_Message = CapacityUnitsLimitExceededException.AddMember("Message", _ErrorDescription) + + Certificate_CertificateArn = Certificate.AddMember("CertificateArn", _CertificateArn) + + Certificate_IsDefault = Certificate.AddMember("IsDefault", _Default) + + _CertificateList_member = _CertificateList.AddMember("member", Certificate) + + CertificateNotFoundException_Message = CertificateNotFoundException.AddMember("Message", _ErrorDescription) + + Cipher_Name = Cipher.AddMember("Name", _CipherName) + + Cipher_Priority = Cipher.AddMember("Priority", _CipherPriority) + + _Ciphers_member = _Ciphers.AddMember("member", Cipher) + + ClientCertificateIdentityFilterField_SUBJECT_CN = ClientCertificateIdentityFilterField.AddMember("SUBJECT_CN", smithyprelude.Unit) + + ClientCertificateIdentityFilterField_SUBJECT_OU = ClientCertificateIdentityFilterField.AddMember("SUBJECT_OU", smithyprelude.Unit) + + ClientCertificateIdentityFilterField_SAN_DNS = ClientCertificateIdentityFilterField.AddMember("SAN_DNS", smithyprelude.Unit) + + ClientCertificateIdentityFilterField_SAN_URI = ClientCertificateIdentityFilterField.AddMember("SAN_URI", smithyprelude.Unit) + + ClientCertificateIdentityFilterAction_ACCEPT = ClientCertificateIdentityFilterAction.AddMember("ACCEPT", smithyprelude.Unit) + + ClientCertificateIdentityFilterMatchType_EXACT = ClientCertificateIdentityFilterMatchType.AddMember("EXACT", smithyprelude.Unit) + + ClientCertificateIdentityFilterMatchType_PREFIX = ClientCertificateIdentityFilterMatchType.AddMember("PREFIX", smithyprelude.Unit) + + ClientCertificateIdentityFilter_Field = ClientCertificateIdentityFilter.AddMember("Field", ClientCertificateIdentityFilterField) + + ClientCertificateIdentityFilter_Action = ClientCertificateIdentityFilter.AddMember("Action", ClientCertificateIdentityFilterAction) + + ClientCertificateIdentityFilter_MatchType = ClientCertificateIdentityFilter.AddMember("MatchType", ClientCertificateIdentityFilterMatchType) + + ClientCertificateIdentityFilter_Value = ClientCertificateIdentityFilter.AddMember("Value", _ClientCertificateIdentityFilterValue) + + _ClientCertificateIdentityFilters_member = _ClientCertificateIdentityFilters.AddMember("member", ClientCertificateIdentityFilter) + + DeleteAssociationSameAccountException_Message = DeleteAssociationSameAccountException.AddMember("Message", _ErrorDescription) + + DescribeTargetHealthInputIncludeEnum_ANOMALY = DescribeTargetHealthInputIncludeEnum.AddMember("ANOMALY", smithyprelude.Unit) + + DescribeTargetHealthInputIncludeEnum_ALL = DescribeTargetHealthInputIncludeEnum.AddMember("ALL", smithyprelude.Unit) + + RevocationType_CRL = RevocationType.AddMember("CRL", smithyprelude.Unit) + + DescribeTrustStoreRevocation_TrustStoreArn = DescribeTrustStoreRevocation.AddMember("TrustStoreArn", _TrustStoreArn) + + DescribeTrustStoreRevocation_RevocationId = DescribeTrustStoreRevocation.AddMember("RevocationId", _RevocationId) + + DescribeTrustStoreRevocation_RevocationType = DescribeTrustStoreRevocation.AddMember("RevocationType", RevocationType) + + DescribeTrustStoreRevocation_NumberOfRevokedEntries = DescribeTrustStoreRevocation.AddMember("NumberOfRevokedEntries", _NumberOfRevokedEntries) + + _DescribeTrustStoreRevocationResponse_member = _DescribeTrustStoreRevocationResponse.AddMember("member", DescribeTrustStoreRevocation) + + DuplicateListenerException_Message = DuplicateListenerException.AddMember("Message", _ErrorDescription) + + DuplicateLoadBalancerNameException_Message = DuplicateLoadBalancerNameException.AddMember("Message", _ErrorDescription) + + DuplicateTagKeysException_Message = DuplicateTagKeysException.AddMember("Message", _ErrorDescription) + + DuplicateTargetGroupNameException_Message = DuplicateTargetGroupNameException.AddMember("Message", _ErrorDescription) + + DuplicateTrustStoreNameException_Message = DuplicateTrustStoreNameException.AddMember("Message", _ErrorDescription) + + EnablePrefixForIpv6SourceNatEnum_ON = EnablePrefixForIpv6SourceNatEnum.AddMember("ON", smithyprelude.Unit) + + EnablePrefixForIpv6SourceNatEnum_OFF = EnablePrefixForIpv6SourceNatEnum.AddMember("OFF", smithyprelude.Unit) + + EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum_on = EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum.AddMember("on", smithyprelude.Unit) + + EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum_off = EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum.AddMember("off", smithyprelude.Unit) + + HealthUnavailableException_Message = HealthUnavailableException.AddMember("Message", _ErrorDescription) + + _ListOfString_member = _ListOfString.AddMember("member", _StringValue) + + HostHeaderConditionConfig_Values = HostHeaderConditionConfig.AddMember("Values", _ListOfString) + + HostHeaderConditionConfig_RegexValues = HostHeaderConditionConfig.AddMember("RegexValues", _ListOfString) + + RewriteConfig_Regex = RewriteConfig.AddMember("Regex", _StringValue) + + RewriteConfig_Replace = RewriteConfig.AddMember("Replace", _StringValue) + + _RewriteConfigList_member = _RewriteConfigList.AddMember("member", RewriteConfig) + + HostHeaderRewriteConfig_Rewrites = HostHeaderRewriteConfig.AddMember("Rewrites", _RewriteConfigList) + + HttpHeaderConditionConfig_HttpHeaderName = HttpHeaderConditionConfig.AddMember("HttpHeaderName", _HttpHeaderConditionName) + + HttpHeaderConditionConfig_Values = HttpHeaderConditionConfig.AddMember("Values", _ListOfString) + + HttpHeaderConditionConfig_RegexValues = HttpHeaderConditionConfig.AddMember("RegexValues", _ListOfString) + + HttpRequestMethodConditionConfig_Values = HttpRequestMethodConditionConfig.AddMember("Values", _ListOfString) + + IncompatibleProtocolsException_Message = IncompatibleProtocolsException.AddMember("Message", _ErrorDescription) + + InsufficientCapacityException_Message = InsufficientCapacityException.AddMember("Message", _ErrorDescription) + + InvalidCaCertificatesBundleException_Message = InvalidCaCertificatesBundleException.AddMember("Message", _ErrorDescription) + + InvalidConfigurationRequestException_Message = InvalidConfigurationRequestException.AddMember("Message", _ErrorDescription) + + InvalidLoadBalancerActionException_Message = InvalidLoadBalancerActionException.AddMember("Message", _ErrorDescription) + + InvalidRevocationContentException_Message = InvalidRevocationContentException.AddMember("Message", _ErrorDescription) + + InvalidSchemeException_Message = InvalidSchemeException.AddMember("Message", _ErrorDescription) + + InvalidSecurityGroupException_Message = InvalidSecurityGroupException.AddMember("Message", _ErrorDescription) + + InvalidSubnetException_Message = InvalidSubnetException.AddMember("Message", _ErrorDescription) + + InvalidTargetException_Message = InvalidTargetException.AddMember("Message", _ErrorDescription) + + IpAddressType_IPV4 = IpAddressType.AddMember("IPV4", smithyprelude.Unit) + + IpAddressType_DUALSTACK = IpAddressType.AddMember("DUALSTACK", smithyprelude.Unit) + + IpAddressType_DUALSTACK_WITHOUT_PUBLIC_IPV4 = IpAddressType.AddMember("DUALSTACK_WITHOUT_PUBLIC_IPV4", smithyprelude.Unit) + + IpamPools_Ipv4IpamPoolId = IpamPools.AddMember("Ipv4IpamPoolId", _IpamPoolId) + + Limit_Name = Limit.AddMember("Name", _Name) + + Limit_Max = Limit.AddMember("Max", _Max) + + _Limits_member = _Limits.AddMember("member", Limit) + + ProtocolEnum_HTTP = ProtocolEnum.AddMember("HTTP", smithyprelude.Unit) + + ProtocolEnum_HTTPS = ProtocolEnum.AddMember("HTTPS", smithyprelude.Unit) + + ProtocolEnum_TCP = ProtocolEnum.AddMember("TCP", smithyprelude.Unit) + + ProtocolEnum_TLS = ProtocolEnum.AddMember("TLS", smithyprelude.Unit) + + ProtocolEnum_UDP = ProtocolEnum.AddMember("UDP", smithyprelude.Unit) + + ProtocolEnum_TCP_UDP = ProtocolEnum.AddMember("TCP_UDP", smithyprelude.Unit) + + ProtocolEnum_GENEVE = ProtocolEnum.AddMember("GENEVE", smithyprelude.Unit) + + ProtocolEnum_QUIC = ProtocolEnum.AddMember("QUIC", smithyprelude.Unit) + + ProtocolEnum_TCP_QUIC = ProtocolEnum.AddMember("TCP_QUIC", smithyprelude.Unit) + + TrustStoreAssociationStatusEnum_ACTIVE = TrustStoreAssociationStatusEnum.AddMember("ACTIVE", smithyprelude.Unit) + + TrustStoreAssociationStatusEnum_REMOVED = TrustStoreAssociationStatusEnum.AddMember("REMOVED", smithyprelude.Unit) + + MutualAuthenticationAttributes_Mode = MutualAuthenticationAttributes.AddMember("Mode", _Mode) + + MutualAuthenticationAttributes_TrustStoreArn = MutualAuthenticationAttributes.AddMember("TrustStoreArn", _TrustStoreArn) + + MutualAuthenticationAttributes_IgnoreClientCertificateExpiry = MutualAuthenticationAttributes.AddMember("IgnoreClientCertificateExpiry", _IgnoreClientCertificateExpiry) + + MutualAuthenticationAttributes_TrustStoreAssociationStatus = MutualAuthenticationAttributes.AddMember("TrustStoreAssociationStatus", TrustStoreAssociationStatusEnum) + + MutualAuthenticationAttributes_AdvertiseTrustStoreCaNames = MutualAuthenticationAttributes.AddMember("AdvertiseTrustStoreCaNames", AdvertiseTrustStoreCaNamesEnum) + + MutualAuthenticationAttributes_ClientCertificateIdentityFilters = MutualAuthenticationAttributes.AddMember("ClientCertificateIdentityFilters", _ClientCertificateIdentityFilters) + + Listener_ListenerArn = Listener.AddMember("ListenerArn", _ListenerArn) + + Listener_LoadBalancerArn = Listener.AddMember("LoadBalancerArn", _LoadBalancerArn) + + Listener_Port = Listener.AddMember("Port", _Port) + + Listener_Protocol = Listener.AddMember("Protocol", ProtocolEnum) + + Listener_Certificates = Listener.AddMember("Certificates", _CertificateList) + + Listener_SslPolicy = Listener.AddMember("SslPolicy", _SslPolicyName) + + Listener_DefaultActions = Listener.AddMember("DefaultActions", _Actions) + + Listener_AlpnPolicy = Listener.AddMember("AlpnPolicy", _AlpnPolicyName) + + Listener_MutualAuthentication = Listener.AddMember("MutualAuthentication", MutualAuthenticationAttributes) + + _ListenerArns_member = _ListenerArns.AddMember("member", _ListenerArn) + + ListenerAttribute_Key = ListenerAttribute.AddMember("Key", _ListenerAttributeKey) + + ListenerAttribute_Value = ListenerAttribute.AddMember("Value", _ListenerAttributeValue) + + _ListenerAttributes_member = _ListenerAttributes.AddMember("member", ListenerAttribute) + + ListenerNotFoundException_Message = ListenerNotFoundException.AddMember("Message", _ErrorDescription) + + _Listeners_member = _Listeners.AddMember("member", Listener) + + _ListOfDescribeTargetHealthIncludeOptions_member = _ListOfDescribeTargetHealthIncludeOptions.AddMember("member", DescribeTargetHealthInputIncludeEnum) + + LoadBalancerSchemeEnum_INTERNET_FACING = LoadBalancerSchemeEnum.AddMember("INTERNET_FACING", smithyprelude.Unit) + + LoadBalancerSchemeEnum_INTERNAL = LoadBalancerSchemeEnum.AddMember("INTERNAL", smithyprelude.Unit) + + LoadBalancerStateEnum_ACTIVE = LoadBalancerStateEnum.AddMember("ACTIVE", smithyprelude.Unit) + + LoadBalancerStateEnum_PROVISIONING = LoadBalancerStateEnum.AddMember("PROVISIONING", smithyprelude.Unit) + + LoadBalancerStateEnum_ACTIVE_IMPAIRED = LoadBalancerStateEnum.AddMember("ACTIVE_IMPAIRED", smithyprelude.Unit) + + LoadBalancerStateEnum_FAILED = LoadBalancerStateEnum.AddMember("FAILED", smithyprelude.Unit) + + LoadBalancerState_Code = LoadBalancerState.AddMember("Code", LoadBalancerStateEnum) + + LoadBalancerState_Reason = LoadBalancerState.AddMember("Reason", _StateReason) + + LoadBalancerTypeEnum_APPLICATION = LoadBalancerTypeEnum.AddMember("APPLICATION", smithyprelude.Unit) + + LoadBalancerTypeEnum_NETWORK = LoadBalancerTypeEnum.AddMember("NETWORK", smithyprelude.Unit) + + LoadBalancerTypeEnum_GATEWAY = LoadBalancerTypeEnum.AddMember("GATEWAY", smithyprelude.Unit) + + _SecurityGroups_member = _SecurityGroups.AddMember("member", _SecurityGroupId) + + LoadBalancer_LoadBalancerArn = LoadBalancer.AddMember("LoadBalancerArn", _LoadBalancerArn) + + LoadBalancer_DNSName = LoadBalancer.AddMember("DNSName", _DNSName) + + LoadBalancer_CanonicalHostedZoneId = LoadBalancer.AddMember("CanonicalHostedZoneId", _CanonicalHostedZoneId) + + LoadBalancer_CreatedTime = LoadBalancer.AddMember("CreatedTime", _CreatedTime) + + LoadBalancer_LoadBalancerName = LoadBalancer.AddMember("LoadBalancerName", _LoadBalancerName) + + LoadBalancer_Scheme = LoadBalancer.AddMember("Scheme", LoadBalancerSchemeEnum) + + LoadBalancer_VpcId = LoadBalancer.AddMember("VpcId", _VpcId) + + LoadBalancer_State = LoadBalancer.AddMember("State", LoadBalancerState) + + LoadBalancer_Type = LoadBalancer.AddMember("Type", LoadBalancerTypeEnum) + + LoadBalancer_AvailabilityZones = LoadBalancer.AddMember("AvailabilityZones", _AvailabilityZones) + + LoadBalancer_SecurityGroups = LoadBalancer.AddMember("SecurityGroups", _SecurityGroups) + + LoadBalancer_IpAddressType = LoadBalancer.AddMember("IpAddressType", IpAddressType) + + LoadBalancer_CustomerOwnedIpv4Pool = LoadBalancer.AddMember("CustomerOwnedIpv4Pool", _CustomerOwnedIpv4Pool) + + LoadBalancer_EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = LoadBalancer.AddMember("EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic", _EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic) + + LoadBalancer_EnablePrefixForIpv6SourceNat = LoadBalancer.AddMember("EnablePrefixForIpv6SourceNat", EnablePrefixForIpv6SourceNatEnum) + + LoadBalancer_IpamPools = LoadBalancer.AddMember("IpamPools", IpamPools) + + _LoadBalancerArns_member = _LoadBalancerArns.AddMember("member", _LoadBalancerArn) + + LoadBalancerAttribute_Key = LoadBalancerAttribute.AddMember("Key", _LoadBalancerAttributeKey) + + LoadBalancerAttribute_Value = LoadBalancerAttribute.AddMember("Value", _LoadBalancerAttributeValue) + + _LoadBalancerAttributes_member = _LoadBalancerAttributes.AddMember("member", LoadBalancerAttribute) + + _LoadBalancerNames_member = _LoadBalancerNames.AddMember("member", _LoadBalancerName) + + LoadBalancerNotFoundException_Message = LoadBalancerNotFoundException.AddMember("Message", _ErrorDescription) + + _LoadBalancers_member = _LoadBalancers.AddMember("member", LoadBalancer) + + Matcher_HttpCode = Matcher.AddMember("HttpCode", _HttpCode) + + Matcher_GrpcCode = Matcher.AddMember("GrpcCode", _GrpcCode) + + MinimumLoadBalancerCapacity_CapacityUnits = MinimumLoadBalancerCapacity.AddMember("CapacityUnits", _CapacityUnits) + + OperationNotPermittedException_Message = OperationNotPermittedException.AddMember("Message", _ErrorDescription) + + PathPatternConditionConfig_Values = PathPatternConditionConfig.AddMember("Values", _ListOfString) + + PathPatternConditionConfig_RegexValues = PathPatternConditionConfig.AddMember("RegexValues", _ListOfString) + + PriorityInUseException_Message = PriorityInUseException.AddMember("Message", _ErrorDescription) + + PriorRequestNotCompleteException_Message = PriorRequestNotCompleteException.AddMember("Message", _ErrorDescription) + + QueryStringKeyValuePair_Key = QueryStringKeyValuePair.AddMember("Key", _StringValue) + + QueryStringKeyValuePair_Value = QueryStringKeyValuePair.AddMember("Value", _StringValue) + + _QueryStringKeyValuePairList_member = _QueryStringKeyValuePairList.AddMember("member", QueryStringKeyValuePair) + + QueryStringConditionConfig_Values = QueryStringConditionConfig.AddMember("Values", _QueryStringKeyValuePairList) + + RemoveIpamPoolEnum_ipv4 = RemoveIpamPoolEnum.AddMember("ipv4", smithyprelude.Unit) + + _RemoveIpamPools_member = _RemoveIpamPools.AddMember("member", RemoveIpamPoolEnum) + + _ResourceArns_member = _ResourceArns.AddMember("member", _ResourceArn) + + ResourceInUseException_Message = ResourceInUseException.AddMember("Message", _ErrorDescription) + + ResourceNotFoundException_Message = ResourceNotFoundException.AddMember("Message", _ErrorDescription) + + RevocationContent_S3Bucket = RevocationContent.AddMember("S3Bucket", _S3Bucket) + + RevocationContent_S3Key = RevocationContent.AddMember("S3Key", _S3Key) + + RevocationContent_S3ObjectVersion = RevocationContent.AddMember("S3ObjectVersion", _S3ObjectVersion) + + RevocationContent_RevocationType = RevocationContent.AddMember("RevocationType", RevocationType) + + RevocationContentNotFoundException_Message = RevocationContentNotFoundException.AddMember("Message", _ErrorDescription) + + _RevocationContents_member = _RevocationContents.AddMember("member", RevocationContent) + + RevocationIdNotFoundException_Message = RevocationIdNotFoundException.AddMember("Message", _ErrorDescription) + + _RevocationIds_member = _RevocationIds.AddMember("member", _RevocationId) + + SourceIpAddressTypeEnum_IPV4 = SourceIpAddressTypeEnum.AddMember("IPV4", smithyprelude.Unit) + + SourceIpAddressTypeEnum_IPV6 = SourceIpAddressTypeEnum.AddMember("IPV6", smithyprelude.Unit) + + SourceIpConditionConfig_Values = SourceIpConditionConfig.AddMember("Values", _ListOfString) + + SourceIpConditionConfig_IpAddressType = SourceIpConditionConfig.AddMember("IpAddressType", SourceIpAddressTypeEnum) + + RuleCondition_Field = RuleCondition.AddMember("Field", _ConditionFieldName) + + RuleCondition_Values = RuleCondition.AddMember("Values", _ListOfString) + + RuleCondition_HostHeaderConfig = RuleCondition.AddMember("HostHeaderConfig", HostHeaderConditionConfig) + + RuleCondition_PathPatternConfig = RuleCondition.AddMember("PathPatternConfig", PathPatternConditionConfig) + + RuleCondition_HttpHeaderConfig = RuleCondition.AddMember("HttpHeaderConfig", HttpHeaderConditionConfig) + + RuleCondition_QueryStringConfig = RuleCondition.AddMember("QueryStringConfig", QueryStringConditionConfig) + + RuleCondition_HttpRequestMethodConfig = RuleCondition.AddMember("HttpRequestMethodConfig", HttpRequestMethodConditionConfig) + + RuleCondition_SourceIpConfig = RuleCondition.AddMember("SourceIpConfig", SourceIpConditionConfig) + + RuleCondition_RegexValues = RuleCondition.AddMember("RegexValues", _ListOfString) + + _RuleConditionList_member = _RuleConditionList.AddMember("member", RuleCondition) + + TransformTypeEnum_HOST_HEADER_REWRITE = TransformTypeEnum.AddMember("HOST_HEADER_REWRITE", smithyprelude.Unit) + + TransformTypeEnum_URL_REWRITE = TransformTypeEnum.AddMember("URL_REWRITE", smithyprelude.Unit) + + UrlRewriteConfig_Rewrites = UrlRewriteConfig.AddMember("Rewrites", _RewriteConfigList) + + RuleTransform_Type = RuleTransform.AddMember("Type", TransformTypeEnum) + + RuleTransform_HostHeaderRewriteConfig = RuleTransform.AddMember("HostHeaderRewriteConfig", HostHeaderRewriteConfig) + + RuleTransform_UrlRewriteConfig = RuleTransform.AddMember("UrlRewriteConfig", UrlRewriteConfig) + + _RuleTransformList_member = _RuleTransformList.AddMember("member", RuleTransform) + + Rule_RuleArn = Rule.AddMember("RuleArn", _RuleArn) + + Rule_Priority = Rule.AddMember("Priority", _String) + + Rule_Conditions = Rule.AddMember("Conditions", _RuleConditionList) + + Rule_Actions = Rule.AddMember("Actions", _Actions) + + Rule_IsDefault = Rule.AddMember("IsDefault", _IsDefault) + + Rule_Transforms = Rule.AddMember("Transforms", _RuleTransformList) + + _RuleArns_member = _RuleArns.AddMember("member", _RuleArn) + + RuleNotFoundException_Message = RuleNotFoundException.AddMember("Message", _ErrorDescription) + + RulePriorityPair_RuleArn = RulePriorityPair.AddMember("RuleArn", _RuleArn) + + RulePriorityPair_Priority = RulePriorityPair.AddMember("Priority", _RulePriority) + + _RulePriorityList_member = _RulePriorityList.AddMember("member", RulePriorityPair) + + _Rules_member = _Rules.AddMember("member", Rule) + + _SslProtocols_member = _SslProtocols.AddMember("member", _SslProtocol) + + SslPolicy_SslProtocols = SslPolicy.AddMember("SslProtocols", _SslProtocols) + + SslPolicy_Ciphers = SslPolicy.AddMember("Ciphers", _Ciphers) + + SslPolicy_Name = SslPolicy.AddMember("Name", _SslPolicyName) + + SslPolicy_SupportedLoadBalancerTypes = SslPolicy.AddMember("SupportedLoadBalancerTypes", _ListOfString) + + _SslPolicies_member = _SslPolicies.AddMember("member", SslPolicy) + + _SslPolicyNames_member = _SslPolicyNames.AddMember("member", _SslPolicyName) + + SSLPolicyNotFoundException_Message = SSLPolicyNotFoundException.AddMember("Message", _ErrorDescription) + + SubnetMapping_SubnetId = SubnetMapping.AddMember("SubnetId", _SubnetId) + + SubnetMapping_AllocationId = SubnetMapping.AddMember("AllocationId", _AllocationId) + + SubnetMapping_PrivateIPv4Address = SubnetMapping.AddMember("PrivateIPv4Address", _PrivateIPv4Address) + + SubnetMapping_IPv6Address = SubnetMapping.AddMember("IPv6Address", _IPv6Address) + + SubnetMapping_SourceNatIpv6Prefix = SubnetMapping.AddMember("SourceNatIpv6Prefix", _SourceNatIpv6Prefix) + + _SubnetMappings_member = _SubnetMappings.AddMember("member", SubnetMapping) + + SubnetNotFoundException_Message = SubnetNotFoundException.AddMember("Message", _ErrorDescription) + + _Subnets_member = _Subnets.AddMember("member", _SubnetId) + + Tag_Key = Tag.AddMember("Key", _TagKey) + + Tag_Value = Tag.AddMember("Value", _TagValue) + + _TagList_member = _TagList.AddMember("member", Tag) + + TagDescription_ResourceArn = TagDescription.AddMember("ResourceArn", _ResourceArn) + + TagDescription_Tags = TagDescription.AddMember("Tags", _TagList) + + _TagDescriptions_member = _TagDescriptions.AddMember("member", TagDescription) + + _TagKeys_member = _TagKeys.AddMember("member", _TagKey) + + TargetDescription_Id = TargetDescription.AddMember("Id", _TargetId) + + TargetDescription_Port = TargetDescription.AddMember("Port", _Port) + + TargetDescription_AvailabilityZone = TargetDescription.AddMember("AvailabilityZone", _ZoneName) + + TargetDescription_QuicServerId = TargetDescription.AddMember("QuicServerId", _QuicServerId) + + _TargetDescriptions_member = _TargetDescriptions.AddMember("member", TargetDescription) + + TargetTypeEnum_INSTANCE = TargetTypeEnum.AddMember("INSTANCE", smithyprelude.Unit) + + TargetTypeEnum_IP = TargetTypeEnum.AddMember("IP", smithyprelude.Unit) + + TargetTypeEnum_LAMBDA = TargetTypeEnum.AddMember("LAMBDA", smithyprelude.Unit) + + TargetTypeEnum_ALB = TargetTypeEnum.AddMember("ALB", smithyprelude.Unit) + + TargetGroupIpAddressTypeEnum_IPV4 = TargetGroupIpAddressTypeEnum.AddMember("IPV4", smithyprelude.Unit) + + TargetGroupIpAddressTypeEnum_IPV6 = TargetGroupIpAddressTypeEnum.AddMember("IPV6", smithyprelude.Unit) + + TargetGroup_TargetGroupArn = TargetGroup.AddMember("TargetGroupArn", _TargetGroupArn) + + TargetGroup_TargetGroupName = TargetGroup.AddMember("TargetGroupName", _TargetGroupName) + + TargetGroup_Protocol = TargetGroup.AddMember("Protocol", ProtocolEnum) + + TargetGroup_Port = TargetGroup.AddMember("Port", _Port) + + TargetGroup_VpcId = TargetGroup.AddMember("VpcId", _VpcId) + + TargetGroup_HealthCheckProtocol = TargetGroup.AddMember("HealthCheckProtocol", ProtocolEnum) + + TargetGroup_HealthCheckPort = TargetGroup.AddMember("HealthCheckPort", _HealthCheckPort) + + TargetGroup_HealthCheckEnabled = TargetGroup.AddMember("HealthCheckEnabled", _HealthCheckEnabled) + + TargetGroup_HealthCheckIntervalSeconds = TargetGroup.AddMember("HealthCheckIntervalSeconds", _HealthCheckIntervalSeconds) + + TargetGroup_HealthCheckTimeoutSeconds = TargetGroup.AddMember("HealthCheckTimeoutSeconds", _HealthCheckTimeoutSeconds) + + TargetGroup_HealthyThresholdCount = TargetGroup.AddMember("HealthyThresholdCount", _HealthCheckThresholdCount) + + TargetGroup_UnhealthyThresholdCount = TargetGroup.AddMember("UnhealthyThresholdCount", _HealthCheckThresholdCount) + + TargetGroup_HealthCheckPath = TargetGroup.AddMember("HealthCheckPath", _Path) + + TargetGroup_Matcher = TargetGroup.AddMember("Matcher", Matcher) + + TargetGroup_LoadBalancerArns = TargetGroup.AddMember("LoadBalancerArns", _LoadBalancerArns) + + TargetGroup_TargetType = TargetGroup.AddMember("TargetType", TargetTypeEnum) + + TargetGroup_ProtocolVersion = TargetGroup.AddMember("ProtocolVersion", _ProtocolVersion) + + TargetGroup_IpAddressType = TargetGroup.AddMember("IpAddressType", TargetGroupIpAddressTypeEnum) + + TargetGroup_TargetControlPort = TargetGroup.AddMember("TargetControlPort", _TargetControlPort) + + _TargetGroupArns_member = _TargetGroupArns.AddMember("member", _TargetGroupArn) + + TargetGroupAssociationLimitException_Message = TargetGroupAssociationLimitException.AddMember("Message", _ErrorDescription) + + TargetGroupAttribute_Key = TargetGroupAttribute.AddMember("Key", _TargetGroupAttributeKey) + + TargetGroupAttribute_Value = TargetGroupAttribute.AddMember("Value", _TargetGroupAttributeValue) + + _TargetGroupAttributes_member = _TargetGroupAttributes.AddMember("member", TargetGroupAttribute) + + _TargetGroupNames_member = _TargetGroupNames.AddMember("member", _TargetGroupName) + + TargetGroupNotFoundException_Message = TargetGroupNotFoundException.AddMember("Message", _ErrorDescription) + + _TargetGroups_member = _TargetGroups.AddMember("member", TargetGroup) + + TargetHealthStateEnum_INITIAL = TargetHealthStateEnum.AddMember("INITIAL", smithyprelude.Unit) + + TargetHealthStateEnum_HEALTHY = TargetHealthStateEnum.AddMember("HEALTHY", smithyprelude.Unit) + + TargetHealthStateEnum_UNHEALTHY = TargetHealthStateEnum.AddMember("UNHEALTHY", smithyprelude.Unit) + + TargetHealthStateEnum_UNHEALTHY_DRAINING = TargetHealthStateEnum.AddMember("UNHEALTHY_DRAINING", smithyprelude.Unit) + + TargetHealthStateEnum_UNUSED = TargetHealthStateEnum.AddMember("UNUSED", smithyprelude.Unit) + + TargetHealthStateEnum_DRAINING = TargetHealthStateEnum.AddMember("DRAINING", smithyprelude.Unit) + + TargetHealthStateEnum_UNAVAILABLE = TargetHealthStateEnum.AddMember("UNAVAILABLE", smithyprelude.Unit) + + TargetHealthReasonEnum_REGISTRATION_IN_PROGRESS = TargetHealthReasonEnum.AddMember("REGISTRATION_IN_PROGRESS", smithyprelude.Unit) + + TargetHealthReasonEnum_INITIAL_HEALTH_CHECKING = TargetHealthReasonEnum.AddMember("INITIAL_HEALTH_CHECKING", smithyprelude.Unit) + + TargetHealthReasonEnum_RESPONSE_CODE_MISMATCH = TargetHealthReasonEnum.AddMember("RESPONSE_CODE_MISMATCH", smithyprelude.Unit) + + TargetHealthReasonEnum_TIMEOUT = TargetHealthReasonEnum.AddMember("TIMEOUT", smithyprelude.Unit) + + TargetHealthReasonEnum_FAILED_HEALTH_CHECKS = TargetHealthReasonEnum.AddMember("FAILED_HEALTH_CHECKS", smithyprelude.Unit) + + TargetHealthReasonEnum_NOT_REGISTERED = TargetHealthReasonEnum.AddMember("NOT_REGISTERED", smithyprelude.Unit) + + TargetHealthReasonEnum_NOT_IN_USE = TargetHealthReasonEnum.AddMember("NOT_IN_USE", smithyprelude.Unit) + + TargetHealthReasonEnum_DEREGISTRATION_IN_PROGRESS = TargetHealthReasonEnum.AddMember("DEREGISTRATION_IN_PROGRESS", smithyprelude.Unit) + + TargetHealthReasonEnum_INVALID_STATE = TargetHealthReasonEnum.AddMember("INVALID_STATE", smithyprelude.Unit) + + TargetHealthReasonEnum_IP_UNUSABLE = TargetHealthReasonEnum.AddMember("IP_UNUSABLE", smithyprelude.Unit) + + TargetHealthReasonEnum_HEALTH_CHECK_DISABLED = TargetHealthReasonEnum.AddMember("HEALTH_CHECK_DISABLED", smithyprelude.Unit) + + TargetHealthReasonEnum_INTERNAL_ERROR = TargetHealthReasonEnum.AddMember("INTERNAL_ERROR", smithyprelude.Unit) + + TargetHealth_State = TargetHealth.AddMember("State", TargetHealthStateEnum) + + TargetHealth_Reason = TargetHealth.AddMember("Reason", TargetHealthReasonEnum) + + TargetHealth_Description = TargetHealth.AddMember("Description", _Description) + + TargetHealthDescription_Target = TargetHealthDescription.AddMember("Target", TargetDescription) + + TargetHealthDescription_HealthCheckPort = TargetHealthDescription.AddMember("HealthCheckPort", _HealthCheckPort) + + TargetHealthDescription_TargetHealth = TargetHealthDescription.AddMember("TargetHealth", TargetHealth) + + TargetHealthDescription_AnomalyDetection = TargetHealthDescription.AddMember("AnomalyDetection", AnomalyDetection) + + TargetHealthDescription_AdministrativeOverride = TargetHealthDescription.AddMember("AdministrativeOverride", AdministrativeOverride) + + _TargetHealthDescriptions_member = _TargetHealthDescriptions.AddMember("member", TargetHealthDescription) + + TooManyActionsException_Message = TooManyActionsException.AddMember("Message", _ErrorDescription) + + TooManyCertificatesException_Message = TooManyCertificatesException.AddMember("Message", _ErrorDescription) + + TooManyListenersException_Message = TooManyListenersException.AddMember("Message", _ErrorDescription) + + TooManyLoadBalancersException_Message = TooManyLoadBalancersException.AddMember("Message", _ErrorDescription) + + TooManyRegistrationsForTargetIdException_Message = TooManyRegistrationsForTargetIdException.AddMember("Message", _ErrorDescription) + + TooManyRulesException_Message = TooManyRulesException.AddMember("Message", _ErrorDescription) + + TooManyTagsException_Message = TooManyTagsException.AddMember("Message", _ErrorDescription) + + TooManyTargetGroupsException_Message = TooManyTargetGroupsException.AddMember("Message", _ErrorDescription) + + TooManyTargetsException_Message = TooManyTargetsException.AddMember("Message", _ErrorDescription) + + TooManyTrustStoreRevocationEntriesException_Message = TooManyTrustStoreRevocationEntriesException.AddMember("Message", _ErrorDescription) + + TooManyTrustStoresException_Message = TooManyTrustStoresException.AddMember("Message", _ErrorDescription) + + TooManyUniqueTargetGroupsPerLoadBalancerException_Message = TooManyUniqueTargetGroupsPerLoadBalancerException.AddMember("Message", _ErrorDescription) + + TrustStoreStatus_ACTIVE = TrustStoreStatus.AddMember("ACTIVE", smithyprelude.Unit) + + TrustStoreStatus_CREATING = TrustStoreStatus.AddMember("CREATING", smithyprelude.Unit) + + TrustStore_Name = TrustStore.AddMember("Name", _TrustStoreName) + + TrustStore_TrustStoreArn = TrustStore.AddMember("TrustStoreArn", _TrustStoreArn) + + TrustStore_Status = TrustStore.AddMember("Status", TrustStoreStatus) + + TrustStore_NumberOfCaCertificates = TrustStore.AddMember("NumberOfCaCertificates", _NumberOfCaCertificates) + + TrustStore_TotalRevokedEntries = TrustStore.AddMember("TotalRevokedEntries", _TotalRevokedEntries) + + _TrustStoreArns_member = _TrustStoreArns.AddMember("member", _TrustStoreArn) + + TrustStoreAssociation_ResourceArn = TrustStoreAssociation.AddMember("ResourceArn", _TrustStoreAssociationResourceArn) + + TrustStoreAssociationNotFoundException_Message = TrustStoreAssociationNotFoundException.AddMember("Message", _ErrorDescription) + + _TrustStoreAssociations_member = _TrustStoreAssociations.AddMember("member", TrustStoreAssociation) + + TrustStoreInUseException_Message = TrustStoreInUseException.AddMember("Message", _ErrorDescription) + + _TrustStoreNames_member = _TrustStoreNames.AddMember("member", _TrustStoreName) + + TrustStoreNotFoundException_Message = TrustStoreNotFoundException.AddMember("Message", _ErrorDescription) + + TrustStoreNotReadyException_Message = TrustStoreNotReadyException.AddMember("Message", _ErrorDescription) + + TrustStoreRevocation_TrustStoreArn = TrustStoreRevocation.AddMember("TrustStoreArn", _TrustStoreArn) + + TrustStoreRevocation_RevocationId = TrustStoreRevocation.AddMember("RevocationId", _RevocationId) + + TrustStoreRevocation_RevocationType = TrustStoreRevocation.AddMember("RevocationType", RevocationType) + + TrustStoreRevocation_NumberOfRevokedEntries = TrustStoreRevocation.AddMember("NumberOfRevokedEntries", _NumberOfRevokedEntries) + + _TrustStoreRevocations_member = _TrustStoreRevocations.AddMember("member", TrustStoreRevocation) + + _TrustStores_member = _TrustStores.AddMember("member", TrustStore) + + UnsupportedProtocolException_Message = UnsupportedProtocolException.AddMember("Message", _ErrorDescription) + + ZonalCapacityReservationState_State = ZonalCapacityReservationState.AddMember("State", CapacityReservationStatus) + + ZonalCapacityReservationState_AvailabilityZone = ZonalCapacityReservationState.AddMember("AvailabilityZone", _ZoneName) + + ZonalCapacityReservationState_EffectiveCapacityUnits = ZonalCapacityReservationState.AddMember("EffectiveCapacityUnits", _CapacityUnitsDouble) + + _ZonalCapacityReservationStates_member = _ZonalCapacityReservationStates.AddMember("member", ZonalCapacityReservationState) + + AddListenerCertificatesInput_ListenerArn = AddListenerCertificatesInput.AddMember("ListenerArn", _ListenerArn) + + AddListenerCertificatesInput_Certificates = AddListenerCertificatesInput.AddMember("Certificates", _CertificateList) + + AddListenerCertificatesOutput_Certificates = AddListenerCertificatesOutput.AddMember("Certificates", _CertificateList) + + AddTagsInput_ResourceArns = AddTagsInput.AddMember("ResourceArns", _ResourceArns) + + AddTagsInput_Tags = AddTagsInput.AddMember("Tags", _TagList) + + AddTrustStoreRevocationsInput_TrustStoreArn = AddTrustStoreRevocationsInput.AddMember("TrustStoreArn", _TrustStoreArn) + + AddTrustStoreRevocationsInput_RevocationContents = AddTrustStoreRevocationsInput.AddMember("RevocationContents", _RevocationContents) + + AddTrustStoreRevocationsOutput_TrustStoreRevocations = AddTrustStoreRevocationsOutput.AddMember("TrustStoreRevocations", _TrustStoreRevocations) + + CreateListenerInput_LoadBalancerArn = CreateListenerInput.AddMember("LoadBalancerArn", _LoadBalancerArn) + + CreateListenerInput_Protocol = CreateListenerInput.AddMember("Protocol", ProtocolEnum) + + CreateListenerInput_Port = CreateListenerInput.AddMember("Port", _Port) + + CreateListenerInput_SslPolicy = CreateListenerInput.AddMember("SslPolicy", _SslPolicyName) + + CreateListenerInput_Certificates = CreateListenerInput.AddMember("Certificates", _CertificateList) + + CreateListenerInput_DefaultActions = CreateListenerInput.AddMember("DefaultActions", _Actions) + + CreateListenerInput_AlpnPolicy = CreateListenerInput.AddMember("AlpnPolicy", _AlpnPolicyName) + + CreateListenerInput_Tags = CreateListenerInput.AddMember("Tags", _TagList) + + CreateListenerInput_MutualAuthentication = CreateListenerInput.AddMember("MutualAuthentication", MutualAuthenticationAttributes) + + CreateListenerOutput_Listeners = CreateListenerOutput.AddMember("Listeners", _Listeners) + + CreateLoadBalancerInput_Name = CreateLoadBalancerInput.AddMember("Name", _LoadBalancerName) + + CreateLoadBalancerInput_Subnets = CreateLoadBalancerInput.AddMember("Subnets", _Subnets) + + CreateLoadBalancerInput_SubnetMappings = CreateLoadBalancerInput.AddMember("SubnetMappings", _SubnetMappings) + + CreateLoadBalancerInput_SecurityGroups = CreateLoadBalancerInput.AddMember("SecurityGroups", _SecurityGroups) + + CreateLoadBalancerInput_Scheme = CreateLoadBalancerInput.AddMember("Scheme", LoadBalancerSchemeEnum) + + CreateLoadBalancerInput_Tags = CreateLoadBalancerInput.AddMember("Tags", _TagList) + + CreateLoadBalancerInput_Type = CreateLoadBalancerInput.AddMember("Type", LoadBalancerTypeEnum) + + CreateLoadBalancerInput_IpAddressType = CreateLoadBalancerInput.AddMember("IpAddressType", IpAddressType) + + CreateLoadBalancerInput_CustomerOwnedIpv4Pool = CreateLoadBalancerInput.AddMember("CustomerOwnedIpv4Pool", _CustomerOwnedIpv4Pool) + + CreateLoadBalancerInput_EnablePrefixForIpv6SourceNat = CreateLoadBalancerInput.AddMember("EnablePrefixForIpv6SourceNat", EnablePrefixForIpv6SourceNatEnum) + + CreateLoadBalancerInput_IpamPools = CreateLoadBalancerInput.AddMember("IpamPools", IpamPools) + + CreateLoadBalancerOutput_LoadBalancers = CreateLoadBalancerOutput.AddMember("LoadBalancers", _LoadBalancers) + + CreateRuleInput_ListenerArn = CreateRuleInput.AddMember("ListenerArn", _ListenerArn) + + CreateRuleInput_Conditions = CreateRuleInput.AddMember("Conditions", _RuleConditionList) + + CreateRuleInput_Priority = CreateRuleInput.AddMember("Priority", _RulePriority) + + CreateRuleInput_Actions = CreateRuleInput.AddMember("Actions", _Actions) + + CreateRuleInput_Tags = CreateRuleInput.AddMember("Tags", _TagList) + + CreateRuleInput_Transforms = CreateRuleInput.AddMember("Transforms", _RuleTransformList) + + CreateRuleOutput_Rules = CreateRuleOutput.AddMember("Rules", _Rules) + + CreateTargetGroupInput_Name = CreateTargetGroupInput.AddMember("Name", _TargetGroupName) + + CreateTargetGroupInput_Protocol = CreateTargetGroupInput.AddMember("Protocol", ProtocolEnum) + + CreateTargetGroupInput_ProtocolVersion = CreateTargetGroupInput.AddMember("ProtocolVersion", _ProtocolVersion) + + CreateTargetGroupInput_Port = CreateTargetGroupInput.AddMember("Port", _Port) + + CreateTargetGroupInput_VpcId = CreateTargetGroupInput.AddMember("VpcId", _VpcId) + + CreateTargetGroupInput_HealthCheckProtocol = CreateTargetGroupInput.AddMember("HealthCheckProtocol", ProtocolEnum) + + CreateTargetGroupInput_HealthCheckPort = CreateTargetGroupInput.AddMember("HealthCheckPort", _HealthCheckPort) + + CreateTargetGroupInput_HealthCheckEnabled = CreateTargetGroupInput.AddMember("HealthCheckEnabled", _HealthCheckEnabled) + + CreateTargetGroupInput_HealthCheckPath = CreateTargetGroupInput.AddMember("HealthCheckPath", _Path) + + CreateTargetGroupInput_HealthCheckIntervalSeconds = CreateTargetGroupInput.AddMember("HealthCheckIntervalSeconds", _HealthCheckIntervalSeconds) + + CreateTargetGroupInput_HealthCheckTimeoutSeconds = CreateTargetGroupInput.AddMember("HealthCheckTimeoutSeconds", _HealthCheckTimeoutSeconds) + + CreateTargetGroupInput_HealthyThresholdCount = CreateTargetGroupInput.AddMember("HealthyThresholdCount", _HealthCheckThresholdCount) + + CreateTargetGroupInput_UnhealthyThresholdCount = CreateTargetGroupInput.AddMember("UnhealthyThresholdCount", _HealthCheckThresholdCount) + + CreateTargetGroupInput_Matcher = CreateTargetGroupInput.AddMember("Matcher", Matcher) + + CreateTargetGroupInput_TargetType = CreateTargetGroupInput.AddMember("TargetType", TargetTypeEnum) + + CreateTargetGroupInput_Tags = CreateTargetGroupInput.AddMember("Tags", _TagList) + + CreateTargetGroupInput_IpAddressType = CreateTargetGroupInput.AddMember("IpAddressType", TargetGroupIpAddressTypeEnum) + + CreateTargetGroupInput_TargetControlPort = CreateTargetGroupInput.AddMember("TargetControlPort", _TargetControlPort) + + CreateTargetGroupOutput_TargetGroups = CreateTargetGroupOutput.AddMember("TargetGroups", _TargetGroups) + + CreateTrustStoreInput_Name = CreateTrustStoreInput.AddMember("Name", _TrustStoreName) + + CreateTrustStoreInput_CaCertificatesBundleS3Bucket = CreateTrustStoreInput.AddMember("CaCertificatesBundleS3Bucket", _S3Bucket) + + CreateTrustStoreInput_CaCertificatesBundleS3Key = CreateTrustStoreInput.AddMember("CaCertificatesBundleS3Key", _S3Key) + + CreateTrustStoreInput_CaCertificatesBundleS3ObjectVersion = CreateTrustStoreInput.AddMember("CaCertificatesBundleS3ObjectVersion", _S3ObjectVersion) + + CreateTrustStoreInput_Tags = CreateTrustStoreInput.AddMember("Tags", _TagList) + + CreateTrustStoreOutput_TrustStores = CreateTrustStoreOutput.AddMember("TrustStores", _TrustStores) + + DeleteListenerInput_ListenerArn = DeleteListenerInput.AddMember("ListenerArn", _ListenerArn) + + DeleteLoadBalancerInput_LoadBalancerArn = DeleteLoadBalancerInput.AddMember("LoadBalancerArn", _LoadBalancerArn) + + DeleteRuleInput_RuleArn = DeleteRuleInput.AddMember("RuleArn", _RuleArn) + + DeleteSharedTrustStoreAssociationInput_TrustStoreArn = DeleteSharedTrustStoreAssociationInput.AddMember("TrustStoreArn", _TrustStoreArn) + + DeleteSharedTrustStoreAssociationInput_ResourceArn = DeleteSharedTrustStoreAssociationInput.AddMember("ResourceArn", _ResourceArn) + + DeleteTargetGroupInput_TargetGroupArn = DeleteTargetGroupInput.AddMember("TargetGroupArn", _TargetGroupArn) + + DeleteTrustStoreInput_TrustStoreArn = DeleteTrustStoreInput.AddMember("TrustStoreArn", _TrustStoreArn) + + DeregisterTargetsInput_TargetGroupArn = DeregisterTargetsInput.AddMember("TargetGroupArn", _TargetGroupArn) + + DeregisterTargetsInput_Targets = DeregisterTargetsInput.AddMember("Targets", _TargetDescriptions) + + DescribeAccountLimitsInput_Marker = DescribeAccountLimitsInput.AddMember("Marker", _Marker) + + DescribeAccountLimitsInput_PageSize = DescribeAccountLimitsInput.AddMember("PageSize", _PageSize) + + DescribeAccountLimitsOutput_Limits = DescribeAccountLimitsOutput.AddMember("Limits", _Limits) + + DescribeAccountLimitsOutput_NextMarker = DescribeAccountLimitsOutput.AddMember("NextMarker", _Marker) + + DescribeCapacityReservationInput_LoadBalancerArn = DescribeCapacityReservationInput.AddMember("LoadBalancerArn", _LoadBalancerArn) + + DescribeCapacityReservationOutput_LastModifiedTime = DescribeCapacityReservationOutput.AddMember("LastModifiedTime", _LastModifiedTime) + + DescribeCapacityReservationOutput_DecreaseRequestsRemaining = DescribeCapacityReservationOutput.AddMember("DecreaseRequestsRemaining", _DecreaseRequestsRemaining) + + DescribeCapacityReservationOutput_MinimumLoadBalancerCapacity = DescribeCapacityReservationOutput.AddMember("MinimumLoadBalancerCapacity", MinimumLoadBalancerCapacity) + + DescribeCapacityReservationOutput_CapacityReservationState = DescribeCapacityReservationOutput.AddMember("CapacityReservationState", _ZonalCapacityReservationStates) + + DescribeListenerAttributesInput_ListenerArn = DescribeListenerAttributesInput.AddMember("ListenerArn", _ListenerArn) + + DescribeListenerAttributesOutput_Attributes = DescribeListenerAttributesOutput.AddMember("Attributes", _ListenerAttributes) + + DescribeListenerCertificatesInput_ListenerArn = DescribeListenerCertificatesInput.AddMember("ListenerArn", _ListenerArn) + + DescribeListenerCertificatesInput_Marker = DescribeListenerCertificatesInput.AddMember("Marker", _Marker) + + DescribeListenerCertificatesInput_PageSize = DescribeListenerCertificatesInput.AddMember("PageSize", _PageSize) + + DescribeListenerCertificatesOutput_Certificates = DescribeListenerCertificatesOutput.AddMember("Certificates", _CertificateList) + + DescribeListenerCertificatesOutput_NextMarker = DescribeListenerCertificatesOutput.AddMember("NextMarker", _Marker) + + DescribeListenersInput_LoadBalancerArn = DescribeListenersInput.AddMember("LoadBalancerArn", _LoadBalancerArn) + + DescribeListenersInput_ListenerArns = DescribeListenersInput.AddMember("ListenerArns", _ListenerArns) + + DescribeListenersInput_Marker = DescribeListenersInput.AddMember("Marker", _Marker) + + DescribeListenersInput_PageSize = DescribeListenersInput.AddMember("PageSize", _PageSize) + + DescribeListenersOutput_Listeners = DescribeListenersOutput.AddMember("Listeners", _Listeners) + + DescribeListenersOutput_NextMarker = DescribeListenersOutput.AddMember("NextMarker", _Marker) + + DescribeLoadBalancerAttributesInput_LoadBalancerArn = DescribeLoadBalancerAttributesInput.AddMember("LoadBalancerArn", _LoadBalancerArn) + + DescribeLoadBalancerAttributesOutput_Attributes = DescribeLoadBalancerAttributesOutput.AddMember("Attributes", _LoadBalancerAttributes) + + DescribeLoadBalancersInput_LoadBalancerArns = DescribeLoadBalancersInput.AddMember("LoadBalancerArns", _LoadBalancerArns) + + DescribeLoadBalancersInput_Names = DescribeLoadBalancersInput.AddMember("Names", _LoadBalancerNames) + + DescribeLoadBalancersInput_Marker = DescribeLoadBalancersInput.AddMember("Marker", _Marker) + + DescribeLoadBalancersInput_PageSize = DescribeLoadBalancersInput.AddMember("PageSize", _PageSize) + + DescribeLoadBalancersOutput_LoadBalancers = DescribeLoadBalancersOutput.AddMember("LoadBalancers", _LoadBalancers) + + DescribeLoadBalancersOutput_NextMarker = DescribeLoadBalancersOutput.AddMember("NextMarker", _Marker) + + DescribeRulesInput_ListenerArn = DescribeRulesInput.AddMember("ListenerArn", _ListenerArn) + + DescribeRulesInput_RuleArns = DescribeRulesInput.AddMember("RuleArns", _RuleArns) + + DescribeRulesInput_Marker = DescribeRulesInput.AddMember("Marker", _Marker) + + DescribeRulesInput_PageSize = DescribeRulesInput.AddMember("PageSize", _PageSize) + + DescribeRulesOutput_Rules = DescribeRulesOutput.AddMember("Rules", _Rules) + + DescribeRulesOutput_NextMarker = DescribeRulesOutput.AddMember("NextMarker", _Marker) + + DescribeSSLPoliciesInput_Names = DescribeSSLPoliciesInput.AddMember("Names", _SslPolicyNames) + + DescribeSSLPoliciesInput_Marker = DescribeSSLPoliciesInput.AddMember("Marker", _Marker) + + DescribeSSLPoliciesInput_PageSize = DescribeSSLPoliciesInput.AddMember("PageSize", _PageSize) + + DescribeSSLPoliciesInput_LoadBalancerType = DescribeSSLPoliciesInput.AddMember("LoadBalancerType", LoadBalancerTypeEnum) + + DescribeSSLPoliciesOutput_SslPolicies = DescribeSSLPoliciesOutput.AddMember("SslPolicies", _SslPolicies) + + DescribeSSLPoliciesOutput_NextMarker = DescribeSSLPoliciesOutput.AddMember("NextMarker", _Marker) + + DescribeTagsInput_ResourceArns = DescribeTagsInput.AddMember("ResourceArns", _ResourceArns) + + DescribeTagsOutput_TagDescriptions = DescribeTagsOutput.AddMember("TagDescriptions", _TagDescriptions) + + DescribeTargetGroupAttributesInput_TargetGroupArn = DescribeTargetGroupAttributesInput.AddMember("TargetGroupArn", _TargetGroupArn) + + DescribeTargetGroupAttributesOutput_Attributes = DescribeTargetGroupAttributesOutput.AddMember("Attributes", _TargetGroupAttributes) + + DescribeTargetGroupsInput_LoadBalancerArn = DescribeTargetGroupsInput.AddMember("LoadBalancerArn", _LoadBalancerArn) + + DescribeTargetGroupsInput_TargetGroupArns = DescribeTargetGroupsInput.AddMember("TargetGroupArns", _TargetGroupArns) + + DescribeTargetGroupsInput_Names = DescribeTargetGroupsInput.AddMember("Names", _TargetGroupNames) + + DescribeTargetGroupsInput_Marker = DescribeTargetGroupsInput.AddMember("Marker", _Marker) + + DescribeTargetGroupsInput_PageSize = DescribeTargetGroupsInput.AddMember("PageSize", _PageSize) + + DescribeTargetGroupsOutput_TargetGroups = DescribeTargetGroupsOutput.AddMember("TargetGroups", _TargetGroups) + + DescribeTargetGroupsOutput_NextMarker = DescribeTargetGroupsOutput.AddMember("NextMarker", _Marker) + + DescribeTargetHealthInput_TargetGroupArn = DescribeTargetHealthInput.AddMember("TargetGroupArn", _TargetGroupArn) + + DescribeTargetHealthInput_Targets = DescribeTargetHealthInput.AddMember("Targets", _TargetDescriptions) + + DescribeTargetHealthInput_Include = DescribeTargetHealthInput.AddMember("Include", _ListOfDescribeTargetHealthIncludeOptions) + + DescribeTargetHealthOutput_TargetHealthDescriptions = DescribeTargetHealthOutput.AddMember("TargetHealthDescriptions", _TargetHealthDescriptions) + + DescribeTrustStoreAssociationsInput_TrustStoreArn = DescribeTrustStoreAssociationsInput.AddMember("TrustStoreArn", _TrustStoreArn) + + DescribeTrustStoreAssociationsInput_Marker = DescribeTrustStoreAssociationsInput.AddMember("Marker", _Marker) + + DescribeTrustStoreAssociationsInput_PageSize = DescribeTrustStoreAssociationsInput.AddMember("PageSize", _PageSize) + + DescribeTrustStoreAssociationsOutput_TrustStoreAssociations = DescribeTrustStoreAssociationsOutput.AddMember("TrustStoreAssociations", _TrustStoreAssociations) + + DescribeTrustStoreAssociationsOutput_NextMarker = DescribeTrustStoreAssociationsOutput.AddMember("NextMarker", _Marker) + + DescribeTrustStoreRevocationsInput_TrustStoreArn = DescribeTrustStoreRevocationsInput.AddMember("TrustStoreArn", _TrustStoreArn) + + DescribeTrustStoreRevocationsInput_RevocationIds = DescribeTrustStoreRevocationsInput.AddMember("RevocationIds", _RevocationIds) + + DescribeTrustStoreRevocationsInput_Marker = DescribeTrustStoreRevocationsInput.AddMember("Marker", _Marker) + + DescribeTrustStoreRevocationsInput_PageSize = DescribeTrustStoreRevocationsInput.AddMember("PageSize", _PageSize) + + DescribeTrustStoreRevocationsOutput_TrustStoreRevocations = DescribeTrustStoreRevocationsOutput.AddMember("TrustStoreRevocations", _DescribeTrustStoreRevocationResponse) + + DescribeTrustStoreRevocationsOutput_NextMarker = DescribeTrustStoreRevocationsOutput.AddMember("NextMarker", _Marker) + + DescribeTrustStoresInput_TrustStoreArns = DescribeTrustStoresInput.AddMember("TrustStoreArns", _TrustStoreArns) + + DescribeTrustStoresInput_Names = DescribeTrustStoresInput.AddMember("Names", _TrustStoreNames) + + DescribeTrustStoresInput_Marker = DescribeTrustStoresInput.AddMember("Marker", _Marker) + + DescribeTrustStoresInput_PageSize = DescribeTrustStoresInput.AddMember("PageSize", _PageSize) + + DescribeTrustStoresOutput_TrustStores = DescribeTrustStoresOutput.AddMember("TrustStores", _TrustStores) + + DescribeTrustStoresOutput_NextMarker = DescribeTrustStoresOutput.AddMember("NextMarker", _Marker) + + GetResourcePolicyInput_ResourceArn = GetResourcePolicyInput.AddMember("ResourceArn", _ResourceArn) + + GetResourcePolicyOutput_Policy = GetResourcePolicyOutput.AddMember("Policy", _Policy) + + GetTrustStoreCaCertificatesBundleInput_TrustStoreArn = GetTrustStoreCaCertificatesBundleInput.AddMember("TrustStoreArn", _TrustStoreArn) + + GetTrustStoreCaCertificatesBundleOutput_Location = GetTrustStoreCaCertificatesBundleOutput.AddMember("Location", _Location) + + GetTrustStoreRevocationContentInput_TrustStoreArn = GetTrustStoreRevocationContentInput.AddMember("TrustStoreArn", _TrustStoreArn) + + GetTrustStoreRevocationContentInput_RevocationId = GetTrustStoreRevocationContentInput.AddMember("RevocationId", _RevocationId) + + GetTrustStoreRevocationContentOutput_Location = GetTrustStoreRevocationContentOutput.AddMember("Location", _Location) + + ModifyCapacityReservationInput_LoadBalancerArn = ModifyCapacityReservationInput.AddMember("LoadBalancerArn", _LoadBalancerArn) + + ModifyCapacityReservationInput_MinimumLoadBalancerCapacity = ModifyCapacityReservationInput.AddMember("MinimumLoadBalancerCapacity", MinimumLoadBalancerCapacity) + + ModifyCapacityReservationInput_ResetCapacityReservation = ModifyCapacityReservationInput.AddMember("ResetCapacityReservation", _ResetCapacityReservation) + + ModifyCapacityReservationOutput_LastModifiedTime = ModifyCapacityReservationOutput.AddMember("LastModifiedTime", _LastModifiedTime) + + ModifyCapacityReservationOutput_DecreaseRequestsRemaining = ModifyCapacityReservationOutput.AddMember("DecreaseRequestsRemaining", _DecreaseRequestsRemaining) + + ModifyCapacityReservationOutput_MinimumLoadBalancerCapacity = ModifyCapacityReservationOutput.AddMember("MinimumLoadBalancerCapacity", MinimumLoadBalancerCapacity) + + ModifyCapacityReservationOutput_CapacityReservationState = ModifyCapacityReservationOutput.AddMember("CapacityReservationState", _ZonalCapacityReservationStates) + + ModifyIpPoolsInput_LoadBalancerArn = ModifyIpPoolsInput.AddMember("LoadBalancerArn", _LoadBalancerArn) + + ModifyIpPoolsInput_IpamPools = ModifyIpPoolsInput.AddMember("IpamPools", IpamPools) + + ModifyIpPoolsInput_RemoveIpamPools = ModifyIpPoolsInput.AddMember("RemoveIpamPools", _RemoveIpamPools) + + ModifyIpPoolsOutput_IpamPools = ModifyIpPoolsOutput.AddMember("IpamPools", IpamPools) + + ModifyListenerAttributesInput_ListenerArn = ModifyListenerAttributesInput.AddMember("ListenerArn", _ListenerArn) + + ModifyListenerAttributesInput_Attributes = ModifyListenerAttributesInput.AddMember("Attributes", _ListenerAttributes) + + ModifyListenerAttributesOutput_Attributes = ModifyListenerAttributesOutput.AddMember("Attributes", _ListenerAttributes) + + ModifyListenerInput_ListenerArn = ModifyListenerInput.AddMember("ListenerArn", _ListenerArn) + + ModifyListenerInput_Port = ModifyListenerInput.AddMember("Port", _Port) + + ModifyListenerInput_Protocol = ModifyListenerInput.AddMember("Protocol", ProtocolEnum) + + ModifyListenerInput_SslPolicy = ModifyListenerInput.AddMember("SslPolicy", _SslPolicyName) + + ModifyListenerInput_Certificates = ModifyListenerInput.AddMember("Certificates", _CertificateList) + + ModifyListenerInput_DefaultActions = ModifyListenerInput.AddMember("DefaultActions", _Actions) + + ModifyListenerInput_AlpnPolicy = ModifyListenerInput.AddMember("AlpnPolicy", _AlpnPolicyName) + + ModifyListenerInput_MutualAuthentication = ModifyListenerInput.AddMember("MutualAuthentication", MutualAuthenticationAttributes) + + ModifyListenerOutput_Listeners = ModifyListenerOutput.AddMember("Listeners", _Listeners) + + ModifyLoadBalancerAttributesInput_LoadBalancerArn = ModifyLoadBalancerAttributesInput.AddMember("LoadBalancerArn", _LoadBalancerArn) + + ModifyLoadBalancerAttributesInput_Attributes = ModifyLoadBalancerAttributesInput.AddMember("Attributes", _LoadBalancerAttributes) + + ModifyLoadBalancerAttributesOutput_Attributes = ModifyLoadBalancerAttributesOutput.AddMember("Attributes", _LoadBalancerAttributes) + + ModifyRuleInput_RuleArn = ModifyRuleInput.AddMember("RuleArn", _RuleArn) + + ModifyRuleInput_Conditions = ModifyRuleInput.AddMember("Conditions", _RuleConditionList) + + ModifyRuleInput_Actions = ModifyRuleInput.AddMember("Actions", _Actions) + + ModifyRuleInput_Transforms = ModifyRuleInput.AddMember("Transforms", _RuleTransformList) + + ModifyRuleInput_ResetTransforms = ModifyRuleInput.AddMember("ResetTransforms", _ResetTransforms) + + ModifyRuleOutput_Rules = ModifyRuleOutput.AddMember("Rules", _Rules) + + ModifyTargetGroupAttributesInput_TargetGroupArn = ModifyTargetGroupAttributesInput.AddMember("TargetGroupArn", _TargetGroupArn) + + ModifyTargetGroupAttributesInput_Attributes = ModifyTargetGroupAttributesInput.AddMember("Attributes", _TargetGroupAttributes) + + ModifyTargetGroupAttributesOutput_Attributes = ModifyTargetGroupAttributesOutput.AddMember("Attributes", _TargetGroupAttributes) + + ModifyTargetGroupInput_TargetGroupArn = ModifyTargetGroupInput.AddMember("TargetGroupArn", _TargetGroupArn) + + ModifyTargetGroupInput_HealthCheckProtocol = ModifyTargetGroupInput.AddMember("HealthCheckProtocol", ProtocolEnum) + + ModifyTargetGroupInput_HealthCheckPort = ModifyTargetGroupInput.AddMember("HealthCheckPort", _HealthCheckPort) + + ModifyTargetGroupInput_HealthCheckPath = ModifyTargetGroupInput.AddMember("HealthCheckPath", _Path) + + ModifyTargetGroupInput_HealthCheckEnabled = ModifyTargetGroupInput.AddMember("HealthCheckEnabled", _HealthCheckEnabled) + + ModifyTargetGroupInput_HealthCheckIntervalSeconds = ModifyTargetGroupInput.AddMember("HealthCheckIntervalSeconds", _HealthCheckIntervalSeconds) + + ModifyTargetGroupInput_HealthCheckTimeoutSeconds = ModifyTargetGroupInput.AddMember("HealthCheckTimeoutSeconds", _HealthCheckTimeoutSeconds) + + ModifyTargetGroupInput_HealthyThresholdCount = ModifyTargetGroupInput.AddMember("HealthyThresholdCount", _HealthCheckThresholdCount) + + ModifyTargetGroupInput_UnhealthyThresholdCount = ModifyTargetGroupInput.AddMember("UnhealthyThresholdCount", _HealthCheckThresholdCount) + + ModifyTargetGroupInput_Matcher = ModifyTargetGroupInput.AddMember("Matcher", Matcher) + + ModifyTargetGroupOutput_TargetGroups = ModifyTargetGroupOutput.AddMember("TargetGroups", _TargetGroups) + + ModifyTrustStoreInput_TrustStoreArn = ModifyTrustStoreInput.AddMember("TrustStoreArn", _TrustStoreArn) + + ModifyTrustStoreInput_CaCertificatesBundleS3Bucket = ModifyTrustStoreInput.AddMember("CaCertificatesBundleS3Bucket", _S3Bucket) + + ModifyTrustStoreInput_CaCertificatesBundleS3Key = ModifyTrustStoreInput.AddMember("CaCertificatesBundleS3Key", _S3Key) + + ModifyTrustStoreInput_CaCertificatesBundleS3ObjectVersion = ModifyTrustStoreInput.AddMember("CaCertificatesBundleS3ObjectVersion", _S3ObjectVersion) + + ModifyTrustStoreOutput_TrustStores = ModifyTrustStoreOutput.AddMember("TrustStores", _TrustStores) + + RegisterTargetsInput_TargetGroupArn = RegisterTargetsInput.AddMember("TargetGroupArn", _TargetGroupArn) + + RegisterTargetsInput_Targets = RegisterTargetsInput.AddMember("Targets", _TargetDescriptions) + + RemoveListenerCertificatesInput_ListenerArn = RemoveListenerCertificatesInput.AddMember("ListenerArn", _ListenerArn) + + RemoveListenerCertificatesInput_Certificates = RemoveListenerCertificatesInput.AddMember("Certificates", _CertificateList) + + RemoveTagsInput_ResourceArns = RemoveTagsInput.AddMember("ResourceArns", _ResourceArns) + + RemoveTagsInput_TagKeys = RemoveTagsInput.AddMember("TagKeys", _TagKeys) + + RemoveTrustStoreRevocationsInput_TrustStoreArn = RemoveTrustStoreRevocationsInput.AddMember("TrustStoreArn", _TrustStoreArn) + + RemoveTrustStoreRevocationsInput_RevocationIds = RemoveTrustStoreRevocationsInput.AddMember("RevocationIds", _RevocationIds) + + SetIpAddressTypeInput_LoadBalancerArn = SetIpAddressTypeInput.AddMember("LoadBalancerArn", _LoadBalancerArn) + + SetIpAddressTypeInput_IpAddressType = SetIpAddressTypeInput.AddMember("IpAddressType", IpAddressType) + + SetIpAddressTypeOutput_IpAddressType = SetIpAddressTypeOutput.AddMember("IpAddressType", IpAddressType) + + SetRulePrioritiesInput_RulePriorities = SetRulePrioritiesInput.AddMember("RulePriorities", _RulePriorityList) + + SetRulePrioritiesOutput_Rules = SetRulePrioritiesOutput.AddMember("Rules", _Rules) + + SetSecurityGroupsInput_LoadBalancerArn = SetSecurityGroupsInput.AddMember("LoadBalancerArn", _LoadBalancerArn) + + SetSecurityGroupsInput_SecurityGroups = SetSecurityGroupsInput.AddMember("SecurityGroups", _SecurityGroups) + + SetSecurityGroupsInput_EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = SetSecurityGroupsInput.AddMember("EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic", EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum) + + SetSecurityGroupsOutput_SecurityGroupIds = SetSecurityGroupsOutput.AddMember("SecurityGroupIds", _SecurityGroups) + + SetSecurityGroupsOutput_EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = SetSecurityGroupsOutput.AddMember("EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic", EnforceSecurityGroupInboundRulesOnPrivateLinkTrafficEnum) + + SetSubnetsInput_LoadBalancerArn = SetSubnetsInput.AddMember("LoadBalancerArn", _LoadBalancerArn) + + SetSubnetsInput_Subnets = SetSubnetsInput.AddMember("Subnets", _Subnets) + + SetSubnetsInput_SubnetMappings = SetSubnetsInput.AddMember("SubnetMappings", _SubnetMappings) + + SetSubnetsInput_IpAddressType = SetSubnetsInput.AddMember("IpAddressType", IpAddressType) + + SetSubnetsInput_EnablePrefixForIpv6SourceNat = SetSubnetsInput.AddMember("EnablePrefixForIpv6SourceNat", EnablePrefixForIpv6SourceNatEnum) + + SetSubnetsOutput_AvailabilityZones = SetSubnetsOutput.AddMember("AvailabilityZones", _AvailabilityZones) + + SetSubnetsOutput_IpAddressType = SetSubnetsOutput.AddMember("IpAddressType", IpAddressType) + + SetSubnetsOutput_EnablePrefixForIpv6SourceNat = SetSubnetsOutput.AddMember("EnablePrefixForIpv6SourceNat", EnablePrefixForIpv6SourceNatEnum) + +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/serializers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/serializers.go deleted file mode 100644 index 2418945d5..000000000 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/serializers.go +++ /dev/null @@ -1,6211 +0,0 @@ -// Code generated by smithy-go-codegen DO NOT EDIT. - -package elasticloadbalancingv2 - -import ( - "bytes" - "context" - "fmt" - "github.com/aws/aws-sdk-go-v2/aws/protocol/query" - "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" - smithy "github.com/aws/smithy-go" - "github.com/aws/smithy-go/encoding/httpbinding" - "github.com/aws/smithy-go/middleware" - "github.com/aws/smithy-go/tracing" - smithyhttp "github.com/aws/smithy-go/transport/http" - "path" - "sort" -) - -type awsAwsquery_serializeOpAddListenerCertificates struct { -} - -func (*awsAwsquery_serializeOpAddListenerCertificates) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpAddListenerCertificates) 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.(*AddListenerCertificatesInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("AddListenerCertificates") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentAddListenerCertificatesInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpAddTags struct { -} - -func (*awsAwsquery_serializeOpAddTags) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpAddTags) 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.(*AddTagsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("AddTags") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentAddTagsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpAddTrustStoreRevocations struct { -} - -func (*awsAwsquery_serializeOpAddTrustStoreRevocations) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpAddTrustStoreRevocations) 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.(*AddTrustStoreRevocationsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("AddTrustStoreRevocations") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentAddTrustStoreRevocationsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpCreateListener struct { -} - -func (*awsAwsquery_serializeOpCreateListener) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpCreateListener) 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.(*CreateListenerInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("CreateListener") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentCreateListenerInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpCreateLoadBalancer struct { -} - -func (*awsAwsquery_serializeOpCreateLoadBalancer) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpCreateLoadBalancer) 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.(*CreateLoadBalancerInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("CreateLoadBalancer") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentCreateLoadBalancerInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpCreateRule struct { -} - -func (*awsAwsquery_serializeOpCreateRule) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpCreateRule) 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.(*CreateRuleInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("CreateRule") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentCreateRuleInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpCreateTargetGroup struct { -} - -func (*awsAwsquery_serializeOpCreateTargetGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpCreateTargetGroup) 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.(*CreateTargetGroupInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("CreateTargetGroup") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentCreateTargetGroupInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpCreateTrustStore struct { -} - -func (*awsAwsquery_serializeOpCreateTrustStore) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpCreateTrustStore) 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.(*CreateTrustStoreInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("CreateTrustStore") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentCreateTrustStoreInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDeleteListener struct { -} - -func (*awsAwsquery_serializeOpDeleteListener) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDeleteListener) 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.(*DeleteListenerInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DeleteListener") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDeleteListenerInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDeleteLoadBalancer struct { -} - -func (*awsAwsquery_serializeOpDeleteLoadBalancer) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDeleteLoadBalancer) 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.(*DeleteLoadBalancerInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DeleteLoadBalancer") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDeleteLoadBalancerInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDeleteRule struct { -} - -func (*awsAwsquery_serializeOpDeleteRule) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDeleteRule) 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.(*DeleteRuleInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DeleteRule") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDeleteRuleInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDeleteSharedTrustStoreAssociation struct { -} - -func (*awsAwsquery_serializeOpDeleteSharedTrustStoreAssociation) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDeleteSharedTrustStoreAssociation) 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.(*DeleteSharedTrustStoreAssociationInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DeleteSharedTrustStoreAssociation") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDeleteSharedTrustStoreAssociationInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDeleteTargetGroup struct { -} - -func (*awsAwsquery_serializeOpDeleteTargetGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDeleteTargetGroup) 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.(*DeleteTargetGroupInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DeleteTargetGroup") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDeleteTargetGroupInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDeleteTrustStore struct { -} - -func (*awsAwsquery_serializeOpDeleteTrustStore) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDeleteTrustStore) 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.(*DeleteTrustStoreInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DeleteTrustStore") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDeleteTrustStoreInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDeregisterTargets struct { -} - -func (*awsAwsquery_serializeOpDeregisterTargets) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDeregisterTargets) 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.(*DeregisterTargetsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DeregisterTargets") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDeregisterTargetsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeAccountLimits struct { -} - -func (*awsAwsquery_serializeOpDescribeAccountLimits) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeAccountLimits) 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.(*DescribeAccountLimitsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeAccountLimits") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeAccountLimitsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeCapacityReservation struct { -} - -func (*awsAwsquery_serializeOpDescribeCapacityReservation) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeCapacityReservation) 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.(*DescribeCapacityReservationInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeCapacityReservation") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeCapacityReservationInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeListenerAttributes struct { -} - -func (*awsAwsquery_serializeOpDescribeListenerAttributes) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeListenerAttributes) 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.(*DescribeListenerAttributesInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeListenerAttributes") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeListenerAttributesInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeListenerCertificates struct { -} - -func (*awsAwsquery_serializeOpDescribeListenerCertificates) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeListenerCertificates) 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.(*DescribeListenerCertificatesInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeListenerCertificates") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeListenerCertificatesInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeListeners struct { -} - -func (*awsAwsquery_serializeOpDescribeListeners) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeListeners) 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.(*DescribeListenersInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeListeners") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeListenersInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeLoadBalancerAttributes struct { -} - -func (*awsAwsquery_serializeOpDescribeLoadBalancerAttributes) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeLoadBalancerAttributes) 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.(*DescribeLoadBalancerAttributesInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeLoadBalancerAttributes") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeLoadBalancerAttributesInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeLoadBalancers struct { -} - -func (*awsAwsquery_serializeOpDescribeLoadBalancers) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeLoadBalancers) 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.(*DescribeLoadBalancersInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeLoadBalancers") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeLoadBalancersInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeRules struct { -} - -func (*awsAwsquery_serializeOpDescribeRules) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeRules) 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.(*DescribeRulesInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeRules") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeRulesInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeSSLPolicies struct { -} - -func (*awsAwsquery_serializeOpDescribeSSLPolicies) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeSSLPolicies) 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.(*DescribeSSLPoliciesInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeSSLPolicies") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeSSLPoliciesInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeTags struct { -} - -func (*awsAwsquery_serializeOpDescribeTags) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeTags) 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.(*DescribeTagsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeTags") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeTagsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeTargetGroupAttributes struct { -} - -func (*awsAwsquery_serializeOpDescribeTargetGroupAttributes) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeTargetGroupAttributes) 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.(*DescribeTargetGroupAttributesInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeTargetGroupAttributes") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeTargetGroupAttributesInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeTargetGroups struct { -} - -func (*awsAwsquery_serializeOpDescribeTargetGroups) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeTargetGroups) 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.(*DescribeTargetGroupsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeTargetGroups") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeTargetGroupsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeTargetHealth struct { -} - -func (*awsAwsquery_serializeOpDescribeTargetHealth) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeTargetHealth) 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.(*DescribeTargetHealthInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeTargetHealth") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeTargetHealthInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeTrustStoreAssociations struct { -} - -func (*awsAwsquery_serializeOpDescribeTrustStoreAssociations) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeTrustStoreAssociations) 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.(*DescribeTrustStoreAssociationsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeTrustStoreAssociations") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeTrustStoreAssociationsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeTrustStoreRevocations struct { -} - -func (*awsAwsquery_serializeOpDescribeTrustStoreRevocations) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeTrustStoreRevocations) 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.(*DescribeTrustStoreRevocationsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeTrustStoreRevocations") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeTrustStoreRevocationsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpDescribeTrustStores struct { -} - -func (*awsAwsquery_serializeOpDescribeTrustStores) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpDescribeTrustStores) 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.(*DescribeTrustStoresInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("DescribeTrustStores") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentDescribeTrustStoresInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpGetResourcePolicy struct { -} - -func (*awsAwsquery_serializeOpGetResourcePolicy) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("GetResourcePolicy") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentGetResourcePolicyInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpGetTrustStoreCaCertificatesBundle struct { -} - -func (*awsAwsquery_serializeOpGetTrustStoreCaCertificatesBundle) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpGetTrustStoreCaCertificatesBundle) 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.(*GetTrustStoreCaCertificatesBundleInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("GetTrustStoreCaCertificatesBundle") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentGetTrustStoreCaCertificatesBundleInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpGetTrustStoreRevocationContent struct { -} - -func (*awsAwsquery_serializeOpGetTrustStoreRevocationContent) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpGetTrustStoreRevocationContent) 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.(*GetTrustStoreRevocationContentInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("GetTrustStoreRevocationContent") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentGetTrustStoreRevocationContentInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpModifyCapacityReservation struct { -} - -func (*awsAwsquery_serializeOpModifyCapacityReservation) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpModifyCapacityReservation) 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.(*ModifyCapacityReservationInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ModifyCapacityReservation") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentModifyCapacityReservationInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpModifyIpPools struct { -} - -func (*awsAwsquery_serializeOpModifyIpPools) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpModifyIpPools) 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.(*ModifyIpPoolsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ModifyIpPools") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentModifyIpPoolsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpModifyListener struct { -} - -func (*awsAwsquery_serializeOpModifyListener) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpModifyListener) 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.(*ModifyListenerInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ModifyListener") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentModifyListenerInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpModifyListenerAttributes struct { -} - -func (*awsAwsquery_serializeOpModifyListenerAttributes) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpModifyListenerAttributes) 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.(*ModifyListenerAttributesInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ModifyListenerAttributes") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentModifyListenerAttributesInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpModifyLoadBalancerAttributes struct { -} - -func (*awsAwsquery_serializeOpModifyLoadBalancerAttributes) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpModifyLoadBalancerAttributes) 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.(*ModifyLoadBalancerAttributesInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ModifyLoadBalancerAttributes") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentModifyLoadBalancerAttributesInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpModifyRule struct { -} - -func (*awsAwsquery_serializeOpModifyRule) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpModifyRule) 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.(*ModifyRuleInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ModifyRule") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentModifyRuleInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpModifyTargetGroup struct { -} - -func (*awsAwsquery_serializeOpModifyTargetGroup) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpModifyTargetGroup) 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.(*ModifyTargetGroupInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ModifyTargetGroup") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentModifyTargetGroupInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpModifyTargetGroupAttributes struct { -} - -func (*awsAwsquery_serializeOpModifyTargetGroupAttributes) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpModifyTargetGroupAttributes) 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.(*ModifyTargetGroupAttributesInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ModifyTargetGroupAttributes") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentModifyTargetGroupAttributesInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpModifyTrustStore struct { -} - -func (*awsAwsquery_serializeOpModifyTrustStore) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpModifyTrustStore) 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.(*ModifyTrustStoreInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("ModifyTrustStore") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentModifyTrustStoreInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpRegisterTargets struct { -} - -func (*awsAwsquery_serializeOpRegisterTargets) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpRegisterTargets) 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.(*RegisterTargetsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("RegisterTargets") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentRegisterTargetsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpRemoveListenerCertificates struct { -} - -func (*awsAwsquery_serializeOpRemoveListenerCertificates) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpRemoveListenerCertificates) 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.(*RemoveListenerCertificatesInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("RemoveListenerCertificates") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentRemoveListenerCertificatesInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpRemoveTags struct { -} - -func (*awsAwsquery_serializeOpRemoveTags) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpRemoveTags) 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.(*RemoveTagsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("RemoveTags") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentRemoveTagsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpRemoveTrustStoreRevocations struct { -} - -func (*awsAwsquery_serializeOpRemoveTrustStoreRevocations) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpRemoveTrustStoreRevocations) 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.(*RemoveTrustStoreRevocationsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("RemoveTrustStoreRevocations") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentRemoveTrustStoreRevocationsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpSetIpAddressType struct { -} - -func (*awsAwsquery_serializeOpSetIpAddressType) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpSetIpAddressType) 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.(*SetIpAddressTypeInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("SetIpAddressType") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentSetIpAddressTypeInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpSetRulePriorities struct { -} - -func (*awsAwsquery_serializeOpSetRulePriorities) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpSetRulePriorities) 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.(*SetRulePrioritiesInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("SetRulePriorities") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentSetRulePrioritiesInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpSetSecurityGroups struct { -} - -func (*awsAwsquery_serializeOpSetSecurityGroups) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpSetSecurityGroups) 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.(*SetSecurityGroupsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("SetSecurityGroups") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentSetSecurityGroupsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeOpSetSubnets struct { -} - -func (*awsAwsquery_serializeOpSetSubnets) ID() string { - return "OperationSerializer" -} - -func (m *awsAwsquery_serializeOpSetSubnets) 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.(*SetSubnetsInput) - _ = 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-www-form-urlencoded") - - bodyWriter := bytes.NewBuffer(nil) - bodyEncoder := query.NewEncoder(bodyWriter) - body := bodyEncoder.Object() - body.Key("Action").String("SetSubnets") - body.Key("Version").String("2015-12-01") - - if err := awsAwsquery_serializeOpDocumentSetSubnetsInput(input, bodyEncoder.Value); err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - err = bodyEncoder.Encode() - if err != nil { - return out, metadata, &smithy.SerializationError{Err: err} - } - - if request, err = request.SetStream(bytes.NewReader(bodyWriter.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 awsAwsquery_serializeDocumentAction(v *types.Action, value query.Value) error { - object := value.Object() - _ = object - - if v.AuthenticateCognitoConfig != nil { - objectKey := object.Key("AuthenticateCognitoConfig") - if err := awsAwsquery_serializeDocumentAuthenticateCognitoActionConfig(v.AuthenticateCognitoConfig, objectKey); err != nil { - return err - } - } - - if v.AuthenticateOidcConfig != nil { - objectKey := object.Key("AuthenticateOidcConfig") - if err := awsAwsquery_serializeDocumentAuthenticateOidcActionConfig(v.AuthenticateOidcConfig, objectKey); err != nil { - return err - } - } - - if v.FixedResponseConfig != nil { - objectKey := object.Key("FixedResponseConfig") - if err := awsAwsquery_serializeDocumentFixedResponseActionConfig(v.FixedResponseConfig, objectKey); err != nil { - return err - } - } - - if v.ForwardConfig != nil { - objectKey := object.Key("ForwardConfig") - if err := awsAwsquery_serializeDocumentForwardActionConfig(v.ForwardConfig, objectKey); err != nil { - return err - } - } - - if v.JwtValidationConfig != nil { - objectKey := object.Key("JwtValidationConfig") - if err := awsAwsquery_serializeDocumentJwtValidationActionConfig(v.JwtValidationConfig, objectKey); err != nil { - return err - } - } - - if v.Order != nil { - objectKey := object.Key("Order") - objectKey.Integer(*v.Order) - } - - if v.RedirectConfig != nil { - objectKey := object.Key("RedirectConfig") - if err := awsAwsquery_serializeDocumentRedirectActionConfig(v.RedirectConfig, objectKey); err != nil { - return err - } - } - - if v.TargetGroupArn != nil { - objectKey := object.Key("TargetGroupArn") - objectKey.String(*v.TargetGroupArn) - } - - if len(v.Type) > 0 { - objectKey := object.Key("Type") - objectKey.String(string(v.Type)) - } - - return nil -} - -func awsAwsquery_serializeDocumentActions(v []types.Action, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentAction(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentAlpnPolicyName(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentAuthenticateCognitoActionAuthenticationRequestExtraParams(v map[string]string, value query.Value) error { - if len(v) == 0 { - return nil - } - object := value.Map("key", "value") - - keys := make([]string, 0, len(v)) - for key := range v { - keys = append(keys, key) - } - sort.Strings(keys) - - for _, key := range keys { - om := object.Key(key) - om.String(v[key]) - } - return nil -} - -func awsAwsquery_serializeDocumentAuthenticateCognitoActionConfig(v *types.AuthenticateCognitoActionConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.AuthenticationRequestExtraParams != nil { - objectKey := object.Key("AuthenticationRequestExtraParams") - if err := awsAwsquery_serializeDocumentAuthenticateCognitoActionAuthenticationRequestExtraParams(v.AuthenticationRequestExtraParams, objectKey); err != nil { - return err - } - } - - if len(v.OnUnauthenticatedRequest) > 0 { - objectKey := object.Key("OnUnauthenticatedRequest") - objectKey.String(string(v.OnUnauthenticatedRequest)) - } - - if v.Scope != nil { - objectKey := object.Key("Scope") - objectKey.String(*v.Scope) - } - - if v.SessionCookieName != nil { - objectKey := object.Key("SessionCookieName") - objectKey.String(*v.SessionCookieName) - } - - if v.SessionTimeout != nil { - objectKey := object.Key("SessionTimeout") - objectKey.Long(*v.SessionTimeout) - } - - if v.UserPoolArn != nil { - objectKey := object.Key("UserPoolArn") - objectKey.String(*v.UserPoolArn) - } - - if v.UserPoolClientId != nil { - objectKey := object.Key("UserPoolClientId") - objectKey.String(*v.UserPoolClientId) - } - - if v.UserPoolDomain != nil { - objectKey := object.Key("UserPoolDomain") - objectKey.String(*v.UserPoolDomain) - } - - return nil -} - -func awsAwsquery_serializeDocumentAuthenticateOidcActionAuthenticationRequestExtraParams(v map[string]string, value query.Value) error { - if len(v) == 0 { - return nil - } - object := value.Map("key", "value") - - keys := make([]string, 0, len(v)) - for key := range v { - keys = append(keys, key) - } - sort.Strings(keys) - - for _, key := range keys { - om := object.Key(key) - om.String(v[key]) - } - return nil -} - -func awsAwsquery_serializeDocumentAuthenticateOidcActionConfig(v *types.AuthenticateOidcActionConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.AuthenticationRequestExtraParams != nil { - objectKey := object.Key("AuthenticationRequestExtraParams") - if err := awsAwsquery_serializeDocumentAuthenticateOidcActionAuthenticationRequestExtraParams(v.AuthenticationRequestExtraParams, objectKey); err != nil { - return err - } - } - - if v.AuthorizationEndpoint != nil { - objectKey := object.Key("AuthorizationEndpoint") - objectKey.String(*v.AuthorizationEndpoint) - } - - if v.ClientId != nil { - objectKey := object.Key("ClientId") - objectKey.String(*v.ClientId) - } - - if v.ClientSecret != nil { - objectKey := object.Key("ClientSecret") - objectKey.String(*v.ClientSecret) - } - - if v.Issuer != nil { - objectKey := object.Key("Issuer") - objectKey.String(*v.Issuer) - } - - if len(v.OnUnauthenticatedRequest) > 0 { - objectKey := object.Key("OnUnauthenticatedRequest") - objectKey.String(string(v.OnUnauthenticatedRequest)) - } - - if v.Scope != nil { - objectKey := object.Key("Scope") - objectKey.String(*v.Scope) - } - - if v.SessionCookieName != nil { - objectKey := object.Key("SessionCookieName") - objectKey.String(*v.SessionCookieName) - } - - if v.SessionTimeout != nil { - objectKey := object.Key("SessionTimeout") - objectKey.Long(*v.SessionTimeout) - } - - if v.TokenEndpoint != nil { - objectKey := object.Key("TokenEndpoint") - objectKey.String(*v.TokenEndpoint) - } - - if v.UseExistingClientSecret != nil { - objectKey := object.Key("UseExistingClientSecret") - objectKey.Boolean(*v.UseExistingClientSecret) - } - - if v.UserInfoEndpoint != nil { - objectKey := object.Key("UserInfoEndpoint") - objectKey.String(*v.UserInfoEndpoint) - } - - return nil -} - -func awsAwsquery_serializeDocumentCertificate(v *types.Certificate, value query.Value) error { - object := value.Object() - _ = object - - if v.CertificateArn != nil { - objectKey := object.Key("CertificateArn") - objectKey.String(*v.CertificateArn) - } - - if v.IsDefault != nil { - objectKey := object.Key("IsDefault") - objectKey.Boolean(*v.IsDefault) - } - - return nil -} - -func awsAwsquery_serializeDocumentCertificateList(v []types.Certificate, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentCertificate(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentFixedResponseActionConfig(v *types.FixedResponseActionConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.ContentType != nil { - objectKey := object.Key("ContentType") - objectKey.String(*v.ContentType) - } - - if v.MessageBody != nil { - objectKey := object.Key("MessageBody") - objectKey.String(*v.MessageBody) - } - - if v.StatusCode != nil { - objectKey := object.Key("StatusCode") - objectKey.String(*v.StatusCode) - } - - return nil -} - -func awsAwsquery_serializeDocumentForwardActionConfig(v *types.ForwardActionConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.TargetGroups != nil { - objectKey := object.Key("TargetGroups") - if err := awsAwsquery_serializeDocumentTargetGroupList(v.TargetGroups, objectKey); err != nil { - return err - } - } - - if v.TargetGroupStickinessConfig != nil { - objectKey := object.Key("TargetGroupStickinessConfig") - if err := awsAwsquery_serializeDocumentTargetGroupStickinessConfig(v.TargetGroupStickinessConfig, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeDocumentHostHeaderConditionConfig(v *types.HostHeaderConditionConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.RegexValues != nil { - objectKey := object.Key("RegexValues") - if err := awsAwsquery_serializeDocumentListOfString(v.RegexValues, objectKey); err != nil { - return err - } - } - - if v.Values != nil { - objectKey := object.Key("Values") - if err := awsAwsquery_serializeDocumentListOfString(v.Values, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeDocumentHostHeaderRewriteConfig(v *types.HostHeaderRewriteConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.Rewrites != nil { - objectKey := object.Key("Rewrites") - if err := awsAwsquery_serializeDocumentRewriteConfigList(v.Rewrites, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeDocumentHttpHeaderConditionConfig(v *types.HttpHeaderConditionConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.HttpHeaderName != nil { - objectKey := object.Key("HttpHeaderName") - objectKey.String(*v.HttpHeaderName) - } - - if v.RegexValues != nil { - objectKey := object.Key("RegexValues") - if err := awsAwsquery_serializeDocumentListOfString(v.RegexValues, objectKey); err != nil { - return err - } - } - - if v.Values != nil { - objectKey := object.Key("Values") - if err := awsAwsquery_serializeDocumentListOfString(v.Values, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeDocumentHttpRequestMethodConditionConfig(v *types.HttpRequestMethodConditionConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.Values != nil { - objectKey := object.Key("Values") - if err := awsAwsquery_serializeDocumentListOfString(v.Values, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeDocumentIpamPools(v *types.IpamPools, value query.Value) error { - object := value.Object() - _ = object - - if v.Ipv4IpamPoolId != nil { - objectKey := object.Key("Ipv4IpamPoolId") - objectKey.String(*v.Ipv4IpamPoolId) - } - - return nil -} - -func awsAwsquery_serializeDocumentJwtValidationActionAdditionalClaim(v *types.JwtValidationActionAdditionalClaim, value query.Value) error { - object := value.Object() - _ = object - - if len(v.Format) > 0 { - objectKey := object.Key("Format") - objectKey.String(string(v.Format)) - } - - if v.Name != nil { - objectKey := object.Key("Name") - objectKey.String(*v.Name) - } - - if v.Values != nil { - objectKey := object.Key("Values") - if err := awsAwsquery_serializeDocumentJwtValidationActionAdditionalClaimValues(v.Values, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeDocumentJwtValidationActionAdditionalClaims(v []types.JwtValidationActionAdditionalClaim, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentJwtValidationActionAdditionalClaim(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentJwtValidationActionAdditionalClaimValues(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentJwtValidationActionConfig(v *types.JwtValidationActionConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.AdditionalClaims != nil { - objectKey := object.Key("AdditionalClaims") - if err := awsAwsquery_serializeDocumentJwtValidationActionAdditionalClaims(v.AdditionalClaims, objectKey); err != nil { - return err - } - } - - if v.Issuer != nil { - objectKey := object.Key("Issuer") - objectKey.String(*v.Issuer) - } - - if v.JwksEndpoint != nil { - objectKey := object.Key("JwksEndpoint") - objectKey.String(*v.JwksEndpoint) - } - - return nil -} - -func awsAwsquery_serializeDocumentListenerArns(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentListenerAttribute(v *types.ListenerAttribute, value query.Value) error { - object := value.Object() - _ = object - - if v.Key != nil { - objectKey := object.Key("Key") - objectKey.String(*v.Key) - } - - if v.Value != nil { - objectKey := object.Key("Value") - objectKey.String(*v.Value) - } - - return nil -} - -func awsAwsquery_serializeDocumentListenerAttributes(v []types.ListenerAttribute, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentListenerAttribute(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentListOfDescribeTargetHealthIncludeOptions(v []types.DescribeTargetHealthInputIncludeEnum, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(string(v[i])) - } - return nil -} - -func awsAwsquery_serializeDocumentListOfString(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentLoadBalancerArns(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentLoadBalancerAttribute(v *types.LoadBalancerAttribute, value query.Value) error { - object := value.Object() - _ = object - - if v.Key != nil { - objectKey := object.Key("Key") - objectKey.String(*v.Key) - } - - if v.Value != nil { - objectKey := object.Key("Value") - objectKey.String(*v.Value) - } - - return nil -} - -func awsAwsquery_serializeDocumentLoadBalancerAttributes(v []types.LoadBalancerAttribute, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentLoadBalancerAttribute(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentLoadBalancerNames(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentMatcher(v *types.Matcher, value query.Value) error { - object := value.Object() - _ = object - - if v.GrpcCode != nil { - objectKey := object.Key("GrpcCode") - objectKey.String(*v.GrpcCode) - } - - if v.HttpCode != nil { - objectKey := object.Key("HttpCode") - objectKey.String(*v.HttpCode) - } - - return nil -} - -func awsAwsquery_serializeDocumentMinimumLoadBalancerCapacity(v *types.MinimumLoadBalancerCapacity, value query.Value) error { - object := value.Object() - _ = object - - if v.CapacityUnits != nil { - objectKey := object.Key("CapacityUnits") - objectKey.Integer(*v.CapacityUnits) - } - - return nil -} - -func awsAwsquery_serializeDocumentMutualAuthenticationAttributes(v *types.MutualAuthenticationAttributes, value query.Value) error { - object := value.Object() - _ = object - - if len(v.AdvertiseTrustStoreCaNames) > 0 { - objectKey := object.Key("AdvertiseTrustStoreCaNames") - objectKey.String(string(v.AdvertiseTrustStoreCaNames)) - } - - if v.IgnoreClientCertificateExpiry != nil { - objectKey := object.Key("IgnoreClientCertificateExpiry") - objectKey.Boolean(*v.IgnoreClientCertificateExpiry) - } - - if v.Mode != nil { - objectKey := object.Key("Mode") - objectKey.String(*v.Mode) - } - - if v.TrustStoreArn != nil { - objectKey := object.Key("TrustStoreArn") - objectKey.String(*v.TrustStoreArn) - } - - if len(v.TrustStoreAssociationStatus) > 0 { - objectKey := object.Key("TrustStoreAssociationStatus") - objectKey.String(string(v.TrustStoreAssociationStatus)) - } - - return nil -} - -func awsAwsquery_serializeDocumentPathPatternConditionConfig(v *types.PathPatternConditionConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.RegexValues != nil { - objectKey := object.Key("RegexValues") - if err := awsAwsquery_serializeDocumentListOfString(v.RegexValues, objectKey); err != nil { - return err - } - } - - if v.Values != nil { - objectKey := object.Key("Values") - if err := awsAwsquery_serializeDocumentListOfString(v.Values, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeDocumentQueryStringConditionConfig(v *types.QueryStringConditionConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.Values != nil { - objectKey := object.Key("Values") - if err := awsAwsquery_serializeDocumentQueryStringKeyValuePairList(v.Values, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeDocumentQueryStringKeyValuePair(v *types.QueryStringKeyValuePair, value query.Value) error { - object := value.Object() - _ = object - - if v.Key != nil { - objectKey := object.Key("Key") - objectKey.String(*v.Key) - } - - if v.Value != nil { - objectKey := object.Key("Value") - objectKey.String(*v.Value) - } - - return nil -} - -func awsAwsquery_serializeDocumentQueryStringKeyValuePairList(v []types.QueryStringKeyValuePair, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentQueryStringKeyValuePair(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentRedirectActionConfig(v *types.RedirectActionConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.Host != nil { - objectKey := object.Key("Host") - objectKey.String(*v.Host) - } - - if v.Path != nil { - objectKey := object.Key("Path") - objectKey.String(*v.Path) - } - - if v.Port != nil { - objectKey := object.Key("Port") - objectKey.String(*v.Port) - } - - if v.Protocol != nil { - objectKey := object.Key("Protocol") - objectKey.String(*v.Protocol) - } - - if v.Query != nil { - objectKey := object.Key("Query") - objectKey.String(*v.Query) - } - - if len(v.StatusCode) > 0 { - objectKey := object.Key("StatusCode") - objectKey.String(string(v.StatusCode)) - } - - return nil -} - -func awsAwsquery_serializeDocumentRemoveIpamPools(v []types.RemoveIpamPoolEnum, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(string(v[i])) - } - return nil -} - -func awsAwsquery_serializeDocumentResourceArns(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentRevocationContent(v *types.RevocationContent, value query.Value) error { - object := value.Object() - _ = object - - if len(v.RevocationType) > 0 { - objectKey := object.Key("RevocationType") - objectKey.String(string(v.RevocationType)) - } - - if v.S3Bucket != nil { - objectKey := object.Key("S3Bucket") - objectKey.String(*v.S3Bucket) - } - - if v.S3Key != nil { - objectKey := object.Key("S3Key") - objectKey.String(*v.S3Key) - } - - if v.S3ObjectVersion != nil { - objectKey := object.Key("S3ObjectVersion") - objectKey.String(*v.S3ObjectVersion) - } - - return nil -} - -func awsAwsquery_serializeDocumentRevocationContents(v []types.RevocationContent, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentRevocationContent(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentRevocationIds(v []int64, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.Long(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentRewriteConfig(v *types.RewriteConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.Regex != nil { - objectKey := object.Key("Regex") - objectKey.String(*v.Regex) - } - - if v.Replace != nil { - objectKey := object.Key("Replace") - objectKey.String(*v.Replace) - } - - return nil -} - -func awsAwsquery_serializeDocumentRewriteConfigList(v []types.RewriteConfig, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentRewriteConfig(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentRuleArns(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentRuleCondition(v *types.RuleCondition, value query.Value) error { - object := value.Object() - _ = object - - if v.Field != nil { - objectKey := object.Key("Field") - objectKey.String(*v.Field) - } - - if v.HostHeaderConfig != nil { - objectKey := object.Key("HostHeaderConfig") - if err := awsAwsquery_serializeDocumentHostHeaderConditionConfig(v.HostHeaderConfig, objectKey); err != nil { - return err - } - } - - if v.HttpHeaderConfig != nil { - objectKey := object.Key("HttpHeaderConfig") - if err := awsAwsquery_serializeDocumentHttpHeaderConditionConfig(v.HttpHeaderConfig, objectKey); err != nil { - return err - } - } - - if v.HttpRequestMethodConfig != nil { - objectKey := object.Key("HttpRequestMethodConfig") - if err := awsAwsquery_serializeDocumentHttpRequestMethodConditionConfig(v.HttpRequestMethodConfig, objectKey); err != nil { - return err - } - } - - if v.PathPatternConfig != nil { - objectKey := object.Key("PathPatternConfig") - if err := awsAwsquery_serializeDocumentPathPatternConditionConfig(v.PathPatternConfig, objectKey); err != nil { - return err - } - } - - if v.QueryStringConfig != nil { - objectKey := object.Key("QueryStringConfig") - if err := awsAwsquery_serializeDocumentQueryStringConditionConfig(v.QueryStringConfig, objectKey); err != nil { - return err - } - } - - if v.RegexValues != nil { - objectKey := object.Key("RegexValues") - if err := awsAwsquery_serializeDocumentListOfString(v.RegexValues, objectKey); err != nil { - return err - } - } - - if v.SourceIpConfig != nil { - objectKey := object.Key("SourceIpConfig") - if err := awsAwsquery_serializeDocumentSourceIpConditionConfig(v.SourceIpConfig, objectKey); err != nil { - return err - } - } - - if v.Values != nil { - objectKey := object.Key("Values") - if err := awsAwsquery_serializeDocumentListOfString(v.Values, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeDocumentRuleConditionList(v []types.RuleCondition, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentRuleCondition(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentRulePriorityList(v []types.RulePriorityPair, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentRulePriorityPair(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentRulePriorityPair(v *types.RulePriorityPair, value query.Value) error { - object := value.Object() - _ = object - - if v.Priority != nil { - objectKey := object.Key("Priority") - objectKey.Integer(*v.Priority) - } - - if v.RuleArn != nil { - objectKey := object.Key("RuleArn") - objectKey.String(*v.RuleArn) - } - - return nil -} - -func awsAwsquery_serializeDocumentRuleTransform(v *types.RuleTransform, value query.Value) error { - object := value.Object() - _ = object - - if v.HostHeaderRewriteConfig != nil { - objectKey := object.Key("HostHeaderRewriteConfig") - if err := awsAwsquery_serializeDocumentHostHeaderRewriteConfig(v.HostHeaderRewriteConfig, objectKey); err != nil { - return err - } - } - - if len(v.Type) > 0 { - objectKey := object.Key("Type") - objectKey.String(string(v.Type)) - } - - if v.UrlRewriteConfig != nil { - objectKey := object.Key("UrlRewriteConfig") - if err := awsAwsquery_serializeDocumentUrlRewriteConfig(v.UrlRewriteConfig, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeDocumentRuleTransformList(v []types.RuleTransform, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentRuleTransform(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentSecurityGroups(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentSourceIpConditionConfig(v *types.SourceIpConditionConfig, value query.Value) error { - object := value.Object() - _ = object - - if len(v.IpAddressType) > 0 { - objectKey := object.Key("IpAddressType") - objectKey.String(string(v.IpAddressType)) - } - - if v.Values != nil { - objectKey := object.Key("Values") - if err := awsAwsquery_serializeDocumentListOfString(v.Values, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeDocumentSslPolicyNames(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentSubnetMapping(v *types.SubnetMapping, value query.Value) error { - object := value.Object() - _ = object - - if v.AllocationId != nil { - objectKey := object.Key("AllocationId") - objectKey.String(*v.AllocationId) - } - - if v.IPv6Address != nil { - objectKey := object.Key("IPv6Address") - objectKey.String(*v.IPv6Address) - } - - if v.PrivateIPv4Address != nil { - objectKey := object.Key("PrivateIPv4Address") - objectKey.String(*v.PrivateIPv4Address) - } - - if v.SourceNatIpv6Prefix != nil { - objectKey := object.Key("SourceNatIpv6Prefix") - objectKey.String(*v.SourceNatIpv6Prefix) - } - - if v.SubnetId != nil { - objectKey := object.Key("SubnetId") - objectKey.String(*v.SubnetId) - } - - return nil -} - -func awsAwsquery_serializeDocumentSubnetMappings(v []types.SubnetMapping, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentSubnetMapping(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentSubnets(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentTag(v *types.Tag, value query.Value) error { - object := value.Object() - _ = object - - if v.Key != nil { - objectKey := object.Key("Key") - objectKey.String(*v.Key) - } - - if v.Value != nil { - objectKey := object.Key("Value") - objectKey.String(*v.Value) - } - - return nil -} - -func awsAwsquery_serializeDocumentTagKeys(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentTagList(v []types.Tag, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentTag(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentTargetDescription(v *types.TargetDescription, value query.Value) error { - object := value.Object() - _ = object - - if v.AvailabilityZone != nil { - objectKey := object.Key("AvailabilityZone") - objectKey.String(*v.AvailabilityZone) - } - - if v.Id != nil { - objectKey := object.Key("Id") - objectKey.String(*v.Id) - } - - if v.Port != nil { - objectKey := object.Key("Port") - objectKey.Integer(*v.Port) - } - - if v.QuicServerId != nil { - objectKey := object.Key("QuicServerId") - objectKey.String(*v.QuicServerId) - } - - return nil -} - -func awsAwsquery_serializeDocumentTargetDescriptions(v []types.TargetDescription, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentTargetDescription(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentTargetGroupArns(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentTargetGroupAttribute(v *types.TargetGroupAttribute, value query.Value) error { - object := value.Object() - _ = object - - if v.Key != nil { - objectKey := object.Key("Key") - objectKey.String(*v.Key) - } - - if v.Value != nil { - objectKey := object.Key("Value") - objectKey.String(*v.Value) - } - - return nil -} - -func awsAwsquery_serializeDocumentTargetGroupAttributes(v []types.TargetGroupAttribute, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentTargetGroupAttribute(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentTargetGroupList(v []types.TargetGroupTuple, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - if err := awsAwsquery_serializeDocumentTargetGroupTuple(&v[i], av); err != nil { - return err - } - } - return nil -} - -func awsAwsquery_serializeDocumentTargetGroupNames(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentTargetGroupStickinessConfig(v *types.TargetGroupStickinessConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.DurationSeconds != nil { - objectKey := object.Key("DurationSeconds") - objectKey.Integer(*v.DurationSeconds) - } - - if v.Enabled != nil { - objectKey := object.Key("Enabled") - objectKey.Boolean(*v.Enabled) - } - - return nil -} - -func awsAwsquery_serializeDocumentTargetGroupTuple(v *types.TargetGroupTuple, value query.Value) error { - object := value.Object() - _ = object - - if v.TargetGroupArn != nil { - objectKey := object.Key("TargetGroupArn") - objectKey.String(*v.TargetGroupArn) - } - - if v.Weight != nil { - objectKey := object.Key("Weight") - objectKey.Integer(*v.Weight) - } - - return nil -} - -func awsAwsquery_serializeDocumentTrustStoreArns(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentTrustStoreNames(v []string, value query.Value) error { - array := value.Array("member") - - for i := range v { - av := array.Value() - av.String(v[i]) - } - return nil -} - -func awsAwsquery_serializeDocumentUrlRewriteConfig(v *types.UrlRewriteConfig, value query.Value) error { - object := value.Object() - _ = object - - if v.Rewrites != nil { - objectKey := object.Key("Rewrites") - if err := awsAwsquery_serializeDocumentRewriteConfigList(v.Rewrites, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentAddListenerCertificatesInput(v *AddListenerCertificatesInput, value query.Value) error { - object := value.Object() - _ = object - - if v.Certificates != nil { - objectKey := object.Key("Certificates") - if err := awsAwsquery_serializeDocumentCertificateList(v.Certificates, objectKey); err != nil { - return err - } - } - - if v.ListenerArn != nil { - objectKey := object.Key("ListenerArn") - objectKey.String(*v.ListenerArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentAddTagsInput(v *AddTagsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.ResourceArns != nil { - objectKey := object.Key("ResourceArns") - if err := awsAwsquery_serializeDocumentResourceArns(v.ResourceArns, objectKey); err != nil { - return err - } - } - - if v.Tags != nil { - objectKey := object.Key("Tags") - if err := awsAwsquery_serializeDocumentTagList(v.Tags, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentAddTrustStoreRevocationsInput(v *AddTrustStoreRevocationsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.RevocationContents != nil { - objectKey := object.Key("RevocationContents") - if err := awsAwsquery_serializeDocumentRevocationContents(v.RevocationContents, objectKey); err != nil { - return err - } - } - - if v.TrustStoreArn != nil { - objectKey := object.Key("TrustStoreArn") - objectKey.String(*v.TrustStoreArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentCreateListenerInput(v *CreateListenerInput, value query.Value) error { - object := value.Object() - _ = object - - if v.AlpnPolicy != nil { - objectKey := object.Key("AlpnPolicy") - if err := awsAwsquery_serializeDocumentAlpnPolicyName(v.AlpnPolicy, objectKey); err != nil { - return err - } - } - - if v.Certificates != nil { - objectKey := object.Key("Certificates") - if err := awsAwsquery_serializeDocumentCertificateList(v.Certificates, objectKey); err != nil { - return err - } - } - - if v.DefaultActions != nil { - objectKey := object.Key("DefaultActions") - if err := awsAwsquery_serializeDocumentActions(v.DefaultActions, objectKey); err != nil { - return err - } - } - - if v.LoadBalancerArn != nil { - objectKey := object.Key("LoadBalancerArn") - objectKey.String(*v.LoadBalancerArn) - } - - if v.MutualAuthentication != nil { - objectKey := object.Key("MutualAuthentication") - if err := awsAwsquery_serializeDocumentMutualAuthenticationAttributes(v.MutualAuthentication, objectKey); err != nil { - return err - } - } - - if v.Port != nil { - objectKey := object.Key("Port") - objectKey.Integer(*v.Port) - } - - if len(v.Protocol) > 0 { - objectKey := object.Key("Protocol") - objectKey.String(string(v.Protocol)) - } - - if v.SslPolicy != nil { - objectKey := object.Key("SslPolicy") - objectKey.String(*v.SslPolicy) - } - - if v.Tags != nil { - objectKey := object.Key("Tags") - if err := awsAwsquery_serializeDocumentTagList(v.Tags, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentCreateLoadBalancerInput(v *CreateLoadBalancerInput, value query.Value) error { - object := value.Object() - _ = object - - if v.CustomerOwnedIpv4Pool != nil { - objectKey := object.Key("CustomerOwnedIpv4Pool") - objectKey.String(*v.CustomerOwnedIpv4Pool) - } - - if len(v.EnablePrefixForIpv6SourceNat) > 0 { - objectKey := object.Key("EnablePrefixForIpv6SourceNat") - objectKey.String(string(v.EnablePrefixForIpv6SourceNat)) - } - - if len(v.IpAddressType) > 0 { - objectKey := object.Key("IpAddressType") - objectKey.String(string(v.IpAddressType)) - } - - if v.IpamPools != nil { - objectKey := object.Key("IpamPools") - if err := awsAwsquery_serializeDocumentIpamPools(v.IpamPools, objectKey); err != nil { - return err - } - } - - if v.Name != nil { - objectKey := object.Key("Name") - objectKey.String(*v.Name) - } - - if len(v.Scheme) > 0 { - objectKey := object.Key("Scheme") - objectKey.String(string(v.Scheme)) - } - - if v.SecurityGroups != nil { - objectKey := object.Key("SecurityGroups") - if err := awsAwsquery_serializeDocumentSecurityGroups(v.SecurityGroups, objectKey); err != nil { - return err - } - } - - if v.SubnetMappings != nil { - objectKey := object.Key("SubnetMappings") - if err := awsAwsquery_serializeDocumentSubnetMappings(v.SubnetMappings, objectKey); err != nil { - return err - } - } - - if v.Subnets != nil { - objectKey := object.Key("Subnets") - if err := awsAwsquery_serializeDocumentSubnets(v.Subnets, objectKey); err != nil { - return err - } - } - - if v.Tags != nil { - objectKey := object.Key("Tags") - if err := awsAwsquery_serializeDocumentTagList(v.Tags, objectKey); err != nil { - return err - } - } - - if len(v.Type) > 0 { - objectKey := object.Key("Type") - objectKey.String(string(v.Type)) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentCreateRuleInput(v *CreateRuleInput, value query.Value) error { - object := value.Object() - _ = object - - if v.Actions != nil { - objectKey := object.Key("Actions") - if err := awsAwsquery_serializeDocumentActions(v.Actions, objectKey); err != nil { - return err - } - } - - if v.Conditions != nil { - objectKey := object.Key("Conditions") - if err := awsAwsquery_serializeDocumentRuleConditionList(v.Conditions, objectKey); err != nil { - return err - } - } - - if v.ListenerArn != nil { - objectKey := object.Key("ListenerArn") - objectKey.String(*v.ListenerArn) - } - - if v.Priority != nil { - objectKey := object.Key("Priority") - objectKey.Integer(*v.Priority) - } - - if v.Tags != nil { - objectKey := object.Key("Tags") - if err := awsAwsquery_serializeDocumentTagList(v.Tags, objectKey); err != nil { - return err - } - } - - if v.Transforms != nil { - objectKey := object.Key("Transforms") - if err := awsAwsquery_serializeDocumentRuleTransformList(v.Transforms, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentCreateTargetGroupInput(v *CreateTargetGroupInput, value query.Value) error { - object := value.Object() - _ = object - - if v.HealthCheckEnabled != nil { - objectKey := object.Key("HealthCheckEnabled") - objectKey.Boolean(*v.HealthCheckEnabled) - } - - if v.HealthCheckIntervalSeconds != nil { - objectKey := object.Key("HealthCheckIntervalSeconds") - objectKey.Integer(*v.HealthCheckIntervalSeconds) - } - - if v.HealthCheckPath != nil { - objectKey := object.Key("HealthCheckPath") - objectKey.String(*v.HealthCheckPath) - } - - if v.HealthCheckPort != nil { - objectKey := object.Key("HealthCheckPort") - objectKey.String(*v.HealthCheckPort) - } - - if len(v.HealthCheckProtocol) > 0 { - objectKey := object.Key("HealthCheckProtocol") - objectKey.String(string(v.HealthCheckProtocol)) - } - - if v.HealthCheckTimeoutSeconds != nil { - objectKey := object.Key("HealthCheckTimeoutSeconds") - objectKey.Integer(*v.HealthCheckTimeoutSeconds) - } - - if v.HealthyThresholdCount != nil { - objectKey := object.Key("HealthyThresholdCount") - objectKey.Integer(*v.HealthyThresholdCount) - } - - if len(v.IpAddressType) > 0 { - objectKey := object.Key("IpAddressType") - objectKey.String(string(v.IpAddressType)) - } - - if v.Matcher != nil { - objectKey := object.Key("Matcher") - if err := awsAwsquery_serializeDocumentMatcher(v.Matcher, objectKey); err != nil { - return err - } - } - - if v.Name != nil { - objectKey := object.Key("Name") - objectKey.String(*v.Name) - } - - if v.Port != nil { - objectKey := object.Key("Port") - objectKey.Integer(*v.Port) - } - - if len(v.Protocol) > 0 { - objectKey := object.Key("Protocol") - objectKey.String(string(v.Protocol)) - } - - if v.ProtocolVersion != nil { - objectKey := object.Key("ProtocolVersion") - objectKey.String(*v.ProtocolVersion) - } - - if v.Tags != nil { - objectKey := object.Key("Tags") - if err := awsAwsquery_serializeDocumentTagList(v.Tags, objectKey); err != nil { - return err - } - } - - if v.TargetControlPort != nil { - objectKey := object.Key("TargetControlPort") - objectKey.Integer(*v.TargetControlPort) - } - - if len(v.TargetType) > 0 { - objectKey := object.Key("TargetType") - objectKey.String(string(v.TargetType)) - } - - if v.UnhealthyThresholdCount != nil { - objectKey := object.Key("UnhealthyThresholdCount") - objectKey.Integer(*v.UnhealthyThresholdCount) - } - - if v.VpcId != nil { - objectKey := object.Key("VpcId") - objectKey.String(*v.VpcId) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentCreateTrustStoreInput(v *CreateTrustStoreInput, value query.Value) error { - object := value.Object() - _ = object - - if v.CaCertificatesBundleS3Bucket != nil { - objectKey := object.Key("CaCertificatesBundleS3Bucket") - objectKey.String(*v.CaCertificatesBundleS3Bucket) - } - - if v.CaCertificatesBundleS3Key != nil { - objectKey := object.Key("CaCertificatesBundleS3Key") - objectKey.String(*v.CaCertificatesBundleS3Key) - } - - if v.CaCertificatesBundleS3ObjectVersion != nil { - objectKey := object.Key("CaCertificatesBundleS3ObjectVersion") - objectKey.String(*v.CaCertificatesBundleS3ObjectVersion) - } - - if v.Name != nil { - objectKey := object.Key("Name") - objectKey.String(*v.Name) - } - - if v.Tags != nil { - objectKey := object.Key("Tags") - if err := awsAwsquery_serializeDocumentTagList(v.Tags, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDeleteListenerInput(v *DeleteListenerInput, value query.Value) error { - object := value.Object() - _ = object - - if v.ListenerArn != nil { - objectKey := object.Key("ListenerArn") - objectKey.String(*v.ListenerArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDeleteLoadBalancerInput(v *DeleteLoadBalancerInput, value query.Value) error { - object := value.Object() - _ = object - - if v.LoadBalancerArn != nil { - objectKey := object.Key("LoadBalancerArn") - objectKey.String(*v.LoadBalancerArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDeleteRuleInput(v *DeleteRuleInput, value query.Value) error { - object := value.Object() - _ = object - - if v.RuleArn != nil { - objectKey := object.Key("RuleArn") - objectKey.String(*v.RuleArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDeleteSharedTrustStoreAssociationInput(v *DeleteSharedTrustStoreAssociationInput, value query.Value) error { - object := value.Object() - _ = object - - if v.ResourceArn != nil { - objectKey := object.Key("ResourceArn") - objectKey.String(*v.ResourceArn) - } - - if v.TrustStoreArn != nil { - objectKey := object.Key("TrustStoreArn") - objectKey.String(*v.TrustStoreArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDeleteTargetGroupInput(v *DeleteTargetGroupInput, value query.Value) error { - object := value.Object() - _ = object - - if v.TargetGroupArn != nil { - objectKey := object.Key("TargetGroupArn") - objectKey.String(*v.TargetGroupArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDeleteTrustStoreInput(v *DeleteTrustStoreInput, value query.Value) error { - object := value.Object() - _ = object - - if v.TrustStoreArn != nil { - objectKey := object.Key("TrustStoreArn") - objectKey.String(*v.TrustStoreArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDeregisterTargetsInput(v *DeregisterTargetsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.TargetGroupArn != nil { - objectKey := object.Key("TargetGroupArn") - objectKey.String(*v.TargetGroupArn) - } - - if v.Targets != nil { - objectKey := object.Key("Targets") - if err := awsAwsquery_serializeDocumentTargetDescriptions(v.Targets, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeAccountLimitsInput(v *DescribeAccountLimitsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.Marker != nil { - objectKey := object.Key("Marker") - objectKey.String(*v.Marker) - } - - if v.PageSize != nil { - objectKey := object.Key("PageSize") - objectKey.Integer(*v.PageSize) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeCapacityReservationInput(v *DescribeCapacityReservationInput, value query.Value) error { - object := value.Object() - _ = object - - if v.LoadBalancerArn != nil { - objectKey := object.Key("LoadBalancerArn") - objectKey.String(*v.LoadBalancerArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeListenerAttributesInput(v *DescribeListenerAttributesInput, value query.Value) error { - object := value.Object() - _ = object - - if v.ListenerArn != nil { - objectKey := object.Key("ListenerArn") - objectKey.String(*v.ListenerArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeListenerCertificatesInput(v *DescribeListenerCertificatesInput, value query.Value) error { - object := value.Object() - _ = object - - if v.ListenerArn != nil { - objectKey := object.Key("ListenerArn") - objectKey.String(*v.ListenerArn) - } - - if v.Marker != nil { - objectKey := object.Key("Marker") - objectKey.String(*v.Marker) - } - - if v.PageSize != nil { - objectKey := object.Key("PageSize") - objectKey.Integer(*v.PageSize) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeListenersInput(v *DescribeListenersInput, value query.Value) error { - object := value.Object() - _ = object - - if v.ListenerArns != nil { - objectKey := object.Key("ListenerArns") - if err := awsAwsquery_serializeDocumentListenerArns(v.ListenerArns, objectKey); err != nil { - return err - } - } - - if v.LoadBalancerArn != nil { - objectKey := object.Key("LoadBalancerArn") - objectKey.String(*v.LoadBalancerArn) - } - - if v.Marker != nil { - objectKey := object.Key("Marker") - objectKey.String(*v.Marker) - } - - if v.PageSize != nil { - objectKey := object.Key("PageSize") - objectKey.Integer(*v.PageSize) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeLoadBalancerAttributesInput(v *DescribeLoadBalancerAttributesInput, value query.Value) error { - object := value.Object() - _ = object - - if v.LoadBalancerArn != nil { - objectKey := object.Key("LoadBalancerArn") - objectKey.String(*v.LoadBalancerArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeLoadBalancersInput(v *DescribeLoadBalancersInput, value query.Value) error { - object := value.Object() - _ = object - - if v.LoadBalancerArns != nil { - objectKey := object.Key("LoadBalancerArns") - if err := awsAwsquery_serializeDocumentLoadBalancerArns(v.LoadBalancerArns, objectKey); err != nil { - return err - } - } - - if v.Marker != nil { - objectKey := object.Key("Marker") - objectKey.String(*v.Marker) - } - - if v.Names != nil { - objectKey := object.Key("Names") - if err := awsAwsquery_serializeDocumentLoadBalancerNames(v.Names, objectKey); err != nil { - return err - } - } - - if v.PageSize != nil { - objectKey := object.Key("PageSize") - objectKey.Integer(*v.PageSize) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeRulesInput(v *DescribeRulesInput, value query.Value) error { - object := value.Object() - _ = object - - if v.ListenerArn != nil { - objectKey := object.Key("ListenerArn") - objectKey.String(*v.ListenerArn) - } - - if v.Marker != nil { - objectKey := object.Key("Marker") - objectKey.String(*v.Marker) - } - - if v.PageSize != nil { - objectKey := object.Key("PageSize") - objectKey.Integer(*v.PageSize) - } - - if v.RuleArns != nil { - objectKey := object.Key("RuleArns") - if err := awsAwsquery_serializeDocumentRuleArns(v.RuleArns, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeSSLPoliciesInput(v *DescribeSSLPoliciesInput, value query.Value) error { - object := value.Object() - _ = object - - if len(v.LoadBalancerType) > 0 { - objectKey := object.Key("LoadBalancerType") - objectKey.String(string(v.LoadBalancerType)) - } - - if v.Marker != nil { - objectKey := object.Key("Marker") - objectKey.String(*v.Marker) - } - - if v.Names != nil { - objectKey := object.Key("Names") - if err := awsAwsquery_serializeDocumentSslPolicyNames(v.Names, objectKey); err != nil { - return err - } - } - - if v.PageSize != nil { - objectKey := object.Key("PageSize") - objectKey.Integer(*v.PageSize) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeTagsInput(v *DescribeTagsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.ResourceArns != nil { - objectKey := object.Key("ResourceArns") - if err := awsAwsquery_serializeDocumentResourceArns(v.ResourceArns, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeTargetGroupAttributesInput(v *DescribeTargetGroupAttributesInput, value query.Value) error { - object := value.Object() - _ = object - - if v.TargetGroupArn != nil { - objectKey := object.Key("TargetGroupArn") - objectKey.String(*v.TargetGroupArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeTargetGroupsInput(v *DescribeTargetGroupsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.LoadBalancerArn != nil { - objectKey := object.Key("LoadBalancerArn") - objectKey.String(*v.LoadBalancerArn) - } - - if v.Marker != nil { - objectKey := object.Key("Marker") - objectKey.String(*v.Marker) - } - - if v.Names != nil { - objectKey := object.Key("Names") - if err := awsAwsquery_serializeDocumentTargetGroupNames(v.Names, objectKey); err != nil { - return err - } - } - - if v.PageSize != nil { - objectKey := object.Key("PageSize") - objectKey.Integer(*v.PageSize) - } - - if v.TargetGroupArns != nil { - objectKey := object.Key("TargetGroupArns") - if err := awsAwsquery_serializeDocumentTargetGroupArns(v.TargetGroupArns, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeTargetHealthInput(v *DescribeTargetHealthInput, value query.Value) error { - object := value.Object() - _ = object - - if v.Include != nil { - objectKey := object.Key("Include") - if err := awsAwsquery_serializeDocumentListOfDescribeTargetHealthIncludeOptions(v.Include, objectKey); err != nil { - return err - } - } - - if v.TargetGroupArn != nil { - objectKey := object.Key("TargetGroupArn") - objectKey.String(*v.TargetGroupArn) - } - - if v.Targets != nil { - objectKey := object.Key("Targets") - if err := awsAwsquery_serializeDocumentTargetDescriptions(v.Targets, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeTrustStoreAssociationsInput(v *DescribeTrustStoreAssociationsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.Marker != nil { - objectKey := object.Key("Marker") - objectKey.String(*v.Marker) - } - - if v.PageSize != nil { - objectKey := object.Key("PageSize") - objectKey.Integer(*v.PageSize) - } - - if v.TrustStoreArn != nil { - objectKey := object.Key("TrustStoreArn") - objectKey.String(*v.TrustStoreArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeTrustStoreRevocationsInput(v *DescribeTrustStoreRevocationsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.Marker != nil { - objectKey := object.Key("Marker") - objectKey.String(*v.Marker) - } - - if v.PageSize != nil { - objectKey := object.Key("PageSize") - objectKey.Integer(*v.PageSize) - } - - if v.RevocationIds != nil { - objectKey := object.Key("RevocationIds") - if err := awsAwsquery_serializeDocumentRevocationIds(v.RevocationIds, objectKey); err != nil { - return err - } - } - - if v.TrustStoreArn != nil { - objectKey := object.Key("TrustStoreArn") - objectKey.String(*v.TrustStoreArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentDescribeTrustStoresInput(v *DescribeTrustStoresInput, value query.Value) error { - object := value.Object() - _ = object - - if v.Marker != nil { - objectKey := object.Key("Marker") - objectKey.String(*v.Marker) - } - - if v.Names != nil { - objectKey := object.Key("Names") - if err := awsAwsquery_serializeDocumentTrustStoreNames(v.Names, objectKey); err != nil { - return err - } - } - - if v.PageSize != nil { - objectKey := object.Key("PageSize") - objectKey.Integer(*v.PageSize) - } - - if v.TrustStoreArns != nil { - objectKey := object.Key("TrustStoreArns") - if err := awsAwsquery_serializeDocumentTrustStoreArns(v.TrustStoreArns, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentGetResourcePolicyInput(v *GetResourcePolicyInput, value query.Value) error { - object := value.Object() - _ = object - - if v.ResourceArn != nil { - objectKey := object.Key("ResourceArn") - objectKey.String(*v.ResourceArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentGetTrustStoreCaCertificatesBundleInput(v *GetTrustStoreCaCertificatesBundleInput, value query.Value) error { - object := value.Object() - _ = object - - if v.TrustStoreArn != nil { - objectKey := object.Key("TrustStoreArn") - objectKey.String(*v.TrustStoreArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentGetTrustStoreRevocationContentInput(v *GetTrustStoreRevocationContentInput, value query.Value) error { - object := value.Object() - _ = object - - if v.RevocationId != nil { - objectKey := object.Key("RevocationId") - objectKey.Long(*v.RevocationId) - } - - if v.TrustStoreArn != nil { - objectKey := object.Key("TrustStoreArn") - objectKey.String(*v.TrustStoreArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentModifyCapacityReservationInput(v *ModifyCapacityReservationInput, value query.Value) error { - object := value.Object() - _ = object - - if v.LoadBalancerArn != nil { - objectKey := object.Key("LoadBalancerArn") - objectKey.String(*v.LoadBalancerArn) - } - - if v.MinimumLoadBalancerCapacity != nil { - objectKey := object.Key("MinimumLoadBalancerCapacity") - if err := awsAwsquery_serializeDocumentMinimumLoadBalancerCapacity(v.MinimumLoadBalancerCapacity, objectKey); err != nil { - return err - } - } - - if v.ResetCapacityReservation != nil { - objectKey := object.Key("ResetCapacityReservation") - objectKey.Boolean(*v.ResetCapacityReservation) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentModifyIpPoolsInput(v *ModifyIpPoolsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.IpamPools != nil { - objectKey := object.Key("IpamPools") - if err := awsAwsquery_serializeDocumentIpamPools(v.IpamPools, objectKey); err != nil { - return err - } - } - - if v.LoadBalancerArn != nil { - objectKey := object.Key("LoadBalancerArn") - objectKey.String(*v.LoadBalancerArn) - } - - if v.RemoveIpamPools != nil { - objectKey := object.Key("RemoveIpamPools") - if err := awsAwsquery_serializeDocumentRemoveIpamPools(v.RemoveIpamPools, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentModifyListenerAttributesInput(v *ModifyListenerAttributesInput, value query.Value) error { - object := value.Object() - _ = object - - if v.Attributes != nil { - objectKey := object.Key("Attributes") - if err := awsAwsquery_serializeDocumentListenerAttributes(v.Attributes, objectKey); err != nil { - return err - } - } - - if v.ListenerArn != nil { - objectKey := object.Key("ListenerArn") - objectKey.String(*v.ListenerArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentModifyListenerInput(v *ModifyListenerInput, value query.Value) error { - object := value.Object() - _ = object - - if v.AlpnPolicy != nil { - objectKey := object.Key("AlpnPolicy") - if err := awsAwsquery_serializeDocumentAlpnPolicyName(v.AlpnPolicy, objectKey); err != nil { - return err - } - } - - if v.Certificates != nil { - objectKey := object.Key("Certificates") - if err := awsAwsquery_serializeDocumentCertificateList(v.Certificates, objectKey); err != nil { - return err - } - } - - if v.DefaultActions != nil { - objectKey := object.Key("DefaultActions") - if err := awsAwsquery_serializeDocumentActions(v.DefaultActions, objectKey); err != nil { - return err - } - } - - if v.ListenerArn != nil { - objectKey := object.Key("ListenerArn") - objectKey.String(*v.ListenerArn) - } - - if v.MutualAuthentication != nil { - objectKey := object.Key("MutualAuthentication") - if err := awsAwsquery_serializeDocumentMutualAuthenticationAttributes(v.MutualAuthentication, objectKey); err != nil { - return err - } - } - - if v.Port != nil { - objectKey := object.Key("Port") - objectKey.Integer(*v.Port) - } - - if len(v.Protocol) > 0 { - objectKey := object.Key("Protocol") - objectKey.String(string(v.Protocol)) - } - - if v.SslPolicy != nil { - objectKey := object.Key("SslPolicy") - objectKey.String(*v.SslPolicy) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentModifyLoadBalancerAttributesInput(v *ModifyLoadBalancerAttributesInput, value query.Value) error { - object := value.Object() - _ = object - - if v.Attributes != nil { - objectKey := object.Key("Attributes") - if err := awsAwsquery_serializeDocumentLoadBalancerAttributes(v.Attributes, objectKey); err != nil { - return err - } - } - - if v.LoadBalancerArn != nil { - objectKey := object.Key("LoadBalancerArn") - objectKey.String(*v.LoadBalancerArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentModifyRuleInput(v *ModifyRuleInput, value query.Value) error { - object := value.Object() - _ = object - - if v.Actions != nil { - objectKey := object.Key("Actions") - if err := awsAwsquery_serializeDocumentActions(v.Actions, objectKey); err != nil { - return err - } - } - - if v.Conditions != nil { - objectKey := object.Key("Conditions") - if err := awsAwsquery_serializeDocumentRuleConditionList(v.Conditions, objectKey); err != nil { - return err - } - } - - if v.ResetTransforms != nil { - objectKey := object.Key("ResetTransforms") - objectKey.Boolean(*v.ResetTransforms) - } - - if v.RuleArn != nil { - objectKey := object.Key("RuleArn") - objectKey.String(*v.RuleArn) - } - - if v.Transforms != nil { - objectKey := object.Key("Transforms") - if err := awsAwsquery_serializeDocumentRuleTransformList(v.Transforms, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentModifyTargetGroupAttributesInput(v *ModifyTargetGroupAttributesInput, value query.Value) error { - object := value.Object() - _ = object - - if v.Attributes != nil { - objectKey := object.Key("Attributes") - if err := awsAwsquery_serializeDocumentTargetGroupAttributes(v.Attributes, objectKey); err != nil { - return err - } - } - - if v.TargetGroupArn != nil { - objectKey := object.Key("TargetGroupArn") - objectKey.String(*v.TargetGroupArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentModifyTargetGroupInput(v *ModifyTargetGroupInput, value query.Value) error { - object := value.Object() - _ = object - - if v.HealthCheckEnabled != nil { - objectKey := object.Key("HealthCheckEnabled") - objectKey.Boolean(*v.HealthCheckEnabled) - } - - if v.HealthCheckIntervalSeconds != nil { - objectKey := object.Key("HealthCheckIntervalSeconds") - objectKey.Integer(*v.HealthCheckIntervalSeconds) - } - - if v.HealthCheckPath != nil { - objectKey := object.Key("HealthCheckPath") - objectKey.String(*v.HealthCheckPath) - } - - if v.HealthCheckPort != nil { - objectKey := object.Key("HealthCheckPort") - objectKey.String(*v.HealthCheckPort) - } - - if len(v.HealthCheckProtocol) > 0 { - objectKey := object.Key("HealthCheckProtocol") - objectKey.String(string(v.HealthCheckProtocol)) - } - - if v.HealthCheckTimeoutSeconds != nil { - objectKey := object.Key("HealthCheckTimeoutSeconds") - objectKey.Integer(*v.HealthCheckTimeoutSeconds) - } - - if v.HealthyThresholdCount != nil { - objectKey := object.Key("HealthyThresholdCount") - objectKey.Integer(*v.HealthyThresholdCount) - } - - if v.Matcher != nil { - objectKey := object.Key("Matcher") - if err := awsAwsquery_serializeDocumentMatcher(v.Matcher, objectKey); err != nil { - return err - } - } - - if v.TargetGroupArn != nil { - objectKey := object.Key("TargetGroupArn") - objectKey.String(*v.TargetGroupArn) - } - - if v.UnhealthyThresholdCount != nil { - objectKey := object.Key("UnhealthyThresholdCount") - objectKey.Integer(*v.UnhealthyThresholdCount) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentModifyTrustStoreInput(v *ModifyTrustStoreInput, value query.Value) error { - object := value.Object() - _ = object - - if v.CaCertificatesBundleS3Bucket != nil { - objectKey := object.Key("CaCertificatesBundleS3Bucket") - objectKey.String(*v.CaCertificatesBundleS3Bucket) - } - - if v.CaCertificatesBundleS3Key != nil { - objectKey := object.Key("CaCertificatesBundleS3Key") - objectKey.String(*v.CaCertificatesBundleS3Key) - } - - if v.CaCertificatesBundleS3ObjectVersion != nil { - objectKey := object.Key("CaCertificatesBundleS3ObjectVersion") - objectKey.String(*v.CaCertificatesBundleS3ObjectVersion) - } - - if v.TrustStoreArn != nil { - objectKey := object.Key("TrustStoreArn") - objectKey.String(*v.TrustStoreArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentRegisterTargetsInput(v *RegisterTargetsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.TargetGroupArn != nil { - objectKey := object.Key("TargetGroupArn") - objectKey.String(*v.TargetGroupArn) - } - - if v.Targets != nil { - objectKey := object.Key("Targets") - if err := awsAwsquery_serializeDocumentTargetDescriptions(v.Targets, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentRemoveListenerCertificatesInput(v *RemoveListenerCertificatesInput, value query.Value) error { - object := value.Object() - _ = object - - if v.Certificates != nil { - objectKey := object.Key("Certificates") - if err := awsAwsquery_serializeDocumentCertificateList(v.Certificates, objectKey); err != nil { - return err - } - } - - if v.ListenerArn != nil { - objectKey := object.Key("ListenerArn") - objectKey.String(*v.ListenerArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentRemoveTagsInput(v *RemoveTagsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.ResourceArns != nil { - objectKey := object.Key("ResourceArns") - if err := awsAwsquery_serializeDocumentResourceArns(v.ResourceArns, objectKey); err != nil { - return err - } - } - - if v.TagKeys != nil { - objectKey := object.Key("TagKeys") - if err := awsAwsquery_serializeDocumentTagKeys(v.TagKeys, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentRemoveTrustStoreRevocationsInput(v *RemoveTrustStoreRevocationsInput, value query.Value) error { - object := value.Object() - _ = object - - if v.RevocationIds != nil { - objectKey := object.Key("RevocationIds") - if err := awsAwsquery_serializeDocumentRevocationIds(v.RevocationIds, objectKey); err != nil { - return err - } - } - - if v.TrustStoreArn != nil { - objectKey := object.Key("TrustStoreArn") - objectKey.String(*v.TrustStoreArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentSetIpAddressTypeInput(v *SetIpAddressTypeInput, value query.Value) error { - object := value.Object() - _ = object - - if len(v.IpAddressType) > 0 { - objectKey := object.Key("IpAddressType") - objectKey.String(string(v.IpAddressType)) - } - - if v.LoadBalancerArn != nil { - objectKey := object.Key("LoadBalancerArn") - objectKey.String(*v.LoadBalancerArn) - } - - return nil -} - -func awsAwsquery_serializeOpDocumentSetRulePrioritiesInput(v *SetRulePrioritiesInput, value query.Value) error { - object := value.Object() - _ = object - - if v.RulePriorities != nil { - objectKey := object.Key("RulePriorities") - if err := awsAwsquery_serializeDocumentRulePriorityList(v.RulePriorities, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentSetSecurityGroupsInput(v *SetSecurityGroupsInput, value query.Value) error { - object := value.Object() - _ = object - - if len(v.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic) > 0 { - objectKey := object.Key("EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic") - objectKey.String(string(v.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic)) - } - - if v.LoadBalancerArn != nil { - objectKey := object.Key("LoadBalancerArn") - objectKey.String(*v.LoadBalancerArn) - } - - if v.SecurityGroups != nil { - objectKey := object.Key("SecurityGroups") - if err := awsAwsquery_serializeDocumentSecurityGroups(v.SecurityGroups, objectKey); err != nil { - return err - } - } - - return nil -} - -func awsAwsquery_serializeOpDocumentSetSubnetsInput(v *SetSubnetsInput, value query.Value) error { - object := value.Object() - _ = object - - if len(v.EnablePrefixForIpv6SourceNat) > 0 { - objectKey := object.Key("EnablePrefixForIpv6SourceNat") - objectKey.String(string(v.EnablePrefixForIpv6SourceNat)) - } - - if len(v.IpAddressType) > 0 { - objectKey := object.Key("IpAddressType") - objectKey.String(string(v.IpAddressType)) - } - - if v.LoadBalancerArn != nil { - objectKey := object.Key("LoadBalancerArn") - objectKey.String(*v.LoadBalancerArn) - } - - if v.SubnetMappings != nil { - objectKey := object.Key("SubnetMappings") - if err := awsAwsquery_serializeDocumentSubnetMappings(v.SubnetMappings, objectKey); err != nil { - return err - } - } - - if v.Subnets != nil { - objectKey := object.Key("Subnets") - if err := awsAwsquery_serializeDocumentSubnets(v.Subnets, objectKey); err != nil { - return err - } - } - - return nil -} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/type_registry.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/type_registry.go new file mode 100644 index 000000000..8925a674b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/type_registry.go @@ -0,0 +1,239 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package elasticloadbalancingv2 + +import ( + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types" + smithy "github.com/aws/smithy-go" +) + +// TypeRegistry is the type registry for this service. +var TypeRegistry = &smithy.TypeRegistry{ + Entries: map[string]*smithy.TypeRegistryEntry{ + "com.amazonaws.elasticloadbalancingv2#AllocationIdNotFoundException": { + Schema: schemas.AllocationIdNotFoundException, + New: func() any { return &types.AllocationIdNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#ALPNPolicyNotSupportedException": { + Schema: schemas.ALPNPolicyNotSupportedException, + New: func() any { return &types.ALPNPolicyNotSupportedException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#AvailabilityZoneNotSupportedException": { + Schema: schemas.AvailabilityZoneNotSupportedException, + New: func() any { return &types.AvailabilityZoneNotSupportedException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#CaCertificatesBundleNotFoundException": { + Schema: schemas.CaCertificatesBundleNotFoundException, + New: func() any { return &types.CaCertificatesBundleNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#CapacityDecreaseRequestsLimitExceededException": { + Schema: schemas.CapacityDecreaseRequestsLimitExceededException, + New: func() any { return &types.CapacityDecreaseRequestsLimitExceededException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#CapacityReservationPendingException": { + Schema: schemas.CapacityReservationPendingException, + New: func() any { return &types.CapacityReservationPendingException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#CapacityUnitsLimitExceededException": { + Schema: schemas.CapacityUnitsLimitExceededException, + New: func() any { return &types.CapacityUnitsLimitExceededException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#CertificateNotFoundException": { + Schema: schemas.CertificateNotFoundException, + New: func() any { return &types.CertificateNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#DeleteAssociationSameAccountException": { + Schema: schemas.DeleteAssociationSameAccountException, + New: func() any { return &types.DeleteAssociationSameAccountException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#DuplicateListenerException": { + Schema: schemas.DuplicateListenerException, + New: func() any { return &types.DuplicateListenerException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#DuplicateLoadBalancerNameException": { + Schema: schemas.DuplicateLoadBalancerNameException, + New: func() any { return &types.DuplicateLoadBalancerNameException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#DuplicateTagKeysException": { + Schema: schemas.DuplicateTagKeysException, + New: func() any { return &types.DuplicateTagKeysException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#DuplicateTargetGroupNameException": { + Schema: schemas.DuplicateTargetGroupNameException, + New: func() any { return &types.DuplicateTargetGroupNameException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#DuplicateTrustStoreNameException": { + Schema: schemas.DuplicateTrustStoreNameException, + New: func() any { return &types.DuplicateTrustStoreNameException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#HealthUnavailableException": { + Schema: schemas.HealthUnavailableException, + New: func() any { return &types.HealthUnavailableException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#IncompatibleProtocolsException": { + Schema: schemas.IncompatibleProtocolsException, + New: func() any { return &types.IncompatibleProtocolsException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#InsufficientCapacityException": { + Schema: schemas.InsufficientCapacityException, + New: func() any { return &types.InsufficientCapacityException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#InvalidCaCertificatesBundleException": { + Schema: schemas.InvalidCaCertificatesBundleException, + New: func() any { return &types.InvalidCaCertificatesBundleException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#InvalidConfigurationRequestException": { + Schema: schemas.InvalidConfigurationRequestException, + New: func() any { return &types.InvalidConfigurationRequestException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#InvalidLoadBalancerActionException": { + Schema: schemas.InvalidLoadBalancerActionException, + New: func() any { return &types.InvalidLoadBalancerActionException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#InvalidRevocationContentException": { + Schema: schemas.InvalidRevocationContentException, + New: func() any { return &types.InvalidRevocationContentException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#InvalidSchemeException": { + Schema: schemas.InvalidSchemeException, + New: func() any { return &types.InvalidSchemeException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#InvalidSecurityGroupException": { + Schema: schemas.InvalidSecurityGroupException, + New: func() any { return &types.InvalidSecurityGroupException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#InvalidSubnetException": { + Schema: schemas.InvalidSubnetException, + New: func() any { return &types.InvalidSubnetException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#InvalidTargetException": { + Schema: schemas.InvalidTargetException, + New: func() any { return &types.InvalidTargetException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#ListenerNotFoundException": { + Schema: schemas.ListenerNotFoundException, + New: func() any { return &types.ListenerNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#LoadBalancerNotFoundException": { + Schema: schemas.LoadBalancerNotFoundException, + New: func() any { return &types.LoadBalancerNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#OperationNotPermittedException": { + Schema: schemas.OperationNotPermittedException, + New: func() any { return &types.OperationNotPermittedException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#PriorityInUseException": { + Schema: schemas.PriorityInUseException, + New: func() any { return &types.PriorityInUseException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#PriorRequestNotCompleteException": { + Schema: schemas.PriorRequestNotCompleteException, + New: func() any { return &types.PriorRequestNotCompleteException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#ResourceInUseException": { + Schema: schemas.ResourceInUseException, + New: func() any { return &types.ResourceInUseException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#ResourceNotFoundException": { + Schema: schemas.ResourceNotFoundException, + New: func() any { return &types.ResourceNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#RevocationContentNotFoundException": { + Schema: schemas.RevocationContentNotFoundException, + New: func() any { return &types.RevocationContentNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#RevocationIdNotFoundException": { + Schema: schemas.RevocationIdNotFoundException, + New: func() any { return &types.RevocationIdNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#RuleNotFoundException": { + Schema: schemas.RuleNotFoundException, + New: func() any { return &types.RuleNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#SSLPolicyNotFoundException": { + Schema: schemas.SSLPolicyNotFoundException, + New: func() any { return &types.SSLPolicyNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#SubnetNotFoundException": { + Schema: schemas.SubnetNotFoundException, + New: func() any { return &types.SubnetNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TargetGroupAssociationLimitException": { + Schema: schemas.TargetGroupAssociationLimitException, + New: func() any { return &types.TargetGroupAssociationLimitException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException": { + Schema: schemas.TargetGroupNotFoundException, + New: func() any { return &types.TargetGroupNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TooManyActionsException": { + Schema: schemas.TooManyActionsException, + New: func() any { return &types.TooManyActionsException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TooManyCertificatesException": { + Schema: schemas.TooManyCertificatesException, + New: func() any { return &types.TooManyCertificatesException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TooManyListenersException": { + Schema: schemas.TooManyListenersException, + New: func() any { return &types.TooManyListenersException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TooManyLoadBalancersException": { + Schema: schemas.TooManyLoadBalancersException, + New: func() any { return &types.TooManyLoadBalancersException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TooManyRegistrationsForTargetIdException": { + Schema: schemas.TooManyRegistrationsForTargetIdException, + New: func() any { return &types.TooManyRegistrationsForTargetIdException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TooManyRulesException": { + Schema: schemas.TooManyRulesException, + New: func() any { return &types.TooManyRulesException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TooManyTagsException": { + Schema: schemas.TooManyTagsException, + New: func() any { return &types.TooManyTagsException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TooManyTargetGroupsException": { + Schema: schemas.TooManyTargetGroupsException, + New: func() any { return &types.TooManyTargetGroupsException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TooManyTargetsException": { + Schema: schemas.TooManyTargetsException, + New: func() any { return &types.TooManyTargetsException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TooManyTrustStoreRevocationEntriesException": { + Schema: schemas.TooManyTrustStoreRevocationEntriesException, + New: func() any { return &types.TooManyTrustStoreRevocationEntriesException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TooManyTrustStoresException": { + Schema: schemas.TooManyTrustStoresException, + New: func() any { return &types.TooManyTrustStoresException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException": { + Schema: schemas.TooManyUniqueTargetGroupsPerLoadBalancerException, + New: func() any { return &types.TooManyUniqueTargetGroupsPerLoadBalancerException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TrustStoreAssociationNotFoundException": { + Schema: schemas.TrustStoreAssociationNotFoundException, + New: func() any { return &types.TrustStoreAssociationNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TrustStoreInUseException": { + Schema: schemas.TrustStoreInUseException, + New: func() any { return &types.TrustStoreInUseException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException": { + Schema: schemas.TrustStoreNotFoundException, + New: func() any { return &types.TrustStoreNotFoundException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#TrustStoreNotReadyException": { + Schema: schemas.TrustStoreNotReadyException, + New: func() any { return &types.TrustStoreNotReadyException{} }, + }, + "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException": { + Schema: schemas.UnsupportedProtocolException, + New: func() any { return &types.UnsupportedProtocolException{} }, + }, + }, +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/common_serde.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/common_serde.go new file mode 100644 index 000000000..368b0e26a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/common_serde.go @@ -0,0 +1,1732 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package types + +import ( + smithy "github.com/aws/smithy-go" +) + +func serializeActions(s smithy.ShapeSerializer, schema *smithy.Schema, v []Action) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeAlpnPolicyName(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeAvailabilityZones(s smithy.ShapeSerializer, schema *smithy.Schema, v []AvailabilityZone) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeCertificateList(s smithy.ShapeSerializer, schema *smithy.Schema, v []Certificate) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeCiphers(s smithy.ShapeSerializer, schema *smithy.Schema, v []Cipher) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeClientCertificateIdentityFilters(s smithy.ShapeSerializer, schema *smithy.Schema, v []ClientCertificateIdentityFilter) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeDescribeTrustStoreRevocationResponse(s smithy.ShapeSerializer, schema *smithy.Schema, v []DescribeTrustStoreRevocation) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeJwtValidationActionAdditionalClaims(s smithy.ShapeSerializer, schema *smithy.Schema, v []JwtValidationActionAdditionalClaim) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeJwtValidationActionAdditionalClaimValues(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeLimits(s smithy.ShapeSerializer, schema *smithy.Schema, v []Limit) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeListenerArns(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeListenerAttributes(s smithy.ShapeSerializer, schema *smithy.Schema, v []ListenerAttribute) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeListeners(s smithy.ShapeSerializer, schema *smithy.Schema, v []Listener) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeListOfDescribeTargetHealthIncludeOptions(s smithy.ShapeSerializer, schema *smithy.Schema, v []DescribeTargetHealthInputIncludeEnum) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeListOfString(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeLoadBalancerAddresses(s smithy.ShapeSerializer, schema *smithy.Schema, v []LoadBalancerAddress) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeLoadBalancerArns(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeLoadBalancerAttributes(s smithy.ShapeSerializer, schema *smithy.Schema, v []LoadBalancerAttribute) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeLoadBalancerNames(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeLoadBalancers(s smithy.ShapeSerializer, schema *smithy.Schema, v []LoadBalancer) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeQueryStringKeyValuePairList(s smithy.ShapeSerializer, schema *smithy.Schema, v []QueryStringKeyValuePair) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeRemoveIpamPools(s smithy.ShapeSerializer, schema *smithy.Schema, v []RemoveIpamPoolEnum) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeResourceArns(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeRevocationContents(s smithy.ShapeSerializer, schema *smithy.Schema, v []RevocationContent) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeRevocationIds(s smithy.ShapeSerializer, schema *smithy.Schema, v []int64) { + s.WriteList(schema) + for _, vv := range v { + s.WriteInt64(schema.ListMember(), vv) + } + s.CloseList() +} + +func serializeRewriteConfigList(s smithy.ShapeSerializer, schema *smithy.Schema, v []RewriteConfig) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeRuleArns(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeRuleConditionList(s smithy.ShapeSerializer, schema *smithy.Schema, v []RuleCondition) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeRulePriorityList(s smithy.ShapeSerializer, schema *smithy.Schema, v []RulePriorityPair) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeRules(s smithy.ShapeSerializer, schema *smithy.Schema, v []Rule) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeRuleTransformList(s smithy.ShapeSerializer, schema *smithy.Schema, v []RuleTransform) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeSecurityGroups(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeSourceNatIpv6Prefixes(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeSslPolicies(s smithy.ShapeSerializer, schema *smithy.Schema, v []SslPolicy) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeSslPolicyNames(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeSslProtocols(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeSubnetMappings(s smithy.ShapeSerializer, schema *smithy.Schema, v []SubnetMapping) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeSubnets(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeTagDescriptions(s smithy.ShapeSerializer, schema *smithy.Schema, v []TagDescription) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTagKeys(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeTagList(s smithy.ShapeSerializer, schema *smithy.Schema, v []Tag) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTargetDescriptions(s smithy.ShapeSerializer, schema *smithy.Schema, v []TargetDescription) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTargetGroupArns(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeTargetGroupAttributes(s smithy.ShapeSerializer, schema *smithy.Schema, v []TargetGroupAttribute) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTargetGroupList(s smithy.ShapeSerializer, schema *smithy.Schema, v []TargetGroupTuple) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTargetGroupNames(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeTargetGroups(s smithy.ShapeSerializer, schema *smithy.Schema, v []TargetGroup) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTargetHealthDescriptions(s smithy.ShapeSerializer, schema *smithy.Schema, v []TargetHealthDescription) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTrustStoreArns(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeTrustStoreAssociations(s smithy.ShapeSerializer, schema *smithy.Schema, v []TrustStoreAssociation) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTrustStoreNames(s smithy.ShapeSerializer, schema *smithy.Schema, v []string) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + +func serializeTrustStoreRevocations(s smithy.ShapeSerializer, schema *smithy.Schema, v []TrustStoreRevocation) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeTrustStores(s smithy.ShapeSerializer, schema *smithy.Schema, v []TrustStore) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func serializeZonalCapacityReservationStates(s smithy.ShapeSerializer, schema *smithy.Schema, v []ZonalCapacityReservationState) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + +func deserializeActions(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]Action) error { + *v = make([]Action, 0) + var vv Action + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero Action + *v = append(*v, zero) + return nil + } + + vv = Action{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeAlpnPolicyName(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeAvailabilityZones(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]AvailabilityZone) error { + *v = make([]AvailabilityZone, 0) + var vv AvailabilityZone + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero AvailabilityZone + *v = append(*v, zero) + return nil + } + + vv = AvailabilityZone{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeCertificateList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]Certificate) error { + *v = make([]Certificate, 0) + var vv Certificate + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero Certificate + *v = append(*v, zero) + return nil + } + + vv = Certificate{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeCiphers(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]Cipher) error { + *v = make([]Cipher, 0) + var vv Cipher + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero Cipher + *v = append(*v, zero) + return nil + } + + vv = Cipher{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeClientCertificateIdentityFilters(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]ClientCertificateIdentityFilter) error { + *v = make([]ClientCertificateIdentityFilter, 0) + var vv ClientCertificateIdentityFilter + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero ClientCertificateIdentityFilter + *v = append(*v, zero) + return nil + } + + vv = ClientCertificateIdentityFilter{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeDescribeTrustStoreRevocationResponse(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]DescribeTrustStoreRevocation) error { + *v = make([]DescribeTrustStoreRevocation, 0) + var vv DescribeTrustStoreRevocation + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero DescribeTrustStoreRevocation + *v = append(*v, zero) + return nil + } + + vv = DescribeTrustStoreRevocation{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeJwtValidationActionAdditionalClaims(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]JwtValidationActionAdditionalClaim) error { + *v = make([]JwtValidationActionAdditionalClaim, 0) + var vv JwtValidationActionAdditionalClaim + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero JwtValidationActionAdditionalClaim + *v = append(*v, zero) + return nil + } + + vv = JwtValidationActionAdditionalClaim{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeJwtValidationActionAdditionalClaimValues(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeLimits(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]Limit) error { + *v = make([]Limit, 0) + var vv Limit + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero Limit + *v = append(*v, zero) + return nil + } + + vv = Limit{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeListenerArns(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeListenerAttributes(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]ListenerAttribute) error { + *v = make([]ListenerAttribute, 0) + var vv ListenerAttribute + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero ListenerAttribute + *v = append(*v, zero) + return nil + } + + vv = ListenerAttribute{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeListeners(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]Listener) error { + *v = make([]Listener, 0) + var vv Listener + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero Listener + *v = append(*v, zero) + return nil + } + + vv = Listener{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeListOfDescribeTargetHealthIncludeOptions(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]DescribeTargetHealthInputIncludeEnum) error { + *v = make([]DescribeTargetHealthInputIncludeEnum, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero DescribeTargetHealthInputIncludeEnum + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, DescribeTargetHealthInputIncludeEnum(vv)) + return nil + }) +} + +func deserializeListOfString(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeLoadBalancerAddresses(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]LoadBalancerAddress) error { + *v = make([]LoadBalancerAddress, 0) + var vv LoadBalancerAddress + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero LoadBalancerAddress + *v = append(*v, zero) + return nil + } + + vv = LoadBalancerAddress{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeLoadBalancerArns(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeLoadBalancerAttributes(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]LoadBalancerAttribute) error { + *v = make([]LoadBalancerAttribute, 0) + var vv LoadBalancerAttribute + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero LoadBalancerAttribute + *v = append(*v, zero) + return nil + } + + vv = LoadBalancerAttribute{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeLoadBalancerNames(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeLoadBalancers(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]LoadBalancer) error { + *v = make([]LoadBalancer, 0) + var vv LoadBalancer + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero LoadBalancer + *v = append(*v, zero) + return nil + } + + vv = LoadBalancer{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeQueryStringKeyValuePairList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]QueryStringKeyValuePair) error { + *v = make([]QueryStringKeyValuePair, 0) + var vv QueryStringKeyValuePair + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero QueryStringKeyValuePair + *v = append(*v, zero) + return nil + } + + vv = QueryStringKeyValuePair{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRemoveIpamPools(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]RemoveIpamPoolEnum) error { + *v = make([]RemoveIpamPoolEnum, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero RemoveIpamPoolEnum + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, RemoveIpamPoolEnum(vv)) + return nil + }) +} + +func deserializeResourceArns(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRevocationContents(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]RevocationContent) error { + *v = make([]RevocationContent, 0) + var vv RevocationContent + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero RevocationContent + *v = append(*v, zero) + return nil + } + + vv = RevocationContent{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRevocationIds(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]int64) error { + *v = make([]int64, 0) + var vv int64 + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero int64 + *v = append(*v, zero) + return nil + } + + if err := d.ReadInt64(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRewriteConfigList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]RewriteConfig) error { + *v = make([]RewriteConfig, 0) + var vv RewriteConfig + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero RewriteConfig + *v = append(*v, zero) + return nil + } + + vv = RewriteConfig{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRuleArns(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRuleConditionList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]RuleCondition) error { + *v = make([]RuleCondition, 0) + var vv RuleCondition + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero RuleCondition + *v = append(*v, zero) + return nil + } + + vv = RuleCondition{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRulePriorityList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]RulePriorityPair) error { + *v = make([]RulePriorityPair, 0) + var vv RulePriorityPair + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero RulePriorityPair + *v = append(*v, zero) + return nil + } + + vv = RulePriorityPair{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRules(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]Rule) error { + *v = make([]Rule, 0) + var vv Rule + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero Rule + *v = append(*v, zero) + return nil + } + + vv = Rule{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeRuleTransformList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]RuleTransform) error { + *v = make([]RuleTransform, 0) + var vv RuleTransform + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero RuleTransform + *v = append(*v, zero) + return nil + } + + vv = RuleTransform{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSecurityGroups(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSourceNatIpv6Prefixes(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSslPolicies(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]SslPolicy) error { + *v = make([]SslPolicy, 0) + var vv SslPolicy + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero SslPolicy + *v = append(*v, zero) + return nil + } + + vv = SslPolicy{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSslPolicyNames(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSslProtocols(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSubnetMappings(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]SubnetMapping) error { + *v = make([]SubnetMapping, 0) + var vv SubnetMapping + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero SubnetMapping + *v = append(*v, zero) + return nil + } + + vv = SubnetMapping{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeSubnets(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTagDescriptions(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]TagDescription) error { + *v = make([]TagDescription, 0) + var vv TagDescription + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero TagDescription + *v = append(*v, zero) + return nil + } + + vv = TagDescription{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTagKeys(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTagList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]Tag) error { + *v = make([]Tag, 0) + var vv Tag + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero Tag + *v = append(*v, zero) + return nil + } + + vv = Tag{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetDescriptions(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]TargetDescription) error { + *v = make([]TargetDescription, 0) + var vv TargetDescription + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero TargetDescription + *v = append(*v, zero) + return nil + } + + vv = TargetDescription{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetGroupArns(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetGroupAttributes(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]TargetGroupAttribute) error { + *v = make([]TargetGroupAttribute, 0) + var vv TargetGroupAttribute + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero TargetGroupAttribute + *v = append(*v, zero) + return nil + } + + vv = TargetGroupAttribute{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetGroupList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]TargetGroupTuple) error { + *v = make([]TargetGroupTuple, 0) + var vv TargetGroupTuple + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero TargetGroupTuple + *v = append(*v, zero) + return nil + } + + vv = TargetGroupTuple{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetGroupNames(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetGroups(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]TargetGroup) error { + *v = make([]TargetGroup, 0) + var vv TargetGroup + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero TargetGroup + *v = append(*v, zero) + return nil + } + + vv = TargetGroup{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTargetHealthDescriptions(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]TargetHealthDescription) error { + *v = make([]TargetHealthDescription, 0) + var vv TargetHealthDescription + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero TargetHealthDescription + *v = append(*v, zero) + return nil + } + + vv = TargetHealthDescription{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTrustStoreArns(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTrustStoreAssociations(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]TrustStoreAssociation) error { + *v = make([]TrustStoreAssociation, 0) + var vv TrustStoreAssociation + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero TrustStoreAssociation + *v = append(*v, zero) + return nil + } + + vv = TrustStoreAssociation{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTrustStoreNames(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]string) error { + *v = make([]string, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero string + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTrustStoreRevocations(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]TrustStoreRevocation) error { + *v = make([]TrustStoreRevocation, 0) + var vv TrustStoreRevocation + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero TrustStoreRevocation + *v = append(*v, zero) + return nil + } + + vv = TrustStoreRevocation{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeTrustStores(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]TrustStore) error { + *v = make([]TrustStore, 0) + var vv TrustStore + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero TrustStore + *v = append(*v, zero) + return nil + } + + vv = TrustStore{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func deserializeZonalCapacityReservationStates(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]ZonalCapacityReservationState) error { + *v = make([]ZonalCapacityReservationState, 0) + var vv ZonalCapacityReservationState + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero ZonalCapacityReservationState + *v = append(*v, zero) + return nil + } + + vv = ZonalCapacityReservationState{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + +func serializeAuthenticateCognitoActionAuthenticationRequestExtraParams(s smithy.ShapeSerializer, schema *smithy.Schema, v map[string]string) { + s.WriteMap(schema) + for k, vv := range v { + s.WriteKey(schema.MapKey(), k) + s.WriteString(schema.MapValue(), string(vv)) + } + s.CloseMap() +} + +func serializeAuthenticateOidcActionAuthenticationRequestExtraParams(s smithy.ShapeSerializer, schema *smithy.Schema, v map[string]string) { + s.WriteMap(schema) + for k, vv := range v { + s.WriteKey(schema.MapKey(), k) + s.WriteString(schema.MapValue(), string(vv)) + } + s.CloseMap() +} + +func deserializeAuthenticateCognitoActionAuthenticationRequestExtraParams(d smithy.ShapeDeserializer, s *smithy.Schema, v *map[string]string) error { + *v = make(map[string]string) + var vv string + return smithy.ReadMap(d, s, func(k string) error { + if isNil, err := d.ReadNil(s.MapValue()); err != nil { + return err + } else if isNil { + var zero string + (*v)[k] = zero + return nil + } + + if err := d.ReadString(s.MapValue(), &vv); err != nil { + return err + } + + (*v)[k] = vv + return nil + }) +} + +func deserializeAuthenticateOidcActionAuthenticationRequestExtraParams(d smithy.ShapeDeserializer, s *smithy.Schema, v *map[string]string) error { + *v = make(map[string]string) + var vv string + return smithy.ReadMap(d, s, func(k string) error { + if isNil, err := d.ReadNil(s.MapValue()); err != nil { + return err + } else if isNil { + var zero string + (*v)[k] = zero + return nil + } + + if err := d.ReadString(s.MapValue(), &vv); err != nil { + return err + } + + (*v)[k] = vv + return nil + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/enums.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/enums.go index e7a1decfb..7a62d104d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/enums.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/enums.go @@ -136,6 +136,68 @@ func (CapacityReservationStateEnum) Values() []CapacityReservationStateEnum { } } +type ClientCertificateIdentityFilterAction string + +// Enum values for ClientCertificateIdentityFilterAction +const ( + ClientCertificateIdentityFilterActionAccept ClientCertificateIdentityFilterAction = "accept" +) + +// Values returns all known values for ClientCertificateIdentityFilterAction. Note +// that this can be expanded in the future, and so it is only as up to date as the +// client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (ClientCertificateIdentityFilterAction) Values() []ClientCertificateIdentityFilterAction { + return []ClientCertificateIdentityFilterAction{ + "accept", + } +} + +type ClientCertificateIdentityFilterField string + +// Enum values for ClientCertificateIdentityFilterField +const ( + ClientCertificateIdentityFilterFieldSubjectCn ClientCertificateIdentityFilterField = "subject-cn" + ClientCertificateIdentityFilterFieldSubjectOu ClientCertificateIdentityFilterField = "subject-ou" + ClientCertificateIdentityFilterFieldSanDns ClientCertificateIdentityFilterField = "san-dns" + ClientCertificateIdentityFilterFieldSanUri ClientCertificateIdentityFilterField = "san-uri" +) + +// Values returns all known values for ClientCertificateIdentityFilterField. Note +// that this can be expanded in the future, and so it is only as up to date as the +// client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (ClientCertificateIdentityFilterField) Values() []ClientCertificateIdentityFilterField { + return []ClientCertificateIdentityFilterField{ + "subject-cn", + "subject-ou", + "san-dns", + "san-uri", + } +} + +type ClientCertificateIdentityFilterMatchType string + +// Enum values for ClientCertificateIdentityFilterMatchType +const ( + ClientCertificateIdentityFilterMatchTypeExact ClientCertificateIdentityFilterMatchType = "exact" + ClientCertificateIdentityFilterMatchTypePrefix ClientCertificateIdentityFilterMatchType = "prefix" +) + +// Values returns all known values for ClientCertificateIdentityFilterMatchType. +// Note that this can be expanded in the future, and so it is only as up to date as +// the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (ClientCertificateIdentityFilterMatchType) Values() []ClientCertificateIdentityFilterMatchType { + return []ClientCertificateIdentityFilterMatchType{ + "exact", + "prefix", + } +} + type DescribeTargetHealthInputIncludeEnum string // Enum values for DescribeTargetHealthInputIncludeEnum diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/errors.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/errors.go index 20dd36717..36b39a317 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/errors.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/errors.go @@ -4,6 +4,7 @@ package types import ( "fmt" + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" smithy "github.com/aws/smithy-go" ) @@ -32,6 +33,27 @@ func (e *AllocationIdNotFoundException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *AllocationIdNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *AllocationIdNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.AllocationIdNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *AllocationIdNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.AllocationIdNotFoundException_Message, *v.Message) + } +} +func (v *AllocationIdNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.AllocationIdNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.AllocationIdNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.AllocationIdNotFoundException_Message, v.Message) + } + return nil + }) +} // The specified ALPN policy is not supported. type ALPNPolicyNotSupportedException struct { @@ -58,6 +80,27 @@ func (e *ALPNPolicyNotSupportedException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *ALPNPolicyNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *ALPNPolicyNotSupportedException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ALPNPolicyNotSupportedException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ALPNPolicyNotSupportedException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.ALPNPolicyNotSupportedException_Message, *v.Message) + } +} +func (v *ALPNPolicyNotSupportedException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ALPNPolicyNotSupportedException, func(s *smithy.Schema) error { + switch s { + case schemas.ALPNPolicyNotSupportedException_Message: + v.Message = new(string) + return d.ReadString(schemas.ALPNPolicyNotSupportedException_Message, v.Message) + } + return nil + }) +} // The specified Availability Zone is not supported. type AvailabilityZoneNotSupportedException struct { @@ -86,6 +129,27 @@ func (e *AvailabilityZoneNotSupportedException) ErrorCode() string { func (e *AvailabilityZoneNotSupportedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *AvailabilityZoneNotSupportedException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.AvailabilityZoneNotSupportedException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *AvailabilityZoneNotSupportedException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.AvailabilityZoneNotSupportedException_Message, *v.Message) + } +} +func (v *AvailabilityZoneNotSupportedException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.AvailabilityZoneNotSupportedException, func(s *smithy.Schema) error { + switch s { + case schemas.AvailabilityZoneNotSupportedException_Message: + v.Message = new(string) + return d.ReadString(schemas.AvailabilityZoneNotSupportedException_Message, v.Message) + } + return nil + }) +} // The specified ca certificate bundle does not exist. type CaCertificatesBundleNotFoundException struct { @@ -114,6 +178,27 @@ func (e *CaCertificatesBundleNotFoundException) ErrorCode() string { func (e *CaCertificatesBundleNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *CaCertificatesBundleNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CaCertificatesBundleNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CaCertificatesBundleNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.CaCertificatesBundleNotFoundException_Message, *v.Message) + } +} +func (v *CaCertificatesBundleNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.CaCertificatesBundleNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.CaCertificatesBundleNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.CaCertificatesBundleNotFoundException_Message, v.Message) + } + return nil + }) +} // You've exceeded the daily capacity decrease limit for this reservation. type CapacityDecreaseRequestsLimitExceededException struct { @@ -142,6 +227,27 @@ func (e *CapacityDecreaseRequestsLimitExceededException) ErrorCode() string { func (e *CapacityDecreaseRequestsLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *CapacityDecreaseRequestsLimitExceededException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CapacityDecreaseRequestsLimitExceededException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CapacityDecreaseRequestsLimitExceededException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.CapacityDecreaseRequestsLimitExceededException_Message, *v.Message) + } +} +func (v *CapacityDecreaseRequestsLimitExceededException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.CapacityDecreaseRequestsLimitExceededException, func(s *smithy.Schema) error { + switch s { + case schemas.CapacityDecreaseRequestsLimitExceededException_Message: + v.Message = new(string) + return d.ReadString(schemas.CapacityDecreaseRequestsLimitExceededException_Message, v.Message) + } + return nil + }) +} // There is a pending capacity reservation. type CapacityReservationPendingException struct { @@ -170,6 +276,27 @@ func (e *CapacityReservationPendingException) ErrorCode() string { func (e *CapacityReservationPendingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *CapacityReservationPendingException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CapacityReservationPendingException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CapacityReservationPendingException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.CapacityReservationPendingException_Message, *v.Message) + } +} +func (v *CapacityReservationPendingException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.CapacityReservationPendingException, func(s *smithy.Schema) error { + switch s { + case schemas.CapacityReservationPendingException_Message: + v.Message = new(string) + return d.ReadString(schemas.CapacityReservationPendingException_Message, v.Message) + } + return nil + }) +} // You've exceeded the capacity units limit. type CapacityUnitsLimitExceededException struct { @@ -198,6 +325,27 @@ func (e *CapacityUnitsLimitExceededException) ErrorCode() string { func (e *CapacityUnitsLimitExceededException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *CapacityUnitsLimitExceededException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CapacityUnitsLimitExceededException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CapacityUnitsLimitExceededException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.CapacityUnitsLimitExceededException_Message, *v.Message) + } +} +func (v *CapacityUnitsLimitExceededException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.CapacityUnitsLimitExceededException, func(s *smithy.Schema) error { + switch s { + case schemas.CapacityUnitsLimitExceededException_Message: + v.Message = new(string) + return d.ReadString(schemas.CapacityUnitsLimitExceededException_Message, v.Message) + } + return nil + }) +} // The specified certificate does not exist. type CertificateNotFoundException struct { @@ -224,6 +372,27 @@ func (e *CertificateNotFoundException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *CertificateNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *CertificateNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CertificateNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CertificateNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.CertificateNotFoundException_Message, *v.Message) + } +} +func (v *CertificateNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.CertificateNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.CertificateNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.CertificateNotFoundException_Message, v.Message) + } + return nil + }) +} // The specified association can't be within the same account. type DeleteAssociationSameAccountException struct { @@ -252,6 +421,27 @@ func (e *DeleteAssociationSameAccountException) ErrorCode() string { func (e *DeleteAssociationSameAccountException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *DeleteAssociationSameAccountException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeleteAssociationSameAccountException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeleteAssociationSameAccountException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.DeleteAssociationSameAccountException_Message, *v.Message) + } +} +func (v *DeleteAssociationSameAccountException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DeleteAssociationSameAccountException, func(s *smithy.Schema) error { + switch s { + case schemas.DeleteAssociationSameAccountException_Message: + v.Message = new(string) + return d.ReadString(schemas.DeleteAssociationSameAccountException_Message, v.Message) + } + return nil + }) +} // A listener with the specified port already exists. type DuplicateListenerException struct { @@ -278,6 +468,27 @@ func (e *DuplicateListenerException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *DuplicateListenerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *DuplicateListenerException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DuplicateListenerException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DuplicateListenerException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.DuplicateListenerException_Message, *v.Message) + } +} +func (v *DuplicateListenerException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DuplicateListenerException, func(s *smithy.Schema) error { + switch s { + case schemas.DuplicateListenerException_Message: + v.Message = new(string) + return d.ReadString(schemas.DuplicateListenerException_Message, v.Message) + } + return nil + }) +} // A load balancer with the specified name already exists. type DuplicateLoadBalancerNameException struct { @@ -306,6 +517,27 @@ func (e *DuplicateLoadBalancerNameException) ErrorCode() string { func (e *DuplicateLoadBalancerNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *DuplicateLoadBalancerNameException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DuplicateLoadBalancerNameException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DuplicateLoadBalancerNameException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.DuplicateLoadBalancerNameException_Message, *v.Message) + } +} +func (v *DuplicateLoadBalancerNameException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DuplicateLoadBalancerNameException, func(s *smithy.Schema) error { + switch s { + case schemas.DuplicateLoadBalancerNameException_Message: + v.Message = new(string) + return d.ReadString(schemas.DuplicateLoadBalancerNameException_Message, v.Message) + } + return nil + }) +} // A tag key was specified more than once. type DuplicateTagKeysException struct { @@ -332,6 +564,27 @@ func (e *DuplicateTagKeysException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *DuplicateTagKeysException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *DuplicateTagKeysException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DuplicateTagKeysException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DuplicateTagKeysException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.DuplicateTagKeysException_Message, *v.Message) + } +} +func (v *DuplicateTagKeysException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DuplicateTagKeysException, func(s *smithy.Schema) error { + switch s { + case schemas.DuplicateTagKeysException_Message: + v.Message = new(string) + return d.ReadString(schemas.DuplicateTagKeysException_Message, v.Message) + } + return nil + }) +} // A target group with the specified name already exists. type DuplicateTargetGroupNameException struct { @@ -358,6 +611,27 @@ func (e *DuplicateTargetGroupNameException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *DuplicateTargetGroupNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *DuplicateTargetGroupNameException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DuplicateTargetGroupNameException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DuplicateTargetGroupNameException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.DuplicateTargetGroupNameException_Message, *v.Message) + } +} +func (v *DuplicateTargetGroupNameException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DuplicateTargetGroupNameException, func(s *smithy.Schema) error { + switch s { + case schemas.DuplicateTargetGroupNameException_Message: + v.Message = new(string) + return d.ReadString(schemas.DuplicateTargetGroupNameException_Message, v.Message) + } + return nil + }) +} // A trust store with the specified name already exists. type DuplicateTrustStoreNameException struct { @@ -384,6 +658,27 @@ func (e *DuplicateTrustStoreNameException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *DuplicateTrustStoreNameException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *DuplicateTrustStoreNameException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DuplicateTrustStoreNameException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DuplicateTrustStoreNameException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.DuplicateTrustStoreNameException_Message, *v.Message) + } +} +func (v *DuplicateTrustStoreNameException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DuplicateTrustStoreNameException, func(s *smithy.Schema) error { + switch s { + case schemas.DuplicateTrustStoreNameException_Message: + v.Message = new(string) + return d.ReadString(schemas.DuplicateTrustStoreNameException_Message, v.Message) + } + return nil + }) +} // The health of the specified targets could not be retrieved due to an internal // error. @@ -411,6 +706,27 @@ func (e *HealthUnavailableException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *HealthUnavailableException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +func (v *HealthUnavailableException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.HealthUnavailableException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *HealthUnavailableException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.HealthUnavailableException_Message, *v.Message) + } +} +func (v *HealthUnavailableException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.HealthUnavailableException, func(s *smithy.Schema) error { + switch s { + case schemas.HealthUnavailableException_Message: + v.Message = new(string) + return d.ReadString(schemas.HealthUnavailableException_Message, v.Message) + } + return nil + }) +} // The specified configuration is not valid with this protocol. type IncompatibleProtocolsException struct { @@ -437,6 +753,27 @@ func (e *IncompatibleProtocolsException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *IncompatibleProtocolsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *IncompatibleProtocolsException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.IncompatibleProtocolsException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *IncompatibleProtocolsException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.IncompatibleProtocolsException_Message, *v.Message) + } +} +func (v *IncompatibleProtocolsException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.IncompatibleProtocolsException, func(s *smithy.Schema) error { + switch s { + case schemas.IncompatibleProtocolsException_Message: + v.Message = new(string) + return d.ReadString(schemas.IncompatibleProtocolsException_Message, v.Message) + } + return nil + }) +} // There is insufficient capacity to reserve. type InsufficientCapacityException struct { @@ -463,6 +800,27 @@ func (e *InsufficientCapacityException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *InsufficientCapacityException) ErrorFault() smithy.ErrorFault { return smithy.FaultServer } +func (v *InsufficientCapacityException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.InsufficientCapacityException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *InsufficientCapacityException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.InsufficientCapacityException_Message, *v.Message) + } +} +func (v *InsufficientCapacityException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.InsufficientCapacityException, func(s *smithy.Schema) error { + switch s { + case schemas.InsufficientCapacityException_Message: + v.Message = new(string) + return d.ReadString(schemas.InsufficientCapacityException_Message, v.Message) + } + return nil + }) +} // The specified ca certificate bundle is in an invalid format, or corrupt. type InvalidCaCertificatesBundleException struct { @@ -491,6 +849,27 @@ func (e *InvalidCaCertificatesBundleException) ErrorCode() string { func (e *InvalidCaCertificatesBundleException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *InvalidCaCertificatesBundleException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.InvalidCaCertificatesBundleException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *InvalidCaCertificatesBundleException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.InvalidCaCertificatesBundleException_Message, *v.Message) + } +} +func (v *InvalidCaCertificatesBundleException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.InvalidCaCertificatesBundleException, func(s *smithy.Schema) error { + switch s { + case schemas.InvalidCaCertificatesBundleException_Message: + v.Message = new(string) + return d.ReadString(schemas.InvalidCaCertificatesBundleException_Message, v.Message) + } + return nil + }) +} // The requested configuration is not valid. type InvalidConfigurationRequestException struct { @@ -519,6 +898,27 @@ func (e *InvalidConfigurationRequestException) ErrorCode() string { func (e *InvalidConfigurationRequestException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *InvalidConfigurationRequestException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.InvalidConfigurationRequestException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *InvalidConfigurationRequestException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.InvalidConfigurationRequestException_Message, *v.Message) + } +} +func (v *InvalidConfigurationRequestException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.InvalidConfigurationRequestException, func(s *smithy.Schema) error { + switch s { + case schemas.InvalidConfigurationRequestException_Message: + v.Message = new(string) + return d.ReadString(schemas.InvalidConfigurationRequestException_Message, v.Message) + } + return nil + }) +} // The requested action is not valid. type InvalidLoadBalancerActionException struct { @@ -547,6 +947,27 @@ func (e *InvalidLoadBalancerActionException) ErrorCode() string { func (e *InvalidLoadBalancerActionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *InvalidLoadBalancerActionException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.InvalidLoadBalancerActionException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *InvalidLoadBalancerActionException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.InvalidLoadBalancerActionException_Message, *v.Message) + } +} +func (v *InvalidLoadBalancerActionException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.InvalidLoadBalancerActionException, func(s *smithy.Schema) error { + switch s { + case schemas.InvalidLoadBalancerActionException_Message: + v.Message = new(string) + return d.ReadString(schemas.InvalidLoadBalancerActionException_Message, v.Message) + } + return nil + }) +} // The provided revocation file is an invalid format, or uses an incorrect // algorithm. @@ -574,6 +995,27 @@ func (e *InvalidRevocationContentException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *InvalidRevocationContentException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *InvalidRevocationContentException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.InvalidRevocationContentException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *InvalidRevocationContentException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.InvalidRevocationContentException_Message, *v.Message) + } +} +func (v *InvalidRevocationContentException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.InvalidRevocationContentException, func(s *smithy.Schema) error { + switch s { + case schemas.InvalidRevocationContentException_Message: + v.Message = new(string) + return d.ReadString(schemas.InvalidRevocationContentException_Message, v.Message) + } + return nil + }) +} // The requested scheme is not valid. type InvalidSchemeException struct { @@ -600,6 +1042,27 @@ func (e *InvalidSchemeException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *InvalidSchemeException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *InvalidSchemeException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.InvalidSchemeException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *InvalidSchemeException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.InvalidSchemeException_Message, *v.Message) + } +} +func (v *InvalidSchemeException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.InvalidSchemeException, func(s *smithy.Schema) error { + switch s { + case schemas.InvalidSchemeException_Message: + v.Message = new(string) + return d.ReadString(schemas.InvalidSchemeException_Message, v.Message) + } + return nil + }) +} // The specified security group does not exist. type InvalidSecurityGroupException struct { @@ -626,6 +1089,27 @@ func (e *InvalidSecurityGroupException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *InvalidSecurityGroupException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *InvalidSecurityGroupException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.InvalidSecurityGroupException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *InvalidSecurityGroupException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.InvalidSecurityGroupException_Message, *v.Message) + } +} +func (v *InvalidSecurityGroupException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.InvalidSecurityGroupException, func(s *smithy.Schema) error { + switch s { + case schemas.InvalidSecurityGroupException_Message: + v.Message = new(string) + return d.ReadString(schemas.InvalidSecurityGroupException_Message, v.Message) + } + return nil + }) +} // The specified subnet is out of available addresses. type InvalidSubnetException struct { @@ -652,6 +1136,27 @@ func (e *InvalidSubnetException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *InvalidSubnetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *InvalidSubnetException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.InvalidSubnetException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *InvalidSubnetException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.InvalidSubnetException_Message, *v.Message) + } +} +func (v *InvalidSubnetException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.InvalidSubnetException, func(s *smithy.Schema) error { + switch s { + case schemas.InvalidSubnetException_Message: + v.Message = new(string) + return d.ReadString(schemas.InvalidSubnetException_Message, v.Message) + } + return nil + }) +} // The specified target does not exist, is not in the same VPC as the target // group, or has an unsupported instance type. @@ -679,6 +1184,27 @@ func (e *InvalidTargetException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *InvalidTargetException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *InvalidTargetException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.InvalidTargetException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *InvalidTargetException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.InvalidTargetException_Message, *v.Message) + } +} +func (v *InvalidTargetException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.InvalidTargetException, func(s *smithy.Schema) error { + switch s { + case schemas.InvalidTargetException_Message: + v.Message = new(string) + return d.ReadString(schemas.InvalidTargetException_Message, v.Message) + } + return nil + }) +} // The specified listener does not exist. type ListenerNotFoundException struct { @@ -705,6 +1231,27 @@ func (e *ListenerNotFoundException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *ListenerNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *ListenerNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ListenerNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ListenerNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.ListenerNotFoundException_Message, *v.Message) + } +} +func (v *ListenerNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ListenerNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.ListenerNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.ListenerNotFoundException_Message, v.Message) + } + return nil + }) +} // The specified load balancer does not exist. type LoadBalancerNotFoundException struct { @@ -731,6 +1278,27 @@ func (e *LoadBalancerNotFoundException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *LoadBalancerNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *LoadBalancerNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.LoadBalancerNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *LoadBalancerNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.LoadBalancerNotFoundException_Message, *v.Message) + } +} +func (v *LoadBalancerNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.LoadBalancerNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.LoadBalancerNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.LoadBalancerNotFoundException_Message, v.Message) + } + return nil + }) +} // This operation is not allowed. type OperationNotPermittedException struct { @@ -757,6 +1325,27 @@ func (e *OperationNotPermittedException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *OperationNotPermittedException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *OperationNotPermittedException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.OperationNotPermittedException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *OperationNotPermittedException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.OperationNotPermittedException_Message, *v.Message) + } +} +func (v *OperationNotPermittedException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.OperationNotPermittedException, func(s *smithy.Schema) error { + switch s { + case schemas.OperationNotPermittedException_Message: + v.Message = new(string) + return d.ReadString(schemas.OperationNotPermittedException_Message, v.Message) + } + return nil + }) +} // The specified priority is in use. type PriorityInUseException struct { @@ -783,6 +1372,27 @@ func (e *PriorityInUseException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *PriorityInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *PriorityInUseException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.PriorityInUseException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *PriorityInUseException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.PriorityInUseException_Message, *v.Message) + } +} +func (v *PriorityInUseException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.PriorityInUseException, func(s *smithy.Schema) error { + switch s { + case schemas.PriorityInUseException_Message: + v.Message = new(string) + return d.ReadString(schemas.PriorityInUseException_Message, v.Message) + } + return nil + }) +} // This operation is not allowed while a prior request has not been completed. type PriorRequestNotCompleteException struct { @@ -809,6 +1419,27 @@ func (e *PriorRequestNotCompleteException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *PriorRequestNotCompleteException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *PriorRequestNotCompleteException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.PriorRequestNotCompleteException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *PriorRequestNotCompleteException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.PriorRequestNotCompleteException_Message, *v.Message) + } +} +func (v *PriorRequestNotCompleteException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.PriorRequestNotCompleteException, func(s *smithy.Schema) error { + switch s { + case schemas.PriorRequestNotCompleteException_Message: + v.Message = new(string) + return d.ReadString(schemas.PriorRequestNotCompleteException_Message, v.Message) + } + return nil + }) +} // A specified resource is in use. type ResourceInUseException struct { @@ -835,6 +1466,27 @@ func (e *ResourceInUseException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *ResourceInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *ResourceInUseException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ResourceInUseException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ResourceInUseException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.ResourceInUseException_Message, *v.Message) + } +} +func (v *ResourceInUseException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ResourceInUseException, func(s *smithy.Schema) error { + switch s { + case schemas.ResourceInUseException_Message: + v.Message = new(string) + return d.ReadString(schemas.ResourceInUseException_Message, v.Message) + } + return nil + }) +} // The specified resource does not exist. type ResourceNotFoundException struct { @@ -861,6 +1513,27 @@ func (e *ResourceNotFoundException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *ResourceNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ResourceNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ResourceNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.ResourceNotFoundException_Message, *v.Message) + } +} +func (v *ResourceNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ResourceNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.ResourceNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.ResourceNotFoundException_Message, v.Message) + } + return nil + }) +} // The specified revocation file does not exist. type RevocationContentNotFoundException struct { @@ -889,6 +1562,27 @@ func (e *RevocationContentNotFoundException) ErrorCode() string { func (e *RevocationContentNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *RevocationContentNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RevocationContentNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RevocationContentNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.RevocationContentNotFoundException_Message, *v.Message) + } +} +func (v *RevocationContentNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RevocationContentNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.RevocationContentNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.RevocationContentNotFoundException_Message, v.Message) + } + return nil + }) +} // The specified revocation ID does not exist. type RevocationIdNotFoundException struct { @@ -915,6 +1609,27 @@ func (e *RevocationIdNotFoundException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *RevocationIdNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *RevocationIdNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RevocationIdNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RevocationIdNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.RevocationIdNotFoundException_Message, *v.Message) + } +} +func (v *RevocationIdNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RevocationIdNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.RevocationIdNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.RevocationIdNotFoundException_Message, v.Message) + } + return nil + }) +} // The specified rule does not exist. type RuleNotFoundException struct { @@ -941,6 +1656,27 @@ func (e *RuleNotFoundException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *RuleNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *RuleNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RuleNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RuleNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.RuleNotFoundException_Message, *v.Message) + } +} +func (v *RuleNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RuleNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.RuleNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.RuleNotFoundException_Message, v.Message) + } + return nil + }) +} // The specified SSL policy does not exist. type SSLPolicyNotFoundException struct { @@ -967,6 +1703,27 @@ func (e *SSLPolicyNotFoundException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *SSLPolicyNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *SSLPolicyNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.SSLPolicyNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *SSLPolicyNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.SSLPolicyNotFoundException_Message, *v.Message) + } +} +func (v *SSLPolicyNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.SSLPolicyNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.SSLPolicyNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.SSLPolicyNotFoundException_Message, v.Message) + } + return nil + }) +} // The specified subnet does not exist. type SubnetNotFoundException struct { @@ -993,6 +1750,27 @@ func (e *SubnetNotFoundException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *SubnetNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *SubnetNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.SubnetNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *SubnetNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.SubnetNotFoundException_Message, *v.Message) + } +} +func (v *SubnetNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.SubnetNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.SubnetNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.SubnetNotFoundException_Message, v.Message) + } + return nil + }) +} // You've reached the limit on the number of load balancers per target group. type TargetGroupAssociationLimitException struct { @@ -1021,6 +1799,27 @@ func (e *TargetGroupAssociationLimitException) ErrorCode() string { func (e *TargetGroupAssociationLimitException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TargetGroupAssociationLimitException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TargetGroupAssociationLimitException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TargetGroupAssociationLimitException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TargetGroupAssociationLimitException_Message, *v.Message) + } +} +func (v *TargetGroupAssociationLimitException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TargetGroupAssociationLimitException, func(s *smithy.Schema) error { + switch s { + case schemas.TargetGroupAssociationLimitException_Message: + v.Message = new(string) + return d.ReadString(schemas.TargetGroupAssociationLimitException_Message, v.Message) + } + return nil + }) +} // The specified target group does not exist. type TargetGroupNotFoundException struct { @@ -1047,6 +1846,27 @@ func (e *TargetGroupNotFoundException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *TargetGroupNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TargetGroupNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TargetGroupNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TargetGroupNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TargetGroupNotFoundException_Message, *v.Message) + } +} +func (v *TargetGroupNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TargetGroupNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.TargetGroupNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.TargetGroupNotFoundException_Message, v.Message) + } + return nil + }) +} // You've reached the limit on the number of actions per rule. type TooManyActionsException struct { @@ -1073,6 +1893,27 @@ func (e *TooManyActionsException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *TooManyActionsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TooManyActionsException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TooManyActionsException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TooManyActionsException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TooManyActionsException_Message, *v.Message) + } +} +func (v *TooManyActionsException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TooManyActionsException, func(s *smithy.Schema) error { + switch s { + case schemas.TooManyActionsException_Message: + v.Message = new(string) + return d.ReadString(schemas.TooManyActionsException_Message, v.Message) + } + return nil + }) +} // You've reached the limit on the number of certificates per load balancer. type TooManyCertificatesException struct { @@ -1099,6 +1940,27 @@ func (e *TooManyCertificatesException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *TooManyCertificatesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TooManyCertificatesException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TooManyCertificatesException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TooManyCertificatesException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TooManyCertificatesException_Message, *v.Message) + } +} +func (v *TooManyCertificatesException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TooManyCertificatesException, func(s *smithy.Schema) error { + switch s { + case schemas.TooManyCertificatesException_Message: + v.Message = new(string) + return d.ReadString(schemas.TooManyCertificatesException_Message, v.Message) + } + return nil + }) +} // You've reached the limit on the number of listeners per load balancer. type TooManyListenersException struct { @@ -1125,6 +1987,27 @@ func (e *TooManyListenersException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *TooManyListenersException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TooManyListenersException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TooManyListenersException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TooManyListenersException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TooManyListenersException_Message, *v.Message) + } +} +func (v *TooManyListenersException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TooManyListenersException, func(s *smithy.Schema) error { + switch s { + case schemas.TooManyListenersException_Message: + v.Message = new(string) + return d.ReadString(schemas.TooManyListenersException_Message, v.Message) + } + return nil + }) +} // You've reached the limit on the number of load balancers for your Amazon Web // Services account. @@ -1152,6 +2035,27 @@ func (e *TooManyLoadBalancersException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *TooManyLoadBalancersException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TooManyLoadBalancersException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TooManyLoadBalancersException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TooManyLoadBalancersException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TooManyLoadBalancersException_Message, *v.Message) + } +} +func (v *TooManyLoadBalancersException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TooManyLoadBalancersException, func(s *smithy.Schema) error { + switch s { + case schemas.TooManyLoadBalancersException_Message: + v.Message = new(string) + return d.ReadString(schemas.TooManyLoadBalancersException_Message, v.Message) + } + return nil + }) +} // You've reached the limit on the number of times a target can be registered with // a load balancer. @@ -1181,6 +2085,27 @@ func (e *TooManyRegistrationsForTargetIdException) ErrorCode() string { func (e *TooManyRegistrationsForTargetIdException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TooManyRegistrationsForTargetIdException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TooManyRegistrationsForTargetIdException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TooManyRegistrationsForTargetIdException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TooManyRegistrationsForTargetIdException_Message, *v.Message) + } +} +func (v *TooManyRegistrationsForTargetIdException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TooManyRegistrationsForTargetIdException, func(s *smithy.Schema) error { + switch s { + case schemas.TooManyRegistrationsForTargetIdException_Message: + v.Message = new(string) + return d.ReadString(schemas.TooManyRegistrationsForTargetIdException_Message, v.Message) + } + return nil + }) +} // You've reached the limit on the number of rules per load balancer. type TooManyRulesException struct { @@ -1207,6 +2132,27 @@ func (e *TooManyRulesException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *TooManyRulesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TooManyRulesException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TooManyRulesException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TooManyRulesException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TooManyRulesException_Message, *v.Message) + } +} +func (v *TooManyRulesException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TooManyRulesException, func(s *smithy.Schema) error { + switch s { + case schemas.TooManyRulesException_Message: + v.Message = new(string) + return d.ReadString(schemas.TooManyRulesException_Message, v.Message) + } + return nil + }) +} // You've reached the limit on the number of tags for this resource. type TooManyTagsException struct { @@ -1233,6 +2179,27 @@ func (e *TooManyTagsException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *TooManyTagsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TooManyTagsException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TooManyTagsException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TooManyTagsException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TooManyTagsException_Message, *v.Message) + } +} +func (v *TooManyTagsException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TooManyTagsException, func(s *smithy.Schema) error { + switch s { + case schemas.TooManyTagsException_Message: + v.Message = new(string) + return d.ReadString(schemas.TooManyTagsException_Message, v.Message) + } + return nil + }) +} // You've reached the limit on the number of target groups for your Amazon Web // Services account. @@ -1260,6 +2227,27 @@ func (e *TooManyTargetGroupsException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *TooManyTargetGroupsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TooManyTargetGroupsException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TooManyTargetGroupsException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TooManyTargetGroupsException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TooManyTargetGroupsException_Message, *v.Message) + } +} +func (v *TooManyTargetGroupsException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TooManyTargetGroupsException, func(s *smithy.Schema) error { + switch s { + case schemas.TooManyTargetGroupsException_Message: + v.Message = new(string) + return d.ReadString(schemas.TooManyTargetGroupsException_Message, v.Message) + } + return nil + }) +} // You've reached the limit on the number of targets. type TooManyTargetsException struct { @@ -1286,6 +2274,27 @@ func (e *TooManyTargetsException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *TooManyTargetsException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TooManyTargetsException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TooManyTargetsException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TooManyTargetsException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TooManyTargetsException_Message, *v.Message) + } +} +func (v *TooManyTargetsException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TooManyTargetsException, func(s *smithy.Schema) error { + switch s { + case schemas.TooManyTargetsException_Message: + v.Message = new(string) + return d.ReadString(schemas.TooManyTargetsException_Message, v.Message) + } + return nil + }) +} // The specified trust store has too many revocation entries. type TooManyTrustStoreRevocationEntriesException struct { @@ -1314,6 +2323,27 @@ func (e *TooManyTrustStoreRevocationEntriesException) ErrorCode() string { func (e *TooManyTrustStoreRevocationEntriesException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TooManyTrustStoreRevocationEntriesException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TooManyTrustStoreRevocationEntriesException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TooManyTrustStoreRevocationEntriesException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TooManyTrustStoreRevocationEntriesException_Message, *v.Message) + } +} +func (v *TooManyTrustStoreRevocationEntriesException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TooManyTrustStoreRevocationEntriesException, func(s *smithy.Schema) error { + switch s { + case schemas.TooManyTrustStoreRevocationEntriesException_Message: + v.Message = new(string) + return d.ReadString(schemas.TooManyTrustStoreRevocationEntriesException_Message, v.Message) + } + return nil + }) +} // You've reached the limit on the number of trust stores for your Amazon Web // Services account. @@ -1341,6 +2371,27 @@ func (e *TooManyTrustStoresException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *TooManyTrustStoresException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TooManyTrustStoresException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TooManyTrustStoresException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TooManyTrustStoresException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TooManyTrustStoresException_Message, *v.Message) + } +} +func (v *TooManyTrustStoresException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TooManyTrustStoresException, func(s *smithy.Schema) error { + switch s { + case schemas.TooManyTrustStoresException_Message: + v.Message = new(string) + return d.ReadString(schemas.TooManyTrustStoresException_Message, v.Message) + } + return nil + }) +} // You've reached the limit on the number of unique target groups per load // balancer across all listeners. If a target group is used by multiple actions for @@ -1371,6 +2422,27 @@ func (e *TooManyUniqueTargetGroupsPerLoadBalancerException) ErrorCode() string { func (e *TooManyUniqueTargetGroupsPerLoadBalancerException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TooManyUniqueTargetGroupsPerLoadBalancerException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TooManyUniqueTargetGroupsPerLoadBalancerException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TooManyUniqueTargetGroupsPerLoadBalancerException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TooManyUniqueTargetGroupsPerLoadBalancerException_Message, *v.Message) + } +} +func (v *TooManyUniqueTargetGroupsPerLoadBalancerException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TooManyUniqueTargetGroupsPerLoadBalancerException, func(s *smithy.Schema) error { + switch s { + case schemas.TooManyUniqueTargetGroupsPerLoadBalancerException_Message: + v.Message = new(string) + return d.ReadString(schemas.TooManyUniqueTargetGroupsPerLoadBalancerException_Message, v.Message) + } + return nil + }) +} // The specified association does not exist. type TrustStoreAssociationNotFoundException struct { @@ -1399,6 +2471,27 @@ func (e *TrustStoreAssociationNotFoundException) ErrorCode() string { func (e *TrustStoreAssociationNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TrustStoreAssociationNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TrustStoreAssociationNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TrustStoreAssociationNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TrustStoreAssociationNotFoundException_Message, *v.Message) + } +} +func (v *TrustStoreAssociationNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TrustStoreAssociationNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.TrustStoreAssociationNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.TrustStoreAssociationNotFoundException_Message, v.Message) + } + return nil + }) +} // The specified trust store is currently in use. type TrustStoreInUseException struct { @@ -1425,6 +2518,27 @@ func (e *TrustStoreInUseException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *TrustStoreInUseException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TrustStoreInUseException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TrustStoreInUseException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TrustStoreInUseException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TrustStoreInUseException_Message, *v.Message) + } +} +func (v *TrustStoreInUseException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TrustStoreInUseException, func(s *smithy.Schema) error { + switch s { + case schemas.TrustStoreInUseException_Message: + v.Message = new(string) + return d.ReadString(schemas.TrustStoreInUseException_Message, v.Message) + } + return nil + }) +} // The specified trust store does not exist. type TrustStoreNotFoundException struct { @@ -1451,6 +2565,27 @@ func (e *TrustStoreNotFoundException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *TrustStoreNotFoundException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TrustStoreNotFoundException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TrustStoreNotFoundException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TrustStoreNotFoundException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TrustStoreNotFoundException_Message, *v.Message) + } +} +func (v *TrustStoreNotFoundException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TrustStoreNotFoundException, func(s *smithy.Schema) error { + switch s { + case schemas.TrustStoreNotFoundException_Message: + v.Message = new(string) + return d.ReadString(schemas.TrustStoreNotFoundException_Message, v.Message) + } + return nil + }) +} // The specified trust store is not active. type TrustStoreNotReadyException struct { @@ -1477,6 +2612,27 @@ func (e *TrustStoreNotReadyException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *TrustStoreNotReadyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *TrustStoreNotReadyException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TrustStoreNotReadyException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TrustStoreNotReadyException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.TrustStoreNotReadyException_Message, *v.Message) + } +} +func (v *TrustStoreNotReadyException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TrustStoreNotReadyException, func(s *smithy.Schema) error { + switch s { + case schemas.TrustStoreNotReadyException_Message: + v.Message = new(string) + return d.ReadString(schemas.TrustStoreNotReadyException_Message, v.Message) + } + return nil + }) +} // The specified protocol is not supported. type UnsupportedProtocolException struct { @@ -1503,3 +2659,24 @@ func (e *UnsupportedProtocolException) ErrorCode() string { return *e.ErrorCodeOverride } func (e *UnsupportedProtocolException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } +func (v *UnsupportedProtocolException) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.UnsupportedProtocolException) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *UnsupportedProtocolException) SerializeMembers(s smithy.ShapeSerializer) { + if v.Message != nil { + s.WriteString(schemas.UnsupportedProtocolException_Message, *v.Message) + } +} +func (v *UnsupportedProtocolException) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.UnsupportedProtocolException, func(s *smithy.Schema) error { + switch s { + case schemas.UnsupportedProtocolException_Message: + v.Message = new(string) + return d.ReadString(schemas.UnsupportedProtocolException_Message, v.Message) + } + return nil + }) +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/types.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/types.go index 7ef75de91..8dd6fd0f1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/types.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types/types.go @@ -3,6 +3,8 @@ package types import ( + "github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas" + smithy "github.com/aws/smithy-go" smithydocument "github.com/aws/smithy-go/document" "time" ) @@ -62,6 +64,92 @@ type Action struct { noSmithyDocumentSerde } +func (v *Action) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.Action) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *Action) SerializeMembers(s smithy.ShapeSerializer) { + if v.AuthenticateCognitoConfig != nil { + s.WriteStruct(schemas.Action_AuthenticateCognitoConfig) + v.AuthenticateCognitoConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.AuthenticateOidcConfig != nil { + s.WriteStruct(schemas.Action_AuthenticateOidcConfig) + v.AuthenticateOidcConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.FixedResponseConfig != nil { + s.WriteStruct(schemas.Action_FixedResponseConfig) + v.FixedResponseConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.ForwardConfig != nil { + s.WriteStruct(schemas.Action_ForwardConfig) + v.ForwardConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.JwtValidationConfig != nil { + s.WriteStruct(schemas.Action_JwtValidationConfig) + v.JwtValidationConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.Order != nil { + s.WriteInt32(schemas.Action_Order, *v.Order) + } + if v.RedirectConfig != nil { + s.WriteStruct(schemas.Action_RedirectConfig) + v.RedirectConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.TargetGroupArn != nil { + s.WriteString(schemas.Action_TargetGroupArn, *v.TargetGroupArn) + } + if v.Type != "" { + s.WriteString(schemas.Action_Type, string(v.Type)) + } +} +func (v *Action) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.Action, func(s *smithy.Schema) error { + switch s { + case schemas.Action_AuthenticateCognitoConfig: + v.AuthenticateCognitoConfig = &AuthenticateCognitoActionConfig{} + return v.AuthenticateCognitoConfig.Deserialize(d) + case schemas.Action_AuthenticateOidcConfig: + v.AuthenticateOidcConfig = &AuthenticateOidcActionConfig{} + return v.AuthenticateOidcConfig.Deserialize(d) + case schemas.Action_FixedResponseConfig: + v.FixedResponseConfig = &FixedResponseActionConfig{} + return v.FixedResponseConfig.Deserialize(d) + case schemas.Action_ForwardConfig: + v.ForwardConfig = &ForwardActionConfig{} + return v.ForwardConfig.Deserialize(d) + case schemas.Action_JwtValidationConfig: + v.JwtValidationConfig = &JwtValidationActionConfig{} + return v.JwtValidationConfig.Deserialize(d) + case schemas.Action_Order: + v.Order = new(int32) + return d.ReadInt32(schemas.Action_Order, v.Order) + case schemas.Action_RedirectConfig: + v.RedirectConfig = &RedirectActionConfig{} + return v.RedirectConfig.Deserialize(d) + case schemas.Action_TargetGroupArn: + v.TargetGroupArn = new(string) + return d.ReadString(schemas.Action_TargetGroupArn, v.TargetGroupArn) + case schemas.Action_Type: + var ev string + if err := d.ReadString(schemas.Action_Type, &ev); err != nil { + return err + } + v.Type = ActionTypeEnum(ev) + return nil + } + return nil + }) +} + // Information about the override status applied to a target. type AdministrativeOverride struct { @@ -77,6 +165,48 @@ type AdministrativeOverride struct { noSmithyDocumentSerde } +func (v *AdministrativeOverride) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.AdministrativeOverride) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *AdministrativeOverride) SerializeMembers(s smithy.ShapeSerializer) { + if v.Description != nil { + s.WriteString(schemas.AdministrativeOverride_Description, *v.Description) + } + if v.Reason != "" { + s.WriteString(schemas.AdministrativeOverride_Reason, string(v.Reason)) + } + if v.State != "" { + s.WriteString(schemas.AdministrativeOverride_State, string(v.State)) + } +} +func (v *AdministrativeOverride) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.AdministrativeOverride, func(s *smithy.Schema) error { + switch s { + case schemas.AdministrativeOverride_Description: + v.Description = new(string) + return d.ReadString(schemas.AdministrativeOverride_Description, v.Description) + case schemas.AdministrativeOverride_Reason: + var ev string + if err := d.ReadString(schemas.AdministrativeOverride_Reason, &ev); err != nil { + return err + } + v.Reason = TargetAdministrativeOverrideReasonEnum(ev) + return nil + case schemas.AdministrativeOverride_State: + var ev string + if err := d.ReadString(schemas.AdministrativeOverride_State, &ev); err != nil { + return err + } + v.State = TargetAdministrativeOverrideStateEnum(ev) + return nil + } + return nil + }) +} + // Information about anomaly detection and mitigation. type AnomalyDetection struct { @@ -89,6 +219,42 @@ type AnomalyDetection struct { noSmithyDocumentSerde } +func (v *AnomalyDetection) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.AnomalyDetection) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *AnomalyDetection) SerializeMembers(s smithy.ShapeSerializer) { + if v.MitigationInEffect != "" { + s.WriteString(schemas.AnomalyDetection_MitigationInEffect, string(v.MitigationInEffect)) + } + if v.Result != "" { + s.WriteString(schemas.AnomalyDetection_Result, string(v.Result)) + } +} +func (v *AnomalyDetection) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.AnomalyDetection, func(s *smithy.Schema) error { + switch s { + case schemas.AnomalyDetection_MitigationInEffect: + var ev string + if err := d.ReadString(schemas.AnomalyDetection_MitigationInEffect, &ev); err != nil { + return err + } + v.MitigationInEffect = MitigationInEffectEnum(ev) + return nil + case schemas.AnomalyDetection_Result: + var ev string + if err := d.ReadString(schemas.AnomalyDetection_Result, &ev); err != nil { + return err + } + v.Result = AnomalyResultEnum(ev) + return nil + } + return nil + }) +} + // Request parameters to use when integrating with Amazon Cognito to authenticate // users. type AuthenticateCognitoActionConfig struct { @@ -141,6 +307,73 @@ type AuthenticateCognitoActionConfig struct { noSmithyDocumentSerde } +func (v *AuthenticateCognitoActionConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.AuthenticateCognitoActionConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *AuthenticateCognitoActionConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.AuthenticationRequestExtraParams != nil { + serializeAuthenticateCognitoActionAuthenticationRequestExtraParams(s, schemas.AuthenticateCognitoActionConfig_AuthenticationRequestExtraParams, v.AuthenticationRequestExtraParams) + } + if v.OnUnauthenticatedRequest != "" { + s.WriteString(schemas.AuthenticateCognitoActionConfig_OnUnauthenticatedRequest, string(v.OnUnauthenticatedRequest)) + } + if v.Scope != nil { + s.WriteString(schemas.AuthenticateCognitoActionConfig_Scope, *v.Scope) + } + if v.SessionCookieName != nil { + s.WriteString(schemas.AuthenticateCognitoActionConfig_SessionCookieName, *v.SessionCookieName) + } + if v.SessionTimeout != nil { + s.WriteInt64(schemas.AuthenticateCognitoActionConfig_SessionTimeout, *v.SessionTimeout) + } + if v.UserPoolArn != nil { + s.WriteString(schemas.AuthenticateCognitoActionConfig_UserPoolArn, *v.UserPoolArn) + } + if v.UserPoolClientId != nil { + s.WriteString(schemas.AuthenticateCognitoActionConfig_UserPoolClientId, *v.UserPoolClientId) + } + if v.UserPoolDomain != nil { + s.WriteString(schemas.AuthenticateCognitoActionConfig_UserPoolDomain, *v.UserPoolDomain) + } +} +func (v *AuthenticateCognitoActionConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.AuthenticateCognitoActionConfig, func(s *smithy.Schema) error { + switch s { + case schemas.AuthenticateCognitoActionConfig_AuthenticationRequestExtraParams: + return deserializeAuthenticateCognitoActionAuthenticationRequestExtraParams(d, schemas.AuthenticateCognitoActionConfig_AuthenticationRequestExtraParams, &v.AuthenticationRequestExtraParams) + case schemas.AuthenticateCognitoActionConfig_OnUnauthenticatedRequest: + var ev string + if err := d.ReadString(schemas.AuthenticateCognitoActionConfig_OnUnauthenticatedRequest, &ev); err != nil { + return err + } + v.OnUnauthenticatedRequest = AuthenticateCognitoActionConditionalBehaviorEnum(ev) + return nil + case schemas.AuthenticateCognitoActionConfig_Scope: + v.Scope = new(string) + return d.ReadString(schemas.AuthenticateCognitoActionConfig_Scope, v.Scope) + case schemas.AuthenticateCognitoActionConfig_SessionCookieName: + v.SessionCookieName = new(string) + return d.ReadString(schemas.AuthenticateCognitoActionConfig_SessionCookieName, v.SessionCookieName) + case schemas.AuthenticateCognitoActionConfig_SessionTimeout: + v.SessionTimeout = new(int64) + return d.ReadInt64(schemas.AuthenticateCognitoActionConfig_SessionTimeout, v.SessionTimeout) + case schemas.AuthenticateCognitoActionConfig_UserPoolArn: + v.UserPoolArn = new(string) + return d.ReadString(schemas.AuthenticateCognitoActionConfig_UserPoolArn, v.UserPoolArn) + case schemas.AuthenticateCognitoActionConfig_UserPoolClientId: + v.UserPoolClientId = new(string) + return d.ReadString(schemas.AuthenticateCognitoActionConfig_UserPoolClientId, v.UserPoolClientId) + case schemas.AuthenticateCognitoActionConfig_UserPoolDomain: + v.UserPoolDomain = new(string) + return d.ReadString(schemas.AuthenticateCognitoActionConfig_UserPoolDomain, v.UserPoolDomain) + } + return nil + }) +} + // Request parameters when using an identity provider (IdP) that is compliant with // OpenID Connect (OIDC) to authenticate users. type AuthenticateOidcActionConfig struct { @@ -215,6 +448,97 @@ type AuthenticateOidcActionConfig struct { noSmithyDocumentSerde } +func (v *AuthenticateOidcActionConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.AuthenticateOidcActionConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *AuthenticateOidcActionConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.AuthenticationRequestExtraParams != nil { + serializeAuthenticateOidcActionAuthenticationRequestExtraParams(s, schemas.AuthenticateOidcActionConfig_AuthenticationRequestExtraParams, v.AuthenticationRequestExtraParams) + } + if v.AuthorizationEndpoint != nil { + s.WriteString(schemas.AuthenticateOidcActionConfig_AuthorizationEndpoint, *v.AuthorizationEndpoint) + } + if v.ClientId != nil { + s.WriteString(schemas.AuthenticateOidcActionConfig_ClientId, *v.ClientId) + } + if v.ClientSecret != nil { + s.WriteString(schemas.AuthenticateOidcActionConfig_ClientSecret, *v.ClientSecret) + } + if v.Issuer != nil { + s.WriteString(schemas.AuthenticateOidcActionConfig_Issuer, *v.Issuer) + } + if v.OnUnauthenticatedRequest != "" { + s.WriteString(schemas.AuthenticateOidcActionConfig_OnUnauthenticatedRequest, string(v.OnUnauthenticatedRequest)) + } + if v.Scope != nil { + s.WriteString(schemas.AuthenticateOidcActionConfig_Scope, *v.Scope) + } + if v.SessionCookieName != nil { + s.WriteString(schemas.AuthenticateOidcActionConfig_SessionCookieName, *v.SessionCookieName) + } + if v.SessionTimeout != nil { + s.WriteInt64(schemas.AuthenticateOidcActionConfig_SessionTimeout, *v.SessionTimeout) + } + if v.TokenEndpoint != nil { + s.WriteString(schemas.AuthenticateOidcActionConfig_TokenEndpoint, *v.TokenEndpoint) + } + if v.UseExistingClientSecret != nil { + s.WriteBool(schemas.AuthenticateOidcActionConfig_UseExistingClientSecret, *v.UseExistingClientSecret) + } + if v.UserInfoEndpoint != nil { + s.WriteString(schemas.AuthenticateOidcActionConfig_UserInfoEndpoint, *v.UserInfoEndpoint) + } +} +func (v *AuthenticateOidcActionConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.AuthenticateOidcActionConfig, func(s *smithy.Schema) error { + switch s { + case schemas.AuthenticateOidcActionConfig_AuthenticationRequestExtraParams: + return deserializeAuthenticateOidcActionAuthenticationRequestExtraParams(d, schemas.AuthenticateOidcActionConfig_AuthenticationRequestExtraParams, &v.AuthenticationRequestExtraParams) + case schemas.AuthenticateOidcActionConfig_AuthorizationEndpoint: + v.AuthorizationEndpoint = new(string) + return d.ReadString(schemas.AuthenticateOidcActionConfig_AuthorizationEndpoint, v.AuthorizationEndpoint) + case schemas.AuthenticateOidcActionConfig_ClientId: + v.ClientId = new(string) + return d.ReadString(schemas.AuthenticateOidcActionConfig_ClientId, v.ClientId) + case schemas.AuthenticateOidcActionConfig_ClientSecret: + v.ClientSecret = new(string) + return d.ReadString(schemas.AuthenticateOidcActionConfig_ClientSecret, v.ClientSecret) + case schemas.AuthenticateOidcActionConfig_Issuer: + v.Issuer = new(string) + return d.ReadString(schemas.AuthenticateOidcActionConfig_Issuer, v.Issuer) + case schemas.AuthenticateOidcActionConfig_OnUnauthenticatedRequest: + var ev string + if err := d.ReadString(schemas.AuthenticateOidcActionConfig_OnUnauthenticatedRequest, &ev); err != nil { + return err + } + v.OnUnauthenticatedRequest = AuthenticateOidcActionConditionalBehaviorEnum(ev) + return nil + case schemas.AuthenticateOidcActionConfig_Scope: + v.Scope = new(string) + return d.ReadString(schemas.AuthenticateOidcActionConfig_Scope, v.Scope) + case schemas.AuthenticateOidcActionConfig_SessionCookieName: + v.SessionCookieName = new(string) + return d.ReadString(schemas.AuthenticateOidcActionConfig_SessionCookieName, v.SessionCookieName) + case schemas.AuthenticateOidcActionConfig_SessionTimeout: + v.SessionTimeout = new(int64) + return d.ReadInt64(schemas.AuthenticateOidcActionConfig_SessionTimeout, v.SessionTimeout) + case schemas.AuthenticateOidcActionConfig_TokenEndpoint: + v.TokenEndpoint = new(string) + return d.ReadString(schemas.AuthenticateOidcActionConfig_TokenEndpoint, v.TokenEndpoint) + case schemas.AuthenticateOidcActionConfig_UseExistingClientSecret: + v.UseExistingClientSecret = new(bool) + return d.ReadBool(schemas.AuthenticateOidcActionConfig_UseExistingClientSecret, v.UseExistingClientSecret) + case schemas.AuthenticateOidcActionConfig_UserInfoEndpoint: + v.UserInfoEndpoint = new(string) + return d.ReadString(schemas.AuthenticateOidcActionConfig_UserInfoEndpoint, v.UserInfoEndpoint) + } + return nil + }) +} + // Information about an Availability Zone. type AvailabilityZone struct { @@ -242,6 +566,50 @@ type AvailabilityZone struct { noSmithyDocumentSerde } +func (v *AvailabilityZone) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.AvailabilityZone) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *AvailabilityZone) SerializeMembers(s smithy.ShapeSerializer) { + if v.LoadBalancerAddresses != nil { + serializeLoadBalancerAddresses(s, schemas.AvailabilityZone_LoadBalancerAddresses, v.LoadBalancerAddresses) + } + if v.OutpostId != nil { + s.WriteString(schemas.AvailabilityZone_OutpostId, *v.OutpostId) + } + if v.SourceNatIpv6Prefixes != nil { + serializeSourceNatIpv6Prefixes(s, schemas.AvailabilityZone_SourceNatIpv6Prefixes, v.SourceNatIpv6Prefixes) + } + if v.SubnetId != nil { + s.WriteString(schemas.AvailabilityZone_SubnetId, *v.SubnetId) + } + if v.ZoneName != nil { + s.WriteString(schemas.AvailabilityZone_ZoneName, *v.ZoneName) + } +} +func (v *AvailabilityZone) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.AvailabilityZone, func(s *smithy.Schema) error { + switch s { + case schemas.AvailabilityZone_LoadBalancerAddresses: + return deserializeLoadBalancerAddresses(d, schemas.AvailabilityZone_LoadBalancerAddresses, &v.LoadBalancerAddresses) + case schemas.AvailabilityZone_OutpostId: + v.OutpostId = new(string) + return d.ReadString(schemas.AvailabilityZone_OutpostId, v.OutpostId) + case schemas.AvailabilityZone_SourceNatIpv6Prefixes: + return deserializeSourceNatIpv6Prefixes(d, schemas.AvailabilityZone_SourceNatIpv6Prefixes, &v.SourceNatIpv6Prefixes) + case schemas.AvailabilityZone_SubnetId: + v.SubnetId = new(string) + return d.ReadString(schemas.AvailabilityZone_SubnetId, v.SubnetId) + case schemas.AvailabilityZone_ZoneName: + v.ZoneName = new(string) + return d.ReadString(schemas.AvailabilityZone_ZoneName, v.ZoneName) + } + return nil + }) +} + // The status of a capacity reservation. type CapacityReservationStatus struct { @@ -254,6 +622,38 @@ type CapacityReservationStatus struct { noSmithyDocumentSerde } +func (v *CapacityReservationStatus) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CapacityReservationStatus) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *CapacityReservationStatus) SerializeMembers(s smithy.ShapeSerializer) { + if v.Code != "" { + s.WriteString(schemas.CapacityReservationStatus_Code, string(v.Code)) + } + if v.Reason != nil { + s.WriteString(schemas.CapacityReservationStatus_Reason, *v.Reason) + } +} +func (v *CapacityReservationStatus) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.CapacityReservationStatus, func(s *smithy.Schema) error { + switch s { + case schemas.CapacityReservationStatus_Code: + var ev string + if err := d.ReadString(schemas.CapacityReservationStatus_Code, &ev); err != nil { + return err + } + v.Code = CapacityReservationStateEnum(ev) + return nil + case schemas.CapacityReservationStatus_Reason: + v.Reason = new(string) + return d.ReadString(schemas.CapacityReservationStatus_Reason, v.Reason) + } + return nil + }) +} + // Information about an SSL server certificate. type Certificate struct { @@ -269,6 +669,34 @@ type Certificate struct { noSmithyDocumentSerde } +func (v *Certificate) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.Certificate) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *Certificate) SerializeMembers(s smithy.ShapeSerializer) { + if v.CertificateArn != nil { + s.WriteString(schemas.Certificate_CertificateArn, *v.CertificateArn) + } + if v.IsDefault != nil { + s.WriteBool(schemas.Certificate_IsDefault, *v.IsDefault) + } +} +func (v *Certificate) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.Certificate, func(s *smithy.Schema) error { + switch s { + case schemas.Certificate_CertificateArn: + v.CertificateArn = new(string) + return d.ReadString(schemas.Certificate_CertificateArn, v.CertificateArn) + case schemas.Certificate_IsDefault: + v.IsDefault = new(bool) + return d.ReadBool(schemas.Certificate_IsDefault, v.IsDefault) + } + return nil + }) +} + // Information about a cipher used in a policy. type Cipher struct { @@ -281,6 +709,134 @@ type Cipher struct { noSmithyDocumentSerde } +func (v *Cipher) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.Cipher) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *Cipher) SerializeMembers(s smithy.ShapeSerializer) { + if v.Name != nil { + s.WriteString(schemas.Cipher_Name, *v.Name) + } + if v.Priority != nil { + s.WriteInt32(schemas.Cipher_Priority, *v.Priority) + } +} +func (v *Cipher) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.Cipher, func(s *smithy.Schema) error { + switch s { + case schemas.Cipher_Name: + v.Name = new(string) + return d.ReadString(schemas.Cipher_Name, v.Name) + case schemas.Cipher_Priority: + v.Priority = new(int32) + return d.ReadInt32(schemas.Cipher_Priority, v.Priority) + } + return nil + }) +} + +// Describes a client certificate identity filter. +type ClientCertificateIdentityFilter struct { + + // The action to take when the client certificate matches the filter. The only + // supported action is accept . + // + // This member is required. + Action ClientCertificateIdentityFilterAction + + // The client certificate field to match. The possible values are: + // + // - subject-cn – The common name in the certificate subject. + // + // - subject-ou – The organizational unit in the certificate subject. + // + // - san-dns – A DNS name in the subject alternative name (SAN). + // + // - san-uri – A URI in the subject alternative name (SAN). + // + // If the client certificate doesn't contain the field, the filter doesn't match. + // If the field has multiple values, the filter matches if it matches any one of + // the values. + // + // This member is required. + Field ClientCertificateIdentityFilterField + + // The match type. The possible values are exact and prefix . + // + // For the subject-cn , subject-ou , and san-dns fields, matching is + // case-insensitive. For the san-uri field, the scheme and host are matched + // case-insensitively, and the rest of the URI is matched case-sensitively. + // + // This member is required. + MatchType ClientCertificateIdentityFilterMatchType + + // The value to match. The value must be 1–256 printable ASCII characters. + // + // If the field is san-uri , the value must begin with a letter. Before the first + // colon, the value can contain only letters, digits, plus signs (+), hyphens (-), + // or periods (.). If the match type is exact , the value must contain a colon. For + // example, spiffe://example.com/workload is a valid value. + // + // This member is required. + Value *string + + noSmithyDocumentSerde +} + +func (v *ClientCertificateIdentityFilter) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ClientCertificateIdentityFilter) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ClientCertificateIdentityFilter) SerializeMembers(s smithy.ShapeSerializer) { + if v.Action != "" { + s.WriteString(schemas.ClientCertificateIdentityFilter_Action, string(v.Action)) + } + if v.Field != "" { + s.WriteString(schemas.ClientCertificateIdentityFilter_Field, string(v.Field)) + } + if v.MatchType != "" { + s.WriteString(schemas.ClientCertificateIdentityFilter_MatchType, string(v.MatchType)) + } + if v.Value != nil { + s.WriteString(schemas.ClientCertificateIdentityFilter_Value, *v.Value) + } +} +func (v *ClientCertificateIdentityFilter) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ClientCertificateIdentityFilter, func(s *smithy.Schema) error { + switch s { + case schemas.ClientCertificateIdentityFilter_Action: + var ev string + if err := d.ReadString(schemas.ClientCertificateIdentityFilter_Action, &ev); err != nil { + return err + } + v.Action = ClientCertificateIdentityFilterAction(ev) + return nil + case schemas.ClientCertificateIdentityFilter_Field: + var ev string + if err := d.ReadString(schemas.ClientCertificateIdentityFilter_Field, &ev); err != nil { + return err + } + v.Field = ClientCertificateIdentityFilterField(ev) + return nil + case schemas.ClientCertificateIdentityFilter_MatchType: + var ev string + if err := d.ReadString(schemas.ClientCertificateIdentityFilter_MatchType, &ev); err != nil { + return err + } + v.MatchType = ClientCertificateIdentityFilterMatchType(ev) + return nil + case schemas.ClientCertificateIdentityFilter_Value: + v.Value = new(string) + return d.ReadString(schemas.ClientCertificateIdentityFilter_Value, v.Value) + } + return nil + }) +} + // Information about the revocations used by a trust store. type DescribeTrustStoreRevocation struct { @@ -299,6 +855,50 @@ type DescribeTrustStoreRevocation struct { noSmithyDocumentSerde } +func (v *DescribeTrustStoreRevocation) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DescribeTrustStoreRevocation) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DescribeTrustStoreRevocation) SerializeMembers(s smithy.ShapeSerializer) { + if v.NumberOfRevokedEntries != nil { + s.WriteInt64(schemas.DescribeTrustStoreRevocation_NumberOfRevokedEntries, *v.NumberOfRevokedEntries) + } + if v.RevocationId != nil { + s.WriteInt64(schemas.DescribeTrustStoreRevocation_RevocationId, *v.RevocationId) + } + if v.RevocationType != "" { + s.WriteString(schemas.DescribeTrustStoreRevocation_RevocationType, string(v.RevocationType)) + } + if v.TrustStoreArn != nil { + s.WriteString(schemas.DescribeTrustStoreRevocation_TrustStoreArn, *v.TrustStoreArn) + } +} +func (v *DescribeTrustStoreRevocation) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DescribeTrustStoreRevocation, func(s *smithy.Schema) error { + switch s { + case schemas.DescribeTrustStoreRevocation_NumberOfRevokedEntries: + v.NumberOfRevokedEntries = new(int64) + return d.ReadInt64(schemas.DescribeTrustStoreRevocation_NumberOfRevokedEntries, v.NumberOfRevokedEntries) + case schemas.DescribeTrustStoreRevocation_RevocationId: + v.RevocationId = new(int64) + return d.ReadInt64(schemas.DescribeTrustStoreRevocation_RevocationId, v.RevocationId) + case schemas.DescribeTrustStoreRevocation_RevocationType: + var ev string + if err := d.ReadString(schemas.DescribeTrustStoreRevocation_RevocationType, &ev); err != nil { + return err + } + v.RevocationType = RevocationType(ev) + return nil + case schemas.DescribeTrustStoreRevocation_TrustStoreArn: + v.TrustStoreArn = new(string) + return d.ReadString(schemas.DescribeTrustStoreRevocation_TrustStoreArn, v.TrustStoreArn) + } + return nil + }) +} + // Information about an action that returns a custom HTTP response. type FixedResponseActionConfig struct { @@ -319,6 +919,40 @@ type FixedResponseActionConfig struct { noSmithyDocumentSerde } +func (v *FixedResponseActionConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.FixedResponseActionConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *FixedResponseActionConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.ContentType != nil { + s.WriteString(schemas.FixedResponseActionConfig_ContentType, *v.ContentType) + } + if v.MessageBody != nil { + s.WriteString(schemas.FixedResponseActionConfig_MessageBody, *v.MessageBody) + } + if v.StatusCode != nil { + s.WriteString(schemas.FixedResponseActionConfig_StatusCode, *v.StatusCode) + } +} +func (v *FixedResponseActionConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.FixedResponseActionConfig, func(s *smithy.Schema) error { + switch s { + case schemas.FixedResponseActionConfig_ContentType: + v.ContentType = new(string) + return d.ReadString(schemas.FixedResponseActionConfig_ContentType, v.ContentType) + case schemas.FixedResponseActionConfig_MessageBody: + v.MessageBody = new(string) + return d.ReadString(schemas.FixedResponseActionConfig_MessageBody, v.MessageBody) + case schemas.FixedResponseActionConfig_StatusCode: + v.StatusCode = new(string) + return d.ReadString(schemas.FixedResponseActionConfig_StatusCode, v.StatusCode) + } + return nil + }) +} + // Information about a forward action. type ForwardActionConfig struct { @@ -331,6 +965,35 @@ type ForwardActionConfig struct { noSmithyDocumentSerde } +func (v *ForwardActionConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ForwardActionConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ForwardActionConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.TargetGroupStickinessConfig != nil { + s.WriteStruct(schemas.ForwardActionConfig_TargetGroupStickinessConfig) + v.TargetGroupStickinessConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.TargetGroups != nil { + serializeTargetGroupList(s, schemas.ForwardActionConfig_TargetGroups, v.TargetGroups) + } +} +func (v *ForwardActionConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ForwardActionConfig, func(s *smithy.Schema) error { + switch s { + case schemas.ForwardActionConfig_TargetGroupStickinessConfig: + v.TargetGroupStickinessConfig = &TargetGroupStickinessConfig{} + return v.TargetGroupStickinessConfig.Deserialize(d) + case schemas.ForwardActionConfig_TargetGroups: + return deserializeTargetGroupList(d, schemas.ForwardActionConfig_TargetGroups, &v.TargetGroups) + } + return nil + }) +} + // Information about a host header condition. type HostHeaderConditionConfig struct { @@ -351,6 +1014,32 @@ type HostHeaderConditionConfig struct { noSmithyDocumentSerde } +func (v *HostHeaderConditionConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.HostHeaderConditionConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *HostHeaderConditionConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.RegexValues != nil { + serializeListOfString(s, schemas.HostHeaderConditionConfig_RegexValues, v.RegexValues) + } + if v.Values != nil { + serializeListOfString(s, schemas.HostHeaderConditionConfig_Values, v.Values) + } +} +func (v *HostHeaderConditionConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.HostHeaderConditionConfig, func(s *smithy.Schema) error { + switch s { + case schemas.HostHeaderConditionConfig_RegexValues: + return deserializeListOfString(d, schemas.HostHeaderConditionConfig_RegexValues, &v.RegexValues) + case schemas.HostHeaderConditionConfig_Values: + return deserializeListOfString(d, schemas.HostHeaderConditionConfig_Values, &v.Values) + } + return nil + }) +} + // Information about a host header rewrite transform. This transform matches a // pattern in the host header in an HTTP request and replaces it with the specified // string. @@ -363,6 +1052,27 @@ type HostHeaderRewriteConfig struct { noSmithyDocumentSerde } +func (v *HostHeaderRewriteConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.HostHeaderRewriteConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *HostHeaderRewriteConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.Rewrites != nil { + serializeRewriteConfigList(s, schemas.HostHeaderRewriteConfig_Rewrites, v.Rewrites) + } +} +func (v *HostHeaderRewriteConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.HostHeaderRewriteConfig, func(s *smithy.Schema) error { + switch s { + case schemas.HostHeaderRewriteConfig_Rewrites: + return deserializeRewriteConfigList(d, schemas.HostHeaderRewriteConfig_Rewrites, &v.Rewrites) + } + return nil + }) +} + // Information about an HTTP header condition. // // There is a set of standard HTTP header fields. You can also define custom HTTP @@ -399,6 +1109,38 @@ type HttpHeaderConditionConfig struct { noSmithyDocumentSerde } +func (v *HttpHeaderConditionConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.HttpHeaderConditionConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *HttpHeaderConditionConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.HttpHeaderName != nil { + s.WriteString(schemas.HttpHeaderConditionConfig_HttpHeaderName, *v.HttpHeaderName) + } + if v.RegexValues != nil { + serializeListOfString(s, schemas.HttpHeaderConditionConfig_RegexValues, v.RegexValues) + } + if v.Values != nil { + serializeListOfString(s, schemas.HttpHeaderConditionConfig_Values, v.Values) + } +} +func (v *HttpHeaderConditionConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.HttpHeaderConditionConfig, func(s *smithy.Schema) error { + switch s { + case schemas.HttpHeaderConditionConfig_HttpHeaderName: + v.HttpHeaderName = new(string) + return d.ReadString(schemas.HttpHeaderConditionConfig_HttpHeaderName, v.HttpHeaderName) + case schemas.HttpHeaderConditionConfig_RegexValues: + return deserializeListOfString(d, schemas.HttpHeaderConditionConfig_RegexValues, &v.RegexValues) + case schemas.HttpHeaderConditionConfig_Values: + return deserializeListOfString(d, schemas.HttpHeaderConditionConfig_Values, &v.Values) + } + return nil + }) +} + // Information about an HTTP method condition. // // HTTP defines a set of request methods, also referred to as HTTP verbs. For more @@ -421,6 +1163,27 @@ type HttpRequestMethodConditionConfig struct { noSmithyDocumentSerde } +func (v *HttpRequestMethodConditionConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.HttpRequestMethodConditionConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *HttpRequestMethodConditionConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.Values != nil { + serializeListOfString(s, schemas.HttpRequestMethodConditionConfig_Values, v.Values) + } +} +func (v *HttpRequestMethodConditionConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.HttpRequestMethodConditionConfig, func(s *smithy.Schema) error { + switch s { + case schemas.HttpRequestMethodConditionConfig_Values: + return deserializeListOfString(d, schemas.HttpRequestMethodConditionConfig_Values, &v.Values) + } + return nil + }) +} + // An IPAM pool is a collection of IP address CIDRs. IPAM pools enable you to // organize your IP addresses according to your routing and security needs. type IpamPools struct { @@ -431,6 +1194,28 @@ type IpamPools struct { noSmithyDocumentSerde } +func (v *IpamPools) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.IpamPools) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *IpamPools) SerializeMembers(s smithy.ShapeSerializer) { + if v.Ipv4IpamPoolId != nil { + s.WriteString(schemas.IpamPools_Ipv4IpamPoolId, *v.Ipv4IpamPoolId) + } +} +func (v *IpamPools) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.IpamPools, func(s *smithy.Schema) error { + switch s { + case schemas.IpamPools_Ipv4IpamPoolId: + v.Ipv4IpamPoolId = new(string) + return d.ReadString(schemas.IpamPools_Ipv4IpamPoolId, v.Ipv4IpamPoolId) + } + return nil + }) +} + // Information about an additional claim to validate. type JwtValidationActionAdditionalClaim struct { @@ -455,6 +1240,43 @@ type JwtValidationActionAdditionalClaim struct { noSmithyDocumentSerde } +func (v *JwtValidationActionAdditionalClaim) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.JwtValidationActionAdditionalClaim) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *JwtValidationActionAdditionalClaim) SerializeMembers(s smithy.ShapeSerializer) { + if v.Format != "" { + s.WriteString(schemas.JwtValidationActionAdditionalClaim_Format, string(v.Format)) + } + if v.Name != nil { + s.WriteString(schemas.JwtValidationActionAdditionalClaim_Name, *v.Name) + } + if v.Values != nil { + serializeJwtValidationActionAdditionalClaimValues(s, schemas.JwtValidationActionAdditionalClaim_Values, v.Values) + } +} +func (v *JwtValidationActionAdditionalClaim) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.JwtValidationActionAdditionalClaim, func(s *smithy.Schema) error { + switch s { + case schemas.JwtValidationActionAdditionalClaim_Format: + var ev string + if err := d.ReadString(schemas.JwtValidationActionAdditionalClaim_Format, &ev); err != nil { + return err + } + v.Format = JwtValidationActionAdditionalClaimFormatEnum(ev) + return nil + case schemas.JwtValidationActionAdditionalClaim_Name: + v.Name = new(string) + return d.ReadString(schemas.JwtValidationActionAdditionalClaim_Name, v.Name) + case schemas.JwtValidationActionAdditionalClaim_Values: + return deserializeJwtValidationActionAdditionalClaimValues(d, schemas.JwtValidationActionAdditionalClaim_Values, &v.Values) + } + return nil + }) +} + // Information about a JSON Web Token (JWT) validation action. type JwtValidationActionConfig struct { @@ -479,6 +1301,39 @@ type JwtValidationActionConfig struct { noSmithyDocumentSerde } +func (v *JwtValidationActionConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.JwtValidationActionConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *JwtValidationActionConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.AdditionalClaims != nil { + serializeJwtValidationActionAdditionalClaims(s, schemas.JwtValidationActionConfig_AdditionalClaims, v.AdditionalClaims) + } + if v.Issuer != nil { + s.WriteString(schemas.JwtValidationActionConfig_Issuer, *v.Issuer) + } + if v.JwksEndpoint != nil { + s.WriteString(schemas.JwtValidationActionConfig_JwksEndpoint, *v.JwksEndpoint) + } +} +func (v *JwtValidationActionConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.JwtValidationActionConfig, func(s *smithy.Schema) error { + switch s { + case schemas.JwtValidationActionConfig_AdditionalClaims: + return deserializeJwtValidationActionAdditionalClaims(d, schemas.JwtValidationActionConfig_AdditionalClaims, &v.AdditionalClaims) + case schemas.JwtValidationActionConfig_Issuer: + v.Issuer = new(string) + return d.ReadString(schemas.JwtValidationActionConfig_Issuer, v.Issuer) + case schemas.JwtValidationActionConfig_JwksEndpoint: + v.JwksEndpoint = new(string) + return d.ReadString(schemas.JwtValidationActionConfig_JwksEndpoint, v.JwksEndpoint) + } + return nil + }) +} + // Information about an Elastic Load Balancing resource limit for your Amazon Web // Services account. // @@ -504,6 +1359,34 @@ type Limit struct { noSmithyDocumentSerde } +func (v *Limit) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.Limit) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *Limit) SerializeMembers(s smithy.ShapeSerializer) { + if v.Max != nil { + s.WriteString(schemas.Limit_Max, *v.Max) + } + if v.Name != nil { + s.WriteString(schemas.Limit_Name, *v.Name) + } +} +func (v *Limit) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.Limit, func(s *smithy.Schema) error { + switch s { + case schemas.Limit_Max: + v.Max = new(string) + return d.ReadString(schemas.Limit_Max, v.Max) + case schemas.Limit_Name: + v.Name = new(string) + return d.ReadString(schemas.Limit_Name, v.Name) + } + return nil + }) +} + // Information about a listener. type Listener struct { @@ -539,6 +1422,79 @@ type Listener struct { noSmithyDocumentSerde } +func (v *Listener) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.Listener) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *Listener) SerializeMembers(s smithy.ShapeSerializer) { + if v.AlpnPolicy != nil { + serializeAlpnPolicyName(s, schemas.Listener_AlpnPolicy, v.AlpnPolicy) + } + if v.Certificates != nil { + serializeCertificateList(s, schemas.Listener_Certificates, v.Certificates) + } + if v.DefaultActions != nil { + serializeActions(s, schemas.Listener_DefaultActions, v.DefaultActions) + } + if v.ListenerArn != nil { + s.WriteString(schemas.Listener_ListenerArn, *v.ListenerArn) + } + if v.LoadBalancerArn != nil { + s.WriteString(schemas.Listener_LoadBalancerArn, *v.LoadBalancerArn) + } + if v.MutualAuthentication != nil { + s.WriteStruct(schemas.Listener_MutualAuthentication) + v.MutualAuthentication.SerializeMembers(s) + s.CloseStruct() + } + if v.Port != nil { + s.WriteInt32(schemas.Listener_Port, *v.Port) + } + if v.Protocol != "" { + s.WriteString(schemas.Listener_Protocol, string(v.Protocol)) + } + if v.SslPolicy != nil { + s.WriteString(schemas.Listener_SslPolicy, *v.SslPolicy) + } +} +func (v *Listener) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.Listener, func(s *smithy.Schema) error { + switch s { + case schemas.Listener_AlpnPolicy: + return deserializeAlpnPolicyName(d, schemas.Listener_AlpnPolicy, &v.AlpnPolicy) + case schemas.Listener_Certificates: + return deserializeCertificateList(d, schemas.Listener_Certificates, &v.Certificates) + case schemas.Listener_DefaultActions: + return deserializeActions(d, schemas.Listener_DefaultActions, &v.DefaultActions) + case schemas.Listener_ListenerArn: + v.ListenerArn = new(string) + return d.ReadString(schemas.Listener_ListenerArn, v.ListenerArn) + case schemas.Listener_LoadBalancerArn: + v.LoadBalancerArn = new(string) + return d.ReadString(schemas.Listener_LoadBalancerArn, v.LoadBalancerArn) + case schemas.Listener_MutualAuthentication: + v.MutualAuthentication = &MutualAuthenticationAttributes{} + return v.MutualAuthentication.Deserialize(d) + case schemas.Listener_Port: + v.Port = new(int32) + return d.ReadInt32(schemas.Listener_Port, v.Port) + case schemas.Listener_Protocol: + var ev string + if err := d.ReadString(schemas.Listener_Protocol, &ev); err != nil { + return err + } + v.Protocol = ProtocolEnum(ev) + return nil + case schemas.Listener_SslPolicy: + v.SslPolicy = new(string) + return d.ReadString(schemas.Listener_SslPolicy, v.SslPolicy) + } + return nil + }) +} + // Information about a listener attribute. type ListenerAttribute struct { @@ -634,6 +1590,34 @@ type ListenerAttribute struct { noSmithyDocumentSerde } +func (v *ListenerAttribute) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ListenerAttribute) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ListenerAttribute) SerializeMembers(s smithy.ShapeSerializer) { + if v.Key != nil { + s.WriteString(schemas.ListenerAttribute_Key, *v.Key) + } + if v.Value != nil { + s.WriteString(schemas.ListenerAttribute_Value, *v.Value) + } +} +func (v *ListenerAttribute) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ListenerAttribute, func(s *smithy.Schema) error { + switch s { + case schemas.ListenerAttribute_Key: + v.Key = new(string) + return d.ReadString(schemas.ListenerAttribute_Key, v.Key) + case schemas.ListenerAttribute_Value: + v.Value = new(string) + return d.ReadString(schemas.ListenerAttribute_Value, v.Value) + } + return nil + }) +} + // Information about a load balancer. type LoadBalancer struct { @@ -709,6 +1693,136 @@ type LoadBalancer struct { noSmithyDocumentSerde } +func (v *LoadBalancer) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.LoadBalancer) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *LoadBalancer) SerializeMembers(s smithy.ShapeSerializer) { + if v.AvailabilityZones != nil { + serializeAvailabilityZones(s, schemas.LoadBalancer_AvailabilityZones, v.AvailabilityZones) + } + if v.CanonicalHostedZoneId != nil { + s.WriteString(schemas.LoadBalancer_CanonicalHostedZoneId, *v.CanonicalHostedZoneId) + } + if v.CreatedTime != nil { + s.WriteTime(schemas.LoadBalancer_CreatedTime, *v.CreatedTime) + } + if v.CustomerOwnedIpv4Pool != nil { + s.WriteString(schemas.LoadBalancer_CustomerOwnedIpv4Pool, *v.CustomerOwnedIpv4Pool) + } + if v.DNSName != nil { + s.WriteString(schemas.LoadBalancer_DNSName, *v.DNSName) + } + if v.EnablePrefixForIpv6SourceNat != "" { + s.WriteString(schemas.LoadBalancer_EnablePrefixForIpv6SourceNat, string(v.EnablePrefixForIpv6SourceNat)) + } + if v.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic != nil { + s.WriteString(schemas.LoadBalancer_EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic, *v.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic) + } + if v.IpAddressType != "" { + s.WriteString(schemas.LoadBalancer_IpAddressType, string(v.IpAddressType)) + } + if v.IpamPools != nil { + s.WriteStruct(schemas.LoadBalancer_IpamPools) + v.IpamPools.SerializeMembers(s) + s.CloseStruct() + } + if v.LoadBalancerArn != nil { + s.WriteString(schemas.LoadBalancer_LoadBalancerArn, *v.LoadBalancerArn) + } + if v.LoadBalancerName != nil { + s.WriteString(schemas.LoadBalancer_LoadBalancerName, *v.LoadBalancerName) + } + if v.Scheme != "" { + s.WriteString(schemas.LoadBalancer_Scheme, string(v.Scheme)) + } + if v.SecurityGroups != nil { + serializeSecurityGroups(s, schemas.LoadBalancer_SecurityGroups, v.SecurityGroups) + } + if v.State != nil { + s.WriteStruct(schemas.LoadBalancer_State) + v.State.SerializeMembers(s) + s.CloseStruct() + } + if v.Type != "" { + s.WriteString(schemas.LoadBalancer_Type, string(v.Type)) + } + if v.VpcId != nil { + s.WriteString(schemas.LoadBalancer_VpcId, *v.VpcId) + } +} +func (v *LoadBalancer) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.LoadBalancer, func(s *smithy.Schema) error { + switch s { + case schemas.LoadBalancer_AvailabilityZones: + return deserializeAvailabilityZones(d, schemas.LoadBalancer_AvailabilityZones, &v.AvailabilityZones) + case schemas.LoadBalancer_CanonicalHostedZoneId: + v.CanonicalHostedZoneId = new(string) + return d.ReadString(schemas.LoadBalancer_CanonicalHostedZoneId, v.CanonicalHostedZoneId) + case schemas.LoadBalancer_CreatedTime: + v.CreatedTime = new(time.Time) + return d.ReadTime(schemas.LoadBalancer_CreatedTime, v.CreatedTime) + case schemas.LoadBalancer_CustomerOwnedIpv4Pool: + v.CustomerOwnedIpv4Pool = new(string) + return d.ReadString(schemas.LoadBalancer_CustomerOwnedIpv4Pool, v.CustomerOwnedIpv4Pool) + case schemas.LoadBalancer_DNSName: + v.DNSName = new(string) + return d.ReadString(schemas.LoadBalancer_DNSName, v.DNSName) + case schemas.LoadBalancer_EnablePrefixForIpv6SourceNat: + var ev string + if err := d.ReadString(schemas.LoadBalancer_EnablePrefixForIpv6SourceNat, &ev); err != nil { + return err + } + v.EnablePrefixForIpv6SourceNat = EnablePrefixForIpv6SourceNatEnum(ev) + return nil + case schemas.LoadBalancer_EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic: + v.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic = new(string) + return d.ReadString(schemas.LoadBalancer_EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic, v.EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic) + case schemas.LoadBalancer_IpAddressType: + var ev string + if err := d.ReadString(schemas.LoadBalancer_IpAddressType, &ev); err != nil { + return err + } + v.IpAddressType = IpAddressType(ev) + return nil + case schemas.LoadBalancer_IpamPools: + v.IpamPools = &IpamPools{} + return v.IpamPools.Deserialize(d) + case schemas.LoadBalancer_LoadBalancerArn: + v.LoadBalancerArn = new(string) + return d.ReadString(schemas.LoadBalancer_LoadBalancerArn, v.LoadBalancerArn) + case schemas.LoadBalancer_LoadBalancerName: + v.LoadBalancerName = new(string) + return d.ReadString(schemas.LoadBalancer_LoadBalancerName, v.LoadBalancerName) + case schemas.LoadBalancer_Scheme: + var ev string + if err := d.ReadString(schemas.LoadBalancer_Scheme, &ev); err != nil { + return err + } + v.Scheme = LoadBalancerSchemeEnum(ev) + return nil + case schemas.LoadBalancer_SecurityGroups: + return deserializeSecurityGroups(d, schemas.LoadBalancer_SecurityGroups, &v.SecurityGroups) + case schemas.LoadBalancer_State: + v.State = &LoadBalancerState{} + return v.State.Deserialize(d) + case schemas.LoadBalancer_Type: + var ev string + if err := d.ReadString(schemas.LoadBalancer_Type, &ev); err != nil { + return err + } + v.Type = LoadBalancerTypeEnum(ev) + return nil + case schemas.LoadBalancer_VpcId: + v.VpcId = new(string) + return d.ReadString(schemas.LoadBalancer_VpcId, v.VpcId) + } + return nil + }) +} + // Information about a static IP address for a load balancer. type LoadBalancerAddress struct { @@ -728,6 +1842,46 @@ type LoadBalancerAddress struct { noSmithyDocumentSerde } +func (v *LoadBalancerAddress) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.LoadBalancerAddress) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *LoadBalancerAddress) SerializeMembers(s smithy.ShapeSerializer) { + if v.AllocationId != nil { + s.WriteString(schemas.LoadBalancerAddress_AllocationId, *v.AllocationId) + } + if v.IPv6Address != nil { + s.WriteString(schemas.LoadBalancerAddress_IPv6Address, *v.IPv6Address) + } + if v.IpAddress != nil { + s.WriteString(schemas.LoadBalancerAddress_IpAddress, *v.IpAddress) + } + if v.PrivateIPv4Address != nil { + s.WriteString(schemas.LoadBalancerAddress_PrivateIPv4Address, *v.PrivateIPv4Address) + } +} +func (v *LoadBalancerAddress) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.LoadBalancerAddress, func(s *smithy.Schema) error { + switch s { + case schemas.LoadBalancerAddress_AllocationId: + v.AllocationId = new(string) + return d.ReadString(schemas.LoadBalancerAddress_AllocationId, v.AllocationId) + case schemas.LoadBalancerAddress_IPv6Address: + v.IPv6Address = new(string) + return d.ReadString(schemas.LoadBalancerAddress_IPv6Address, v.IPv6Address) + case schemas.LoadBalancerAddress_IpAddress: + v.IpAddress = new(string) + return d.ReadString(schemas.LoadBalancerAddress_IpAddress, v.IpAddress) + case schemas.LoadBalancerAddress_PrivateIPv4Address: + v.PrivateIPv4Address = new(string) + return d.ReadString(schemas.LoadBalancerAddress_PrivateIPv4Address, v.PrivateIPv4Address) + } + return nil + }) +} + // Information about a load balancer attribute. type LoadBalancerAttribute struct { @@ -818,6 +1972,12 @@ type LoadBalancerAttribute struct { // cipher suite negotiated with the client. Both headers are in OpenSSL format. The // possible values for the attribute are true and false . The default is false . // + // - routing.http.x_amzn_tls_kx.enabled - Indicates whether the x-amzn-tls-kx + // header, which contains information about the negotiated key exchange group, is + // added to the client request before sending it to the target. The x-amzn-tls-kx + // header uses IANA TLS Supported Groups registry naming. The possible values for + // the attribute are true and false . The default is false . + // // - routing.http.xff_client_port.enabled - Indicates whether the X-Forwarded-For // header should preserve the source port that the client used to connect to the // load balancer. The possible values are true and false . The default is false . @@ -870,6 +2030,34 @@ type LoadBalancerAttribute struct { noSmithyDocumentSerde } +func (v *LoadBalancerAttribute) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.LoadBalancerAttribute) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *LoadBalancerAttribute) SerializeMembers(s smithy.ShapeSerializer) { + if v.Key != nil { + s.WriteString(schemas.LoadBalancerAttribute_Key, *v.Key) + } + if v.Value != nil { + s.WriteString(schemas.LoadBalancerAttribute_Value, *v.Value) + } +} +func (v *LoadBalancerAttribute) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.LoadBalancerAttribute, func(s *smithy.Schema) error { + switch s { + case schemas.LoadBalancerAttribute_Key: + v.Key = new(string) + return d.ReadString(schemas.LoadBalancerAttribute_Key, v.Key) + case schemas.LoadBalancerAttribute_Value: + v.Value = new(string) + return d.ReadString(schemas.LoadBalancerAttribute_Value, v.Value) + } + return nil + }) +} + // Information about the state of the load balancer. type LoadBalancerState struct { @@ -886,6 +2074,38 @@ type LoadBalancerState struct { noSmithyDocumentSerde } +func (v *LoadBalancerState) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.LoadBalancerState) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *LoadBalancerState) SerializeMembers(s smithy.ShapeSerializer) { + if v.Code != "" { + s.WriteString(schemas.LoadBalancerState_Code, string(v.Code)) + } + if v.Reason != nil { + s.WriteString(schemas.LoadBalancerState_Reason, *v.Reason) + } +} +func (v *LoadBalancerState) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.LoadBalancerState, func(s *smithy.Schema) error { + switch s { + case schemas.LoadBalancerState_Code: + var ev string + if err := d.ReadString(schemas.LoadBalancerState_Code, &ev); err != nil { + return err + } + v.Code = LoadBalancerStateEnum(ev) + return nil + case schemas.LoadBalancerState_Reason: + v.Reason = new(string) + return d.ReadString(schemas.LoadBalancerState_Reason, v.Reason) + } + return nil + }) +} + // The codes to use when checking for a successful response from a target. If the // protocol version is gRPC, these are gRPC codes. Otherwise, these are HTTP codes. type Matcher struct { @@ -912,6 +2132,34 @@ type Matcher struct { noSmithyDocumentSerde } +func (v *Matcher) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.Matcher) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *Matcher) SerializeMembers(s smithy.ShapeSerializer) { + if v.GrpcCode != nil { + s.WriteString(schemas.Matcher_GrpcCode, *v.GrpcCode) + } + if v.HttpCode != nil { + s.WriteString(schemas.Matcher_HttpCode, *v.HttpCode) + } +} +func (v *Matcher) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.Matcher, func(s *smithy.Schema) error { + switch s { + case schemas.Matcher_GrpcCode: + v.GrpcCode = new(string) + return d.ReadString(schemas.Matcher_GrpcCode, v.GrpcCode) + case schemas.Matcher_HttpCode: + v.HttpCode = new(string) + return d.ReadString(schemas.Matcher_HttpCode, v.HttpCode) + } + return nil + }) +} + // The minimum capacity for a load balancer. type MinimumLoadBalancerCapacity struct { @@ -921,17 +2169,52 @@ type MinimumLoadBalancerCapacity struct { noSmithyDocumentSerde } +func (v *MinimumLoadBalancerCapacity) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.MinimumLoadBalancerCapacity) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *MinimumLoadBalancerCapacity) SerializeMembers(s smithy.ShapeSerializer) { + if v.CapacityUnits != nil { + s.WriteInt32(schemas.MinimumLoadBalancerCapacity_CapacityUnits, *v.CapacityUnits) + } +} +func (v *MinimumLoadBalancerCapacity) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.MinimumLoadBalancerCapacity, func(s *smithy.Schema) error { + switch s { + case schemas.MinimumLoadBalancerCapacity_CapacityUnits: + v.CapacityUnits = new(int32) + return d.ReadInt32(schemas.MinimumLoadBalancerCapacity_CapacityUnits, v.CapacityUnits) + } + return nil + }) +} + // Information about the mutual authentication attributes of a listener. type MutualAuthenticationAttributes struct { // Indicates whether trust store CA certificate names are advertised. AdvertiseTrustStoreCaNames AdvertiseTrustStoreCaNamesEnum + // [Network Load Balancers] The client certificate identity filters. The load + // balancer admits a connection only if the client certificate matches at least one + // filter. If you don't specify any filters, the load balancer admits every client + // certificate that passes trust store validation and revocation checks. + // + // You can specify filters only when the mode is verify . You can specify up to 100 + // filters per listener. + ClientCertificateIdentityFilters []ClientCertificateIdentityFilter + // Indicates whether expired client certificates are ignored. IgnoreClientCertificateExpiry *bool - // The client certificate handling method. Options are off , passthrough or verify - // . The default value is off . + // The client certificate handling method. The default value is off . + // + // [Application Load Balancers] The possible values are off , passthrough , and + // verify . + // + // [Network Load Balancers] The possible values are off and verify . Mode *string // The Amazon Resource Name (ARN) of the trust store. @@ -943,6 +2226,65 @@ type MutualAuthenticationAttributes struct { noSmithyDocumentSerde } +func (v *MutualAuthenticationAttributes) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.MutualAuthenticationAttributes) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *MutualAuthenticationAttributes) SerializeMembers(s smithy.ShapeSerializer) { + if v.AdvertiseTrustStoreCaNames != "" { + s.WriteString(schemas.MutualAuthenticationAttributes_AdvertiseTrustStoreCaNames, string(v.AdvertiseTrustStoreCaNames)) + } + if v.ClientCertificateIdentityFilters != nil { + serializeClientCertificateIdentityFilters(s, schemas.MutualAuthenticationAttributes_ClientCertificateIdentityFilters, v.ClientCertificateIdentityFilters) + } + if v.IgnoreClientCertificateExpiry != nil { + s.WriteBool(schemas.MutualAuthenticationAttributes_IgnoreClientCertificateExpiry, *v.IgnoreClientCertificateExpiry) + } + if v.Mode != nil { + s.WriteString(schemas.MutualAuthenticationAttributes_Mode, *v.Mode) + } + if v.TrustStoreArn != nil { + s.WriteString(schemas.MutualAuthenticationAttributes_TrustStoreArn, *v.TrustStoreArn) + } + if v.TrustStoreAssociationStatus != "" { + s.WriteString(schemas.MutualAuthenticationAttributes_TrustStoreAssociationStatus, string(v.TrustStoreAssociationStatus)) + } +} +func (v *MutualAuthenticationAttributes) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.MutualAuthenticationAttributes, func(s *smithy.Schema) error { + switch s { + case schemas.MutualAuthenticationAttributes_AdvertiseTrustStoreCaNames: + var ev string + if err := d.ReadString(schemas.MutualAuthenticationAttributes_AdvertiseTrustStoreCaNames, &ev); err != nil { + return err + } + v.AdvertiseTrustStoreCaNames = AdvertiseTrustStoreCaNamesEnum(ev) + return nil + case schemas.MutualAuthenticationAttributes_ClientCertificateIdentityFilters: + return deserializeClientCertificateIdentityFilters(d, schemas.MutualAuthenticationAttributes_ClientCertificateIdentityFilters, &v.ClientCertificateIdentityFilters) + case schemas.MutualAuthenticationAttributes_IgnoreClientCertificateExpiry: + v.IgnoreClientCertificateExpiry = new(bool) + return d.ReadBool(schemas.MutualAuthenticationAttributes_IgnoreClientCertificateExpiry, v.IgnoreClientCertificateExpiry) + case schemas.MutualAuthenticationAttributes_Mode: + v.Mode = new(string) + return d.ReadString(schemas.MutualAuthenticationAttributes_Mode, v.Mode) + case schemas.MutualAuthenticationAttributes_TrustStoreArn: + v.TrustStoreArn = new(string) + return d.ReadString(schemas.MutualAuthenticationAttributes_TrustStoreArn, v.TrustStoreArn) + case schemas.MutualAuthenticationAttributes_TrustStoreAssociationStatus: + var ev string + if err := d.ReadString(schemas.MutualAuthenticationAttributes_TrustStoreAssociationStatus, &ev); err != nil { + return err + } + v.TrustStoreAssociationStatus = TrustStoreAssociationStatusEnum(ev) + return nil + } + return nil + }) +} + // Information about a path pattern condition. type PathPatternConditionConfig struct { @@ -965,6 +2307,32 @@ type PathPatternConditionConfig struct { noSmithyDocumentSerde } +func (v *PathPatternConditionConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.PathPatternConditionConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *PathPatternConditionConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.RegexValues != nil { + serializeListOfString(s, schemas.PathPatternConditionConfig_RegexValues, v.RegexValues) + } + if v.Values != nil { + serializeListOfString(s, schemas.PathPatternConditionConfig_Values, v.Values) + } +} +func (v *PathPatternConditionConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.PathPatternConditionConfig, func(s *smithy.Schema) error { + switch s { + case schemas.PathPatternConditionConfig_RegexValues: + return deserializeListOfString(d, schemas.PathPatternConditionConfig_RegexValues, &v.RegexValues) + case schemas.PathPatternConditionConfig_Values: + return deserializeListOfString(d, schemas.PathPatternConditionConfig_Values, &v.Values) + } + return nil + }) +} + // Information about a query string condition. // // The query string component of a URI starts after the first '?' character and is @@ -987,6 +2355,27 @@ type QueryStringConditionConfig struct { noSmithyDocumentSerde } +func (v *QueryStringConditionConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.QueryStringConditionConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *QueryStringConditionConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.Values != nil { + serializeQueryStringKeyValuePairList(s, schemas.QueryStringConditionConfig_Values, v.Values) + } +} +func (v *QueryStringConditionConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.QueryStringConditionConfig, func(s *smithy.Schema) error { + switch s { + case schemas.QueryStringConditionConfig_Values: + return deserializeQueryStringKeyValuePairList(d, schemas.QueryStringConditionConfig_Values, &v.Values) + } + return nil + }) +} + // Information about a key/value pair. type QueryStringKeyValuePair struct { @@ -999,6 +2388,34 @@ type QueryStringKeyValuePair struct { noSmithyDocumentSerde } +func (v *QueryStringKeyValuePair) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.QueryStringKeyValuePair) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *QueryStringKeyValuePair) SerializeMembers(s smithy.ShapeSerializer) { + if v.Key != nil { + s.WriteString(schemas.QueryStringKeyValuePair_Key, *v.Key) + } + if v.Value != nil { + s.WriteString(schemas.QueryStringKeyValuePair_Value, *v.Value) + } +} +func (v *QueryStringKeyValuePair) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.QueryStringKeyValuePair, func(s *smithy.Schema) error { + switch s { + case schemas.QueryStringKeyValuePair_Key: + v.Key = new(string) + return d.ReadString(schemas.QueryStringKeyValuePair_Key, v.Key) + case schemas.QueryStringKeyValuePair_Value: + v.Value = new(string) + return d.ReadString(schemas.QueryStringKeyValuePair_Value, v.Value) + } + return nil + }) +} + // Information about a redirect action. // // A URI consists of the following components: @@ -1052,6 +2469,62 @@ type RedirectActionConfig struct { noSmithyDocumentSerde } +func (v *RedirectActionConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RedirectActionConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RedirectActionConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.Host != nil { + s.WriteString(schemas.RedirectActionConfig_Host, *v.Host) + } + if v.Path != nil { + s.WriteString(schemas.RedirectActionConfig_Path, *v.Path) + } + if v.Port != nil { + s.WriteString(schemas.RedirectActionConfig_Port, *v.Port) + } + if v.Protocol != nil { + s.WriteString(schemas.RedirectActionConfig_Protocol, *v.Protocol) + } + if v.Query != nil { + s.WriteString(schemas.RedirectActionConfig_Query, *v.Query) + } + if v.StatusCode != "" { + s.WriteString(schemas.RedirectActionConfig_StatusCode, string(v.StatusCode)) + } +} +func (v *RedirectActionConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RedirectActionConfig, func(s *smithy.Schema) error { + switch s { + case schemas.RedirectActionConfig_Host: + v.Host = new(string) + return d.ReadString(schemas.RedirectActionConfig_Host, v.Host) + case schemas.RedirectActionConfig_Path: + v.Path = new(string) + return d.ReadString(schemas.RedirectActionConfig_Path, v.Path) + case schemas.RedirectActionConfig_Port: + v.Port = new(string) + return d.ReadString(schemas.RedirectActionConfig_Port, v.Port) + case schemas.RedirectActionConfig_Protocol: + v.Protocol = new(string) + return d.ReadString(schemas.RedirectActionConfig_Protocol, v.Protocol) + case schemas.RedirectActionConfig_Query: + v.Query = new(string) + return d.ReadString(schemas.RedirectActionConfig_Query, v.Query) + case schemas.RedirectActionConfig_StatusCode: + var ev string + if err := d.ReadString(schemas.RedirectActionConfig_StatusCode, &ev); err != nil { + return err + } + v.StatusCode = RedirectActionStatusCodeEnum(ev) + return nil + } + return nil + }) +} + // Information about a revocation file. type RevocationContent struct { @@ -1070,6 +2543,50 @@ type RevocationContent struct { noSmithyDocumentSerde } +func (v *RevocationContent) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RevocationContent) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RevocationContent) SerializeMembers(s smithy.ShapeSerializer) { + if v.RevocationType != "" { + s.WriteString(schemas.RevocationContent_RevocationType, string(v.RevocationType)) + } + if v.S3Bucket != nil { + s.WriteString(schemas.RevocationContent_S3Bucket, *v.S3Bucket) + } + if v.S3Key != nil { + s.WriteString(schemas.RevocationContent_S3Key, *v.S3Key) + } + if v.S3ObjectVersion != nil { + s.WriteString(schemas.RevocationContent_S3ObjectVersion, *v.S3ObjectVersion) + } +} +func (v *RevocationContent) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RevocationContent, func(s *smithy.Schema) error { + switch s { + case schemas.RevocationContent_RevocationType: + var ev string + if err := d.ReadString(schemas.RevocationContent_RevocationType, &ev); err != nil { + return err + } + v.RevocationType = RevocationType(ev) + return nil + case schemas.RevocationContent_S3Bucket: + v.S3Bucket = new(string) + return d.ReadString(schemas.RevocationContent_S3Bucket, v.S3Bucket) + case schemas.RevocationContent_S3Key: + v.S3Key = new(string) + return d.ReadString(schemas.RevocationContent_S3Key, v.S3Key) + case schemas.RevocationContent_S3ObjectVersion: + v.S3ObjectVersion = new(string) + return d.ReadString(schemas.RevocationContent_S3ObjectVersion, v.S3ObjectVersion) + } + return nil + }) +} + // Information about a rewrite transform. This transform matches a pattern and // replaces it with the specified string. type RewriteConfig struct { @@ -1090,6 +2607,34 @@ type RewriteConfig struct { noSmithyDocumentSerde } +func (v *RewriteConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RewriteConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RewriteConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.Regex != nil { + s.WriteString(schemas.RewriteConfig_Regex, *v.Regex) + } + if v.Replace != nil { + s.WriteString(schemas.RewriteConfig_Replace, *v.Replace) + } +} +func (v *RewriteConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RewriteConfig, func(s *smithy.Schema) error { + switch s { + case schemas.RewriteConfig_Regex: + v.Regex = new(string) + return d.ReadString(schemas.RewriteConfig_Regex, v.Regex) + case schemas.RewriteConfig_Replace: + v.Replace = new(string) + return d.ReadString(schemas.RewriteConfig_Replace, v.Replace) + } + return nil + }) +} + // Information about a rule. type Rule struct { @@ -1118,6 +2663,55 @@ type Rule struct { noSmithyDocumentSerde } +func (v *Rule) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.Rule) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *Rule) SerializeMembers(s smithy.ShapeSerializer) { + if v.Actions != nil { + serializeActions(s, schemas.Rule_Actions, v.Actions) + } + if v.Conditions != nil { + serializeRuleConditionList(s, schemas.Rule_Conditions, v.Conditions) + } + if v.IsDefault != nil { + s.WriteBool(schemas.Rule_IsDefault, *v.IsDefault) + } + if v.Priority != nil { + s.WriteString(schemas.Rule_Priority, *v.Priority) + } + if v.RuleArn != nil { + s.WriteString(schemas.Rule_RuleArn, *v.RuleArn) + } + if v.Transforms != nil { + serializeRuleTransformList(s, schemas.Rule_Transforms, v.Transforms) + } +} +func (v *Rule) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.Rule, func(s *smithy.Schema) error { + switch s { + case schemas.Rule_Actions: + return deserializeActions(d, schemas.Rule_Actions, &v.Actions) + case schemas.Rule_Conditions: + return deserializeRuleConditionList(d, schemas.Rule_Conditions, &v.Conditions) + case schemas.Rule_IsDefault: + v.IsDefault = new(bool) + return d.ReadBool(schemas.Rule_IsDefault, v.IsDefault) + case schemas.Rule_Priority: + v.Priority = new(string) + return d.ReadString(schemas.Rule_Priority, v.Priority) + case schemas.Rule_RuleArn: + v.RuleArn = new(string) + return d.ReadString(schemas.Rule_RuleArn, v.RuleArn) + case schemas.Rule_Transforms: + return deserializeRuleTransformList(d, schemas.Rule_Transforms, &v.Transforms) + } + return nil + }) +} + // Information about a condition for a rule. // // Each rule can optionally include up to one of each of the following conditions: @@ -1215,6 +2809,86 @@ type RuleCondition struct { noSmithyDocumentSerde } +func (v *RuleCondition) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RuleCondition) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RuleCondition) SerializeMembers(s smithy.ShapeSerializer) { + if v.Field != nil { + s.WriteString(schemas.RuleCondition_Field, *v.Field) + } + if v.HostHeaderConfig != nil { + s.WriteStruct(schemas.RuleCondition_HostHeaderConfig) + v.HostHeaderConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.HttpHeaderConfig != nil { + s.WriteStruct(schemas.RuleCondition_HttpHeaderConfig) + v.HttpHeaderConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.HttpRequestMethodConfig != nil { + s.WriteStruct(schemas.RuleCondition_HttpRequestMethodConfig) + v.HttpRequestMethodConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.PathPatternConfig != nil { + s.WriteStruct(schemas.RuleCondition_PathPatternConfig) + v.PathPatternConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.QueryStringConfig != nil { + s.WriteStruct(schemas.RuleCondition_QueryStringConfig) + v.QueryStringConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.RegexValues != nil { + serializeListOfString(s, schemas.RuleCondition_RegexValues, v.RegexValues) + } + if v.SourceIpConfig != nil { + s.WriteStruct(schemas.RuleCondition_SourceIpConfig) + v.SourceIpConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.Values != nil { + serializeListOfString(s, schemas.RuleCondition_Values, v.Values) + } +} +func (v *RuleCondition) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RuleCondition, func(s *smithy.Schema) error { + switch s { + case schemas.RuleCondition_Field: + v.Field = new(string) + return d.ReadString(schemas.RuleCondition_Field, v.Field) + case schemas.RuleCondition_HostHeaderConfig: + v.HostHeaderConfig = &HostHeaderConditionConfig{} + return v.HostHeaderConfig.Deserialize(d) + case schemas.RuleCondition_HttpHeaderConfig: + v.HttpHeaderConfig = &HttpHeaderConditionConfig{} + return v.HttpHeaderConfig.Deserialize(d) + case schemas.RuleCondition_HttpRequestMethodConfig: + v.HttpRequestMethodConfig = &HttpRequestMethodConditionConfig{} + return v.HttpRequestMethodConfig.Deserialize(d) + case schemas.RuleCondition_PathPatternConfig: + v.PathPatternConfig = &PathPatternConditionConfig{} + return v.PathPatternConfig.Deserialize(d) + case schemas.RuleCondition_QueryStringConfig: + v.QueryStringConfig = &QueryStringConditionConfig{} + return v.QueryStringConfig.Deserialize(d) + case schemas.RuleCondition_RegexValues: + return deserializeListOfString(d, schemas.RuleCondition_RegexValues, &v.RegexValues) + case schemas.RuleCondition_SourceIpConfig: + v.SourceIpConfig = &SourceIpConditionConfig{} + return v.SourceIpConfig.Deserialize(d) + case schemas.RuleCondition_Values: + return deserializeListOfString(d, schemas.RuleCondition_Values, &v.Values) + } + return nil + }) +} + // Information about the priorities for the rules for a listener. type RulePriorityPair struct { @@ -1227,6 +2901,34 @@ type RulePriorityPair struct { noSmithyDocumentSerde } +func (v *RulePriorityPair) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RulePriorityPair) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RulePriorityPair) SerializeMembers(s smithy.ShapeSerializer) { + if v.Priority != nil { + s.WriteInt32(schemas.RulePriorityPair_Priority, *v.Priority) + } + if v.RuleArn != nil { + s.WriteString(schemas.RulePriorityPair_RuleArn, *v.RuleArn) + } +} +func (v *RulePriorityPair) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RulePriorityPair, func(s *smithy.Schema) error { + switch s { + case schemas.RulePriorityPair_Priority: + v.Priority = new(int32) + return d.ReadInt32(schemas.RulePriorityPair_Priority, v.Priority) + case schemas.RulePriorityPair_RuleArn: + v.RuleArn = new(string) + return d.ReadString(schemas.RulePriorityPair_RuleArn, v.RuleArn) + } + return nil + }) +} + // Information about a transform to apply to requests that match a rule. // Transforms are applied to requests before they are sent to targets. type RuleTransform struct { @@ -1251,6 +2953,48 @@ type RuleTransform struct { noSmithyDocumentSerde } +func (v *RuleTransform) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RuleTransform) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RuleTransform) SerializeMembers(s smithy.ShapeSerializer) { + if v.HostHeaderRewriteConfig != nil { + s.WriteStruct(schemas.RuleTransform_HostHeaderRewriteConfig) + v.HostHeaderRewriteConfig.SerializeMembers(s) + s.CloseStruct() + } + if v.Type != "" { + s.WriteString(schemas.RuleTransform_Type, string(v.Type)) + } + if v.UrlRewriteConfig != nil { + s.WriteStruct(schemas.RuleTransform_UrlRewriteConfig) + v.UrlRewriteConfig.SerializeMembers(s) + s.CloseStruct() + } +} +func (v *RuleTransform) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RuleTransform, func(s *smithy.Schema) error { + switch s { + case schemas.RuleTransform_HostHeaderRewriteConfig: + v.HostHeaderRewriteConfig = &HostHeaderRewriteConfig{} + return v.HostHeaderRewriteConfig.Deserialize(d) + case schemas.RuleTransform_Type: + var ev string + if err := d.ReadString(schemas.RuleTransform_Type, &ev); err != nil { + return err + } + v.Type = TransformTypeEnum(ev) + return nil + case schemas.RuleTransform_UrlRewriteConfig: + v.UrlRewriteConfig = &UrlRewriteConfig{} + return v.UrlRewriteConfig.Deserialize(d) + } + return nil + }) +} + // Information about a source IP condition. // // You can use this condition to route based on the IP address of the source that @@ -1287,6 +3031,37 @@ type SourceIpConditionConfig struct { noSmithyDocumentSerde } +func (v *SourceIpConditionConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.SourceIpConditionConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *SourceIpConditionConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.IpAddressType != "" { + s.WriteString(schemas.SourceIpConditionConfig_IpAddressType, string(v.IpAddressType)) + } + if v.Values != nil { + serializeListOfString(s, schemas.SourceIpConditionConfig_Values, v.Values) + } +} +func (v *SourceIpConditionConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.SourceIpConditionConfig, func(s *smithy.Schema) error { + switch s { + case schemas.SourceIpConditionConfig_IpAddressType: + var ev string + if err := d.ReadString(schemas.SourceIpConditionConfig_IpAddressType, &ev); err != nil { + return err + } + v.IpAddressType = SourceIpAddressTypeEnum(ev) + return nil + case schemas.SourceIpConditionConfig_Values: + return deserializeListOfString(d, schemas.SourceIpConditionConfig_Values, &v.Values) + } + return nil + }) +} + // Information about a policy used for SSL negotiation. type SslPolicy struct { @@ -1305,6 +3080,43 @@ type SslPolicy struct { noSmithyDocumentSerde } +func (v *SslPolicy) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.SslPolicy) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *SslPolicy) SerializeMembers(s smithy.ShapeSerializer) { + if v.Ciphers != nil { + serializeCiphers(s, schemas.SslPolicy_Ciphers, v.Ciphers) + } + if v.Name != nil { + s.WriteString(schemas.SslPolicy_Name, *v.Name) + } + if v.SslProtocols != nil { + serializeSslProtocols(s, schemas.SslPolicy_SslProtocols, v.SslProtocols) + } + if v.SupportedLoadBalancerTypes != nil { + serializeListOfString(s, schemas.SslPolicy_SupportedLoadBalancerTypes, v.SupportedLoadBalancerTypes) + } +} +func (v *SslPolicy) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.SslPolicy, func(s *smithy.Schema) error { + switch s { + case schemas.SslPolicy_Ciphers: + return deserializeCiphers(d, schemas.SslPolicy_Ciphers, &v.Ciphers) + case schemas.SslPolicy_Name: + v.Name = new(string) + return d.ReadString(schemas.SslPolicy_Name, v.Name) + case schemas.SslPolicy_SslProtocols: + return deserializeSslProtocols(d, schemas.SslPolicy_SslProtocols, &v.SslProtocols) + case schemas.SslPolicy_SupportedLoadBalancerTypes: + return deserializeListOfString(d, schemas.SslPolicy_SupportedLoadBalancerTypes, &v.SupportedLoadBalancerTypes) + } + return nil + }) +} + // Information about a subnet mapping. type SubnetMapping struct { @@ -1330,6 +3142,52 @@ type SubnetMapping struct { noSmithyDocumentSerde } +func (v *SubnetMapping) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.SubnetMapping) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *SubnetMapping) SerializeMembers(s smithy.ShapeSerializer) { + if v.AllocationId != nil { + s.WriteString(schemas.SubnetMapping_AllocationId, *v.AllocationId) + } + if v.IPv6Address != nil { + s.WriteString(schemas.SubnetMapping_IPv6Address, *v.IPv6Address) + } + if v.PrivateIPv4Address != nil { + s.WriteString(schemas.SubnetMapping_PrivateIPv4Address, *v.PrivateIPv4Address) + } + if v.SourceNatIpv6Prefix != nil { + s.WriteString(schemas.SubnetMapping_SourceNatIpv6Prefix, *v.SourceNatIpv6Prefix) + } + if v.SubnetId != nil { + s.WriteString(schemas.SubnetMapping_SubnetId, *v.SubnetId) + } +} +func (v *SubnetMapping) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.SubnetMapping, func(s *smithy.Schema) error { + switch s { + case schemas.SubnetMapping_AllocationId: + v.AllocationId = new(string) + return d.ReadString(schemas.SubnetMapping_AllocationId, v.AllocationId) + case schemas.SubnetMapping_IPv6Address: + v.IPv6Address = new(string) + return d.ReadString(schemas.SubnetMapping_IPv6Address, v.IPv6Address) + case schemas.SubnetMapping_PrivateIPv4Address: + v.PrivateIPv4Address = new(string) + return d.ReadString(schemas.SubnetMapping_PrivateIPv4Address, v.PrivateIPv4Address) + case schemas.SubnetMapping_SourceNatIpv6Prefix: + v.SourceNatIpv6Prefix = new(string) + return d.ReadString(schemas.SubnetMapping_SourceNatIpv6Prefix, v.SourceNatIpv6Prefix) + case schemas.SubnetMapping_SubnetId: + v.SubnetId = new(string) + return d.ReadString(schemas.SubnetMapping_SubnetId, v.SubnetId) + } + return nil + }) +} + // Information about a tag. type Tag struct { @@ -1344,6 +3202,34 @@ type Tag struct { noSmithyDocumentSerde } +func (v *Tag) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.Tag) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *Tag) SerializeMembers(s smithy.ShapeSerializer) { + if v.Key != nil { + s.WriteString(schemas.Tag_Key, *v.Key) + } + if v.Value != nil { + s.WriteString(schemas.Tag_Value, *v.Value) + } +} +func (v *Tag) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.Tag, func(s *smithy.Schema) error { + switch s { + case schemas.Tag_Key: + v.Key = new(string) + return d.ReadString(schemas.Tag_Key, v.Key) + case schemas.Tag_Value: + v.Value = new(string) + return d.ReadString(schemas.Tag_Value, v.Value) + } + return nil + }) +} + // The tags associated with a resource. type TagDescription struct { @@ -1356,6 +3242,33 @@ type TagDescription struct { noSmithyDocumentSerde } +func (v *TagDescription) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TagDescription) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TagDescription) SerializeMembers(s smithy.ShapeSerializer) { + if v.ResourceArn != nil { + s.WriteString(schemas.TagDescription_ResourceArn, *v.ResourceArn) + } + if v.Tags != nil { + serializeTagList(s, schemas.TagDescription_Tags, v.Tags) + } +} +func (v *TagDescription) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TagDescription, func(s *smithy.Schema) error { + switch s { + case schemas.TagDescription_ResourceArn: + v.ResourceArn = new(string) + return d.ReadString(schemas.TagDescription_ResourceArn, v.ResourceArn) + case schemas.TagDescription_Tags: + return deserializeTagList(d, schemas.TagDescription_Tags, &v.Tags) + } + return nil + }) +} + // Information about a target. type TargetDescription struct { @@ -1410,6 +3323,46 @@ type TargetDescription struct { noSmithyDocumentSerde } +func (v *TargetDescription) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TargetDescription) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TargetDescription) SerializeMembers(s smithy.ShapeSerializer) { + if v.AvailabilityZone != nil { + s.WriteString(schemas.TargetDescription_AvailabilityZone, *v.AvailabilityZone) + } + if v.Id != nil { + s.WriteString(schemas.TargetDescription_Id, *v.Id) + } + if v.Port != nil { + s.WriteInt32(schemas.TargetDescription_Port, *v.Port) + } + if v.QuicServerId != nil { + s.WriteString(schemas.TargetDescription_QuicServerId, *v.QuicServerId) + } +} +func (v *TargetDescription) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TargetDescription, func(s *smithy.Schema) error { + switch s { + case schemas.TargetDescription_AvailabilityZone: + v.AvailabilityZone = new(string) + return d.ReadString(schemas.TargetDescription_AvailabilityZone, v.AvailabilityZone) + case schemas.TargetDescription_Id: + v.Id = new(string) + return d.ReadString(schemas.TargetDescription_Id, v.Id) + case schemas.TargetDescription_Port: + v.Port = new(int32) + return d.ReadInt32(schemas.TargetDescription_Port, v.Port) + case schemas.TargetDescription_QuicServerId: + v.QuicServerId = new(string) + return d.ReadString(schemas.TargetDescription_QuicServerId, v.QuicServerId) + } + return nil + }) +} + // Information about a target group. type TargetGroup struct { @@ -1487,6 +3440,153 @@ type TargetGroup struct { noSmithyDocumentSerde } +func (v *TargetGroup) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TargetGroup) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TargetGroup) SerializeMembers(s smithy.ShapeSerializer) { + if v.HealthCheckEnabled != nil { + s.WriteBool(schemas.TargetGroup_HealthCheckEnabled, *v.HealthCheckEnabled) + } + if v.HealthCheckIntervalSeconds != nil { + s.WriteInt32(schemas.TargetGroup_HealthCheckIntervalSeconds, *v.HealthCheckIntervalSeconds) + } + if v.HealthCheckPath != nil { + s.WriteString(schemas.TargetGroup_HealthCheckPath, *v.HealthCheckPath) + } + if v.HealthCheckPort != nil { + s.WriteString(schemas.TargetGroup_HealthCheckPort, *v.HealthCheckPort) + } + if v.HealthCheckProtocol != "" { + s.WriteString(schemas.TargetGroup_HealthCheckProtocol, string(v.HealthCheckProtocol)) + } + if v.HealthCheckTimeoutSeconds != nil { + s.WriteInt32(schemas.TargetGroup_HealthCheckTimeoutSeconds, *v.HealthCheckTimeoutSeconds) + } + if v.HealthyThresholdCount != nil { + s.WriteInt32(schemas.TargetGroup_HealthyThresholdCount, *v.HealthyThresholdCount) + } + if v.IpAddressType != "" { + s.WriteString(schemas.TargetGroup_IpAddressType, string(v.IpAddressType)) + } + if v.LoadBalancerArns != nil { + serializeLoadBalancerArns(s, schemas.TargetGroup_LoadBalancerArns, v.LoadBalancerArns) + } + if v.Matcher != nil { + s.WriteStruct(schemas.TargetGroup_Matcher) + v.Matcher.SerializeMembers(s) + s.CloseStruct() + } + if v.Port != nil { + s.WriteInt32(schemas.TargetGroup_Port, *v.Port) + } + if v.Protocol != "" { + s.WriteString(schemas.TargetGroup_Protocol, string(v.Protocol)) + } + if v.ProtocolVersion != nil { + s.WriteString(schemas.TargetGroup_ProtocolVersion, *v.ProtocolVersion) + } + if v.TargetControlPort != nil { + s.WriteInt32(schemas.TargetGroup_TargetControlPort, *v.TargetControlPort) + } + if v.TargetGroupArn != nil { + s.WriteString(schemas.TargetGroup_TargetGroupArn, *v.TargetGroupArn) + } + if v.TargetGroupName != nil { + s.WriteString(schemas.TargetGroup_TargetGroupName, *v.TargetGroupName) + } + if v.TargetType != "" { + s.WriteString(schemas.TargetGroup_TargetType, string(v.TargetType)) + } + if v.UnhealthyThresholdCount != nil { + s.WriteInt32(schemas.TargetGroup_UnhealthyThresholdCount, *v.UnhealthyThresholdCount) + } + if v.VpcId != nil { + s.WriteString(schemas.TargetGroup_VpcId, *v.VpcId) + } +} +func (v *TargetGroup) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TargetGroup, func(s *smithy.Schema) error { + switch s { + case schemas.TargetGroup_HealthCheckEnabled: + v.HealthCheckEnabled = new(bool) + return d.ReadBool(schemas.TargetGroup_HealthCheckEnabled, v.HealthCheckEnabled) + case schemas.TargetGroup_HealthCheckIntervalSeconds: + v.HealthCheckIntervalSeconds = new(int32) + return d.ReadInt32(schemas.TargetGroup_HealthCheckIntervalSeconds, v.HealthCheckIntervalSeconds) + case schemas.TargetGroup_HealthCheckPath: + v.HealthCheckPath = new(string) + return d.ReadString(schemas.TargetGroup_HealthCheckPath, v.HealthCheckPath) + case schemas.TargetGroup_HealthCheckPort: + v.HealthCheckPort = new(string) + return d.ReadString(schemas.TargetGroup_HealthCheckPort, v.HealthCheckPort) + case schemas.TargetGroup_HealthCheckProtocol: + var ev string + if err := d.ReadString(schemas.TargetGroup_HealthCheckProtocol, &ev); err != nil { + return err + } + v.HealthCheckProtocol = ProtocolEnum(ev) + return nil + case schemas.TargetGroup_HealthCheckTimeoutSeconds: + v.HealthCheckTimeoutSeconds = new(int32) + return d.ReadInt32(schemas.TargetGroup_HealthCheckTimeoutSeconds, v.HealthCheckTimeoutSeconds) + case schemas.TargetGroup_HealthyThresholdCount: + v.HealthyThresholdCount = new(int32) + return d.ReadInt32(schemas.TargetGroup_HealthyThresholdCount, v.HealthyThresholdCount) + case schemas.TargetGroup_IpAddressType: + var ev string + if err := d.ReadString(schemas.TargetGroup_IpAddressType, &ev); err != nil { + return err + } + v.IpAddressType = TargetGroupIpAddressTypeEnum(ev) + return nil + case schemas.TargetGroup_LoadBalancerArns: + return deserializeLoadBalancerArns(d, schemas.TargetGroup_LoadBalancerArns, &v.LoadBalancerArns) + case schemas.TargetGroup_Matcher: + v.Matcher = &Matcher{} + return v.Matcher.Deserialize(d) + case schemas.TargetGroup_Port: + v.Port = new(int32) + return d.ReadInt32(schemas.TargetGroup_Port, v.Port) + case schemas.TargetGroup_Protocol: + var ev string + if err := d.ReadString(schemas.TargetGroup_Protocol, &ev); err != nil { + return err + } + v.Protocol = ProtocolEnum(ev) + return nil + case schemas.TargetGroup_ProtocolVersion: + v.ProtocolVersion = new(string) + return d.ReadString(schemas.TargetGroup_ProtocolVersion, v.ProtocolVersion) + case schemas.TargetGroup_TargetControlPort: + v.TargetControlPort = new(int32) + return d.ReadInt32(schemas.TargetGroup_TargetControlPort, v.TargetControlPort) + case schemas.TargetGroup_TargetGroupArn: + v.TargetGroupArn = new(string) + return d.ReadString(schemas.TargetGroup_TargetGroupArn, v.TargetGroupArn) + case schemas.TargetGroup_TargetGroupName: + v.TargetGroupName = new(string) + return d.ReadString(schemas.TargetGroup_TargetGroupName, v.TargetGroupName) + case schemas.TargetGroup_TargetType: + var ev string + if err := d.ReadString(schemas.TargetGroup_TargetType, &ev); err != nil { + return err + } + v.TargetType = TargetTypeEnum(ev) + return nil + case schemas.TargetGroup_UnhealthyThresholdCount: + v.UnhealthyThresholdCount = new(int32) + return d.ReadInt32(schemas.TargetGroup_UnhealthyThresholdCount, v.UnhealthyThresholdCount) + case schemas.TargetGroup_VpcId: + v.VpcId = new(string) + return d.ReadString(schemas.TargetGroup_VpcId, v.VpcId) + } + return nil + }) +} + // Information about a target group attribute. type TargetGroupAttribute struct { @@ -1579,6 +3679,22 @@ type TargetGroupAttribute struct { // range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 // seconds). // + // - waf.http2.traffic_inspection_behavior – Specifies when Amazon Web Services + // WAF inspects HTTP/2 requests. This attribute applies only to target groups that + // use the HTTP2 protocol version. The possible values are: + // + // - inspect_immediately – Inspects each request as soon as data is available. + // This is the default. + // + // - inspect_after_sufficient_data – Accumulates HTTP/2 data frames before + // inspection. + // + // - routing.http2.rst_stream_error_forwarding.enabled – Specifies whether the + // load balancer forwards an HTTP/2 or gRPC target's RST_STREAM error code to the + // client, instead of returning an HTTP 502 (Bad Gateway) response. This attribute + // applies only to target groups that use the HTTP2 or GRPC protocol version. The + // value is true or false . The default is false . + // // The following attribute is supported only if the load balancer is an // Application Load Balancer and the target is a Lambda function: // @@ -1655,6 +3771,34 @@ type TargetGroupAttribute struct { noSmithyDocumentSerde } +func (v *TargetGroupAttribute) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TargetGroupAttribute) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TargetGroupAttribute) SerializeMembers(s smithy.ShapeSerializer) { + if v.Key != nil { + s.WriteString(schemas.TargetGroupAttribute_Key, *v.Key) + } + if v.Value != nil { + s.WriteString(schemas.TargetGroupAttribute_Value, *v.Value) + } +} +func (v *TargetGroupAttribute) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TargetGroupAttribute, func(s *smithy.Schema) error { + switch s { + case schemas.TargetGroupAttribute_Key: + v.Key = new(string) + return d.ReadString(schemas.TargetGroupAttribute_Key, v.Key) + case schemas.TargetGroupAttribute_Value: + v.Value = new(string) + return d.ReadString(schemas.TargetGroupAttribute_Value, v.Value) + } + return nil + }) +} + // Information about the target group stickiness for a rule. type TargetGroupStickinessConfig struct { @@ -1670,6 +3814,34 @@ type TargetGroupStickinessConfig struct { noSmithyDocumentSerde } +func (v *TargetGroupStickinessConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TargetGroupStickinessConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TargetGroupStickinessConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.DurationSeconds != nil { + s.WriteInt32(schemas.TargetGroupStickinessConfig_DurationSeconds, *v.DurationSeconds) + } + if v.Enabled != nil { + s.WriteBool(schemas.TargetGroupStickinessConfig_Enabled, *v.Enabled) + } +} +func (v *TargetGroupStickinessConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TargetGroupStickinessConfig, func(s *smithy.Schema) error { + switch s { + case schemas.TargetGroupStickinessConfig_DurationSeconds: + v.DurationSeconds = new(int32) + return d.ReadInt32(schemas.TargetGroupStickinessConfig_DurationSeconds, v.DurationSeconds) + case schemas.TargetGroupStickinessConfig_Enabled: + v.Enabled = new(bool) + return d.ReadBool(schemas.TargetGroupStickinessConfig_Enabled, v.Enabled) + } + return nil + }) +} + // Information about how traffic will be distributed between multiple target // groups in a forward rule. type TargetGroupTuple struct { @@ -1683,6 +3855,34 @@ type TargetGroupTuple struct { noSmithyDocumentSerde } +func (v *TargetGroupTuple) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TargetGroupTuple) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TargetGroupTuple) SerializeMembers(s smithy.ShapeSerializer) { + if v.TargetGroupArn != nil { + s.WriteString(schemas.TargetGroupTuple_TargetGroupArn, *v.TargetGroupArn) + } + if v.Weight != nil { + s.WriteInt32(schemas.TargetGroupTuple_Weight, *v.Weight) + } +} +func (v *TargetGroupTuple) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TargetGroupTuple, func(s *smithy.Schema) error { + switch s { + case schemas.TargetGroupTuple_TargetGroupArn: + v.TargetGroupArn = new(string) + return d.ReadString(schemas.TargetGroupTuple_TargetGroupArn, v.TargetGroupArn) + case schemas.TargetGroupTuple_Weight: + v.Weight = new(int32) + return d.ReadInt32(schemas.TargetGroupTuple_Weight, v.Weight) + } + return nil + }) +} + // Information about the current health of a target. type TargetHealth struct { @@ -1747,6 +3947,48 @@ type TargetHealth struct { noSmithyDocumentSerde } +func (v *TargetHealth) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TargetHealth) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TargetHealth) SerializeMembers(s smithy.ShapeSerializer) { + if v.Description != nil { + s.WriteString(schemas.TargetHealth_Description, *v.Description) + } + if v.Reason != "" { + s.WriteString(schemas.TargetHealth_Reason, string(v.Reason)) + } + if v.State != "" { + s.WriteString(schemas.TargetHealth_State, string(v.State)) + } +} +func (v *TargetHealth) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TargetHealth, func(s *smithy.Schema) error { + switch s { + case schemas.TargetHealth_Description: + v.Description = new(string) + return d.ReadString(schemas.TargetHealth_Description, v.Description) + case schemas.TargetHealth_Reason: + var ev string + if err := d.ReadString(schemas.TargetHealth_Reason, &ev); err != nil { + return err + } + v.Reason = TargetHealthReasonEnum(ev) + return nil + case schemas.TargetHealth_State: + var ev string + if err := d.ReadString(schemas.TargetHealth_State, &ev); err != nil { + return err + } + v.State = TargetHealthStateEnum(ev) + return nil + } + return nil + }) +} + // Information about the health of a target. type TargetHealthDescription struct { @@ -1772,6 +4014,60 @@ type TargetHealthDescription struct { noSmithyDocumentSerde } +func (v *TargetHealthDescription) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TargetHealthDescription) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TargetHealthDescription) SerializeMembers(s smithy.ShapeSerializer) { + if v.AdministrativeOverride != nil { + s.WriteStruct(schemas.TargetHealthDescription_AdministrativeOverride) + v.AdministrativeOverride.SerializeMembers(s) + s.CloseStruct() + } + if v.AnomalyDetection != nil { + s.WriteStruct(schemas.TargetHealthDescription_AnomalyDetection) + v.AnomalyDetection.SerializeMembers(s) + s.CloseStruct() + } + if v.HealthCheckPort != nil { + s.WriteString(schemas.TargetHealthDescription_HealthCheckPort, *v.HealthCheckPort) + } + if v.Target != nil { + s.WriteStruct(schemas.TargetHealthDescription_Target) + v.Target.SerializeMembers(s) + s.CloseStruct() + } + if v.TargetHealth != nil { + s.WriteStruct(schemas.TargetHealthDescription_TargetHealth) + v.TargetHealth.SerializeMembers(s) + s.CloseStruct() + } +} +func (v *TargetHealthDescription) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TargetHealthDescription, func(s *smithy.Schema) error { + switch s { + case schemas.TargetHealthDescription_AdministrativeOverride: + v.AdministrativeOverride = &AdministrativeOverride{} + return v.AdministrativeOverride.Deserialize(d) + case schemas.TargetHealthDescription_AnomalyDetection: + v.AnomalyDetection = &AnomalyDetection{} + return v.AnomalyDetection.Deserialize(d) + case schemas.TargetHealthDescription_HealthCheckPort: + v.HealthCheckPort = new(string) + return d.ReadString(schemas.TargetHealthDescription_HealthCheckPort, v.HealthCheckPort) + case schemas.TargetHealthDescription_Target: + v.Target = &TargetDescription{} + return v.Target.Deserialize(d) + case schemas.TargetHealthDescription_TargetHealth: + v.TargetHealth = &TargetHealth{} + return v.TargetHealth.Deserialize(d) + } + return nil + }) +} + // Information about a trust store. type TrustStore struct { @@ -1793,6 +4089,56 @@ type TrustStore struct { noSmithyDocumentSerde } +func (v *TrustStore) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TrustStore) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TrustStore) SerializeMembers(s smithy.ShapeSerializer) { + if v.Name != nil { + s.WriteString(schemas.TrustStore_Name, *v.Name) + } + if v.NumberOfCaCertificates != nil { + s.WriteInt32(schemas.TrustStore_NumberOfCaCertificates, *v.NumberOfCaCertificates) + } + if v.Status != "" { + s.WriteString(schemas.TrustStore_Status, string(v.Status)) + } + if v.TotalRevokedEntries != nil { + s.WriteInt64(schemas.TrustStore_TotalRevokedEntries, *v.TotalRevokedEntries) + } + if v.TrustStoreArn != nil { + s.WriteString(schemas.TrustStore_TrustStoreArn, *v.TrustStoreArn) + } +} +func (v *TrustStore) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TrustStore, func(s *smithy.Schema) error { + switch s { + case schemas.TrustStore_Name: + v.Name = new(string) + return d.ReadString(schemas.TrustStore_Name, v.Name) + case schemas.TrustStore_NumberOfCaCertificates: + v.NumberOfCaCertificates = new(int32) + return d.ReadInt32(schemas.TrustStore_NumberOfCaCertificates, v.NumberOfCaCertificates) + case schemas.TrustStore_Status: + var ev string + if err := d.ReadString(schemas.TrustStore_Status, &ev); err != nil { + return err + } + v.Status = TrustStoreStatus(ev) + return nil + case schemas.TrustStore_TotalRevokedEntries: + v.TotalRevokedEntries = new(int64) + return d.ReadInt64(schemas.TrustStore_TotalRevokedEntries, v.TotalRevokedEntries) + case schemas.TrustStore_TrustStoreArn: + v.TrustStoreArn = new(string) + return d.ReadString(schemas.TrustStore_TrustStoreArn, v.TrustStoreArn) + } + return nil + }) +} + // Information about the resources a trust store is associated with. type TrustStoreAssociation struct { @@ -1802,6 +4148,28 @@ type TrustStoreAssociation struct { noSmithyDocumentSerde } +func (v *TrustStoreAssociation) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TrustStoreAssociation) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TrustStoreAssociation) SerializeMembers(s smithy.ShapeSerializer) { + if v.ResourceArn != nil { + s.WriteString(schemas.TrustStoreAssociation_ResourceArn, *v.ResourceArn) + } +} +func (v *TrustStoreAssociation) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TrustStoreAssociation, func(s *smithy.Schema) error { + switch s { + case schemas.TrustStoreAssociation_ResourceArn: + v.ResourceArn = new(string) + return d.ReadString(schemas.TrustStoreAssociation_ResourceArn, v.ResourceArn) + } + return nil + }) +} + // Information about a revocation file in use by a trust store. type TrustStoreRevocation struct { @@ -1820,6 +4188,50 @@ type TrustStoreRevocation struct { noSmithyDocumentSerde } +func (v *TrustStoreRevocation) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TrustStoreRevocation) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TrustStoreRevocation) SerializeMembers(s smithy.ShapeSerializer) { + if v.NumberOfRevokedEntries != nil { + s.WriteInt64(schemas.TrustStoreRevocation_NumberOfRevokedEntries, *v.NumberOfRevokedEntries) + } + if v.RevocationId != nil { + s.WriteInt64(schemas.TrustStoreRevocation_RevocationId, *v.RevocationId) + } + if v.RevocationType != "" { + s.WriteString(schemas.TrustStoreRevocation_RevocationType, string(v.RevocationType)) + } + if v.TrustStoreArn != nil { + s.WriteString(schemas.TrustStoreRevocation_TrustStoreArn, *v.TrustStoreArn) + } +} +func (v *TrustStoreRevocation) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TrustStoreRevocation, func(s *smithy.Schema) error { + switch s { + case schemas.TrustStoreRevocation_NumberOfRevokedEntries: + v.NumberOfRevokedEntries = new(int64) + return d.ReadInt64(schemas.TrustStoreRevocation_NumberOfRevokedEntries, v.NumberOfRevokedEntries) + case schemas.TrustStoreRevocation_RevocationId: + v.RevocationId = new(int64) + return d.ReadInt64(schemas.TrustStoreRevocation_RevocationId, v.RevocationId) + case schemas.TrustStoreRevocation_RevocationType: + var ev string + if err := d.ReadString(schemas.TrustStoreRevocation_RevocationType, &ev); err != nil { + return err + } + v.RevocationType = RevocationType(ev) + return nil + case schemas.TrustStoreRevocation_TrustStoreArn: + v.TrustStoreArn = new(string) + return d.ReadString(schemas.TrustStoreRevocation_TrustStoreArn, v.TrustStoreArn) + } + return nil + }) +} + // Information about a URL rewrite transform. This transform matches a pattern in // the request URL and replaces it with the specified string. type UrlRewriteConfig struct { @@ -1831,6 +4243,27 @@ type UrlRewriteConfig struct { noSmithyDocumentSerde } +func (v *UrlRewriteConfig) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.UrlRewriteConfig) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *UrlRewriteConfig) SerializeMembers(s smithy.ShapeSerializer) { + if v.Rewrites != nil { + serializeRewriteConfigList(s, schemas.UrlRewriteConfig_Rewrites, v.Rewrites) + } +} +func (v *UrlRewriteConfig) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.UrlRewriteConfig, func(s *smithy.Schema) error { + switch s { + case schemas.UrlRewriteConfig_Rewrites: + return deserializeRewriteConfigList(d, schemas.UrlRewriteConfig_Rewrites, &v.Rewrites) + } + return nil + }) +} + // The capacity reservation status for each Availability Zone. type ZonalCapacityReservationState struct { @@ -1846,4 +4279,40 @@ type ZonalCapacityReservationState struct { noSmithyDocumentSerde } +func (v *ZonalCapacityReservationState) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.ZonalCapacityReservationState) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *ZonalCapacityReservationState) SerializeMembers(s smithy.ShapeSerializer) { + if v.AvailabilityZone != nil { + s.WriteString(schemas.ZonalCapacityReservationState_AvailabilityZone, *v.AvailabilityZone) + } + if v.EffectiveCapacityUnits != nil { + s.WriteFloat64(schemas.ZonalCapacityReservationState_EffectiveCapacityUnits, *v.EffectiveCapacityUnits) + } + if v.State != nil { + s.WriteStruct(schemas.ZonalCapacityReservationState_State) + v.State.SerializeMembers(s) + s.CloseStruct() + } +} +func (v *ZonalCapacityReservationState) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.ZonalCapacityReservationState, func(s *smithy.Schema) error { + switch s { + case schemas.ZonalCapacityReservationState_AvailabilityZone: + v.AvailabilityZone = new(string) + return d.ReadString(schemas.ZonalCapacityReservationState_AvailabilityZone, v.AvailabilityZone) + case schemas.ZonalCapacityReservationState_EffectiveCapacityUnits: + v.EffectiveCapacityUnits = new(float64) + return d.ReadFloat64(schemas.ZonalCapacityReservationState_EffectiveCapacityUnits, v.EffectiveCapacityUnits) + case schemas.ZonalCapacityReservationState_State: + v.State = &CapacityReservationStatus{} + return v.State.Deserialize(d) + } + return nil + }) +} + type noSmithyDocumentSerde = smithydocument.NoSerde diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/validators.go b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/validators.go index c5d7b7133..67d4c29c3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/validators.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/validators.go @@ -1171,6 +1171,47 @@ func validateAuthenticateOidcActionConfig(v *types.AuthenticateOidcActionConfig) } } +func validateClientCertificateIdentityFilter(v *types.ClientCertificateIdentityFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ClientCertificateIdentityFilter"} + if len(v.Field) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Field")) + } + if len(v.Action) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("Action")) + } + if len(v.MatchType) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("MatchType")) + } + if v.Value == nil { + invalidParams.Add(smithy.NewErrParamRequired("Value")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateClientCertificateIdentityFilters(v []types.ClientCertificateIdentityFilter) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ClientCertificateIdentityFilters"} + for i := range v { + if err := validateClientCertificateIdentityFilter(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateFixedResponseActionConfig(v *types.FixedResponseActionConfig) error { if v == nil { return nil @@ -1264,6 +1305,23 @@ func validateJwtValidationActionConfig(v *types.JwtValidationActionConfig) error } } +func validateMutualAuthenticationAttributes(v *types.MutualAuthenticationAttributes) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "MutualAuthenticationAttributes"} + if v.ClientCertificateIdentityFilters != nil { + if err := validateClientCertificateIdentityFilters(v.ClientCertificateIdentityFilters); err != nil { + invalidParams.AddNested("ClientCertificateIdentityFilters", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateRedirectActionConfig(v *types.RedirectActionConfig) error { if v == nil { return nil @@ -1512,6 +1570,11 @@ func validateOpCreateListenerInput(v *CreateListenerInput) error { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) } } + if v.MutualAuthentication != nil { + if err := validateMutualAuthenticationAttributes(v.MutualAuthentication); err != nil { + invalidParams.AddNested("MutualAuthentication", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1987,6 +2050,11 @@ func validateOpModifyListenerInput(v *ModifyListenerInput) error { invalidParams.AddNested("DefaultActions", err.(smithy.InvalidParamsError)) } } + if v.MutualAuthentication != nil { + if err := validateMutualAuthenticationAttributes(v.MutualAuthentication); err != nil { + invalidParams.AddNested("MutualAuthentication", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/vendor/github.com/aws/smithy-go/CHANGELOG.md b/vendor/github.com/aws/smithy-go/CHANGELOG.md index 648e978e9..eb2c66315 100644 --- a/vendor/github.com/aws/smithy-go/CHANGELOG.md +++ b/vendor/github.com/aws/smithy-go/CHANGELOG.md @@ -1,3 +1,26 @@ +# Release (2026-11-24) + +## General Highlights +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/smithy-go`: v1.28.10 + * **Bug Fix**: Reduce JSON blob deserialization CPU time and allocations by decoding unescaped base64 directly from the input. + * **Bug Fix**: Return an error when encoding an event stream message too long for its 32-bit length field instead of writing a truncated length. + * **Bug Fix**: Validate event stream message prelude lengths when decoding. + +# Release (2026-11-09) + +## General Highlights +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/smithy-go`: v1.28.9 + * **Bug Fix**: Fix schema serde serializing struct members marked with the SDK-internal NoSerialize trait. + * **Bug Fix**: Fix unions inside lists and maps being serialized with the wrong element names or keys under schema serde for awsQuery and XML protocols. +* `github.com/aws/smithy-go/aws-http-auth`: [v1.2.2](aws-http-auth/CHANGELOG.md#v122-2026-11-09) + * **Bug Fix**: Sort canonical query parameters after URI-encoding them, as required by SigV4. + # Release (2026-11-03) ## General Highlights diff --git a/vendor/github.com/aws/smithy-go/eventstream/encode.go b/vendor/github.com/aws/smithy-go/eventstream/encode.go index f2e37c8b3..269464257 100644 --- a/vendor/github.com/aws/smithy-go/eventstream/encode.go +++ b/vendor/github.com/aws/smithy-go/eventstream/encode.go @@ -61,6 +61,10 @@ func (e *Encoder) Encode(w io.Writer, msg Message) (err error) { return err } + if err = validateMessageLen(uint64(e.headersBuf.Len()), uint64(len(msg.Payload))); err != nil { + return err + } + crc := crc32.New(crc32IEEETable) hashWriter := io.MultiWriter(writer, crc) @@ -111,6 +115,23 @@ func logMessageEncode(logger logging.Logger, msgBuf *bytes.Buffer, msg Message, fmt.Fprintf(w, "Raw message:\n%s\n", hex.Dump(msgBuf.Bytes())) } +// validateMessageLen returns an error if a message with the given headers and +// payload lengths would be longer than maxMsgLen. The sum is computed in 64 +// bits so it cannot wrap the way the prelude's 32-bit length field would. +func validateMessageLen(headersLen, payloadLen uint64) error { + if total := minMsgLen + headersLen + payloadLen; total > maxMsgLen { + // Convert through a variable: int(maxMsgLen) would fail to compile on + // 32-bit systems, where the constant overflows int. + maxLen := uint64(maxMsgLen) + return LengthError{ + Part: "message", + Want: int(maxLen), + Have: int(total), + } + } + return nil +} + func encodePrelude(w io.Writer, crc hash.Hash32, headersLen, payloadLen uint32) error { p := messagePrelude{ Length: minMsgLen + headersLen + payloadLen, diff --git a/vendor/github.com/aws/smithy-go/eventstream/message.go b/vendor/github.com/aws/smithy-go/eventstream/message.go index 1a77654f7..e381d9166 100644 --- a/vendor/github.com/aws/smithy-go/eventstream/message.go +++ b/vendor/github.com/aws/smithy-go/eventstream/message.go @@ -4,6 +4,7 @@ import ( "bytes" "encoding/binary" "hash/crc32" + "math" ) const preludeLen = 8 @@ -11,6 +12,11 @@ const preludeCRCLen = 4 const msgCRCLen = 4 const minMsgLen = preludeLen + preludeCRCLen + msgCRCLen +// maxMsgLen is the largest total message length that the prelude's 32-bit +// length field can hold. It is a limit of the wire format, not a size policy; +// headers and payload together can be at most maxMsgLen-minMsgLen bytes. +const maxMsgLen = math.MaxUint32 + var crc32IEEETable = crc32.MakeTable(crc32.IEEE) // A Message provides the eventstream message representation. @@ -78,14 +84,25 @@ func (p messagePrelude) PayloadLen() uint32 { return p.Length - p.HeadersLen - minMsgLen } +// ValidateLens checks that the prelude's total and headers lengths are +// consistent before they are used to read the rest of the message. Without +// these checks PayloadLen would underflow for a total length below +// HeadersLen+minMsgLen. func (p messagePrelude) ValidateLens() error { - if p.Length == 0 { + if p.Length < minMsgLen { return LengthError{ Part: "message prelude", Want: minMsgLen, Have: int(p.Length), } } + if p.HeadersLen > p.Length-minMsgLen { + return LengthError{ + Part: "message headers", + Want: int(p.Length - minMsgLen), + Have: int(p.HeadersLen), + } + } return nil } diff --git a/vendor/github.com/aws/smithy-go/go_module_metadata.go b/vendor/github.com/aws/smithy-go/go_module_metadata.go index f3cfc2703..5ccdf5bb7 100644 --- a/vendor/github.com/aws/smithy-go/go_module_metadata.go +++ b/vendor/github.com/aws/smithy-go/go_module_metadata.go @@ -3,4 +3,4 @@ package smithy // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.8" +const goModuleVersion = "1.28.10" diff --git a/vendor/github.com/aws/smithy-go/transport/http/protocol/awsquery/awsquery.go b/vendor/github.com/aws/smithy-go/transport/http/protocol/awsquery/awsquery.go new file mode 100644 index 000000000..a630f0653 --- /dev/null +++ b/vendor/github.com/aws/smithy-go/transport/http/protocol/awsquery/awsquery.go @@ -0,0 +1,188 @@ +package awsquery + +import ( + "bytes" + "context" + "fmt" + "io" + "net/http" + + "github.com/aws/smithy-go" + internales "github.com/aws/smithy-go/internal/eventstream" + internalsync "github.com/aws/smithy-go/internal/sync" + "github.com/aws/smithy-go/traits" + smithyhttp "github.com/aws/smithy-go/transport/http" + internalquery "github.com/aws/smithy-go/transport/http/protocol/internal/query" + internalxml "github.com/aws/smithy-go/transport/http/protocol/internal/xml" +) + +// ProtocolOptions configures aws.protocols#awsQuery. +type ProtocolOptions struct{} + +// Protocol implements aws.protocols#awsQuery. +type Protocol struct { + eventstream internales.NoEventStream + + version string + + bufs *internalsync.BufferPool +} + +var _ smithyhttp.ClientProtocol = (*Protocol)(nil) + +// New returns an instance of the awsQuery protocol. The service version is +// pulled from the ServiceVersion trait on the service schema. +func New(service *smithy.ServiceSchema, opts ...func(*ProtocolOptions)) *Protocol { + var o ProtocolOptions + for _, fn := range opts { + fn(&o) + } + return &Protocol{version: service.Version, bufs: internalsync.NewBufferPool()} +} + +// ID identifies the protocol. +func (*Protocol) ID() smithy.ShapeID { + return smithy.ShapeID{Namespace: "aws.protocols", Name: "awsQuery"} +} + +// HasInitialEventMessage implements [smithyhttp.ClientProtocol]. +func (p *Protocol) HasInitialEventMessage() bool { + return p.eventstream.HasInitialEventMessage() +} + +// SerializeEventMessage implements [smithyhttp.ClientProtocol]. +func (p *Protocol) SerializeEventMessage(schema, variant *smithy.Schema, v smithy.Serializable, w io.Writer) error { + return p.eventstream.SerializeEventMessage(schema, variant, v, w) +} + +// DeserializeEventMessage implements [smithyhttp.ClientProtocol]. +func (p *Protocol) DeserializeEventMessage(schema *smithy.Schema, types *smithy.TypeRegistry, r io.Reader) (smithy.Deserializable, error) { + return p.eventstream.DeserializeEventMessage(schema, types, r) +} + +// SerializeInitialRequest implements [smithyhttp.ClientProtocol]. +func (p *Protocol) SerializeInitialRequest(schema *smithy.Schema, v smithy.Serializable, w io.Writer) error { + return p.eventstream.SerializeInitialRequest(schema, v, w) +} + +// DeserializeInitialResponse implements [smithyhttp.ClientProtocol]. +func (p *Protocol) DeserializeInitialResponse(schema *smithy.Schema, r io.Reader, out smithy.Deserializable) error { + return p.eventstream.DeserializeInitialResponse(schema, r, out) +} + +// SerializeRequest serializes a request for awsQuery. +func (p *Protocol) SerializeRequest( + ctx context.Context, + schema *smithy.OperationSchema, + in smithy.Serializable, + req *smithyhttp.Request, +) error { + req.Method = http.MethodPost + req.Header.Set("Content-Type", "application/x-www-form-urlencoded") + if len(req.URL.Path) == 0 { + req.URL.Path = "/" + } + + ss := internalquery.NewShapeSerializer(schema.ID().Name, p.version) + if schema.Input != nil { + in.Serialize(ss) + } + + sreq, err := req.SetStream(bytes.NewReader(ss.Bytes())) + if err != nil { + return fmt.Errorf("set stream: %w", err) + } + + *req = *sreq + return nil +} + +// DeserializeResponse deserializes a response for awsQuery. +func (p *Protocol) DeserializeResponse( + ctx context.Context, + schema *smithy.OperationSchema, + types *smithy.TypeRegistry, + resp *smithyhttp.Response, + out smithy.Deserializable, +) error { + if resp.StatusCode < 200 || resp.StatusCode >= 300 { + return p.deserializeError(types, resp) + } + + // NOTE: payload aliases the pooled buffer, which is reused for the next + // response, so nothing may retain a reference into it past this call. + buf, err := p.bufs.Get(resp.Body) + if err != nil { + return &smithy.DeserializationError{Err: err} + } + defer p.bufs.Put(buf) + + payload := buf.Bytes() + + if len(payload) == 0 { + return nil + } + + sd, err := internalxml.NewShapeDeserializerAtElement(payload, schema.ID().Name+"Result") + if err != nil { + if schema.Output == nil { + return nil + } + return &smithy.DeserializationError{Err: err} + } + + return out.Deserialize(sd) +} + +func (p *Protocol) deserializeError(types *smithy.TypeRegistry, resp *smithyhttp.Response) error { + payload, err := io.ReadAll(resp.Body) + if err != nil { + return &smithy.DeserializationError{Err: err} + } + + errorCode, errorMessage, errorBody, err := internalxml.GetProtocolErrorInfo(payload) + if err != nil { + return &smithy.DeserializationError{Err: err} + } + + // resolveError checks both direct shape name and @awsQueryError trait. + perr, ok := resolveError(types, errorCode) + if !ok { + return &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + } + + if len(errorBody) > 0 { + sd := internalxml.NewShapeDeserializer(errorBody) + if err := perr.Deserialize(sd); err != nil { + return &smithy.DeserializationError{Err: err} + } + } + + return perr +} + +func resolveError(types *smithy.TypeRegistry, code string) (smithy.DeserializableError, bool) { + if perr, ok := types.DeserializableError(code); ok { + return perr, true + } + + for _, entry := range types.Entries { + if entry.Schema == nil { + continue + } + + if t, ok := smithy.SchemaTrait[*traits.AWSQueryError](entry.Schema); ok { + if t.ErrorCode == code { + v := entry.New() + if perr, ok := v.(smithy.DeserializableError); ok { + return perr, true + } + } + } + } + + return nil, false +} diff --git a/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/json/shape_deserializer.go b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/json/shape_deserializer.go index 47e9561b3..98ca74a7c 100644 --- a/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/json/shape_deserializer.go +++ b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/json/shape_deserializer.go @@ -355,12 +355,18 @@ func (d *ShapeDeserializer) ReadBlob(s *smithy.Schema, v *[]byte) error { return fmt.Errorf("expected string, got %s", tok) } - sv, err := unquote(tok) - if err != nil { - return err + encoded := tok[1 : len(tok)-1] + // The parser already checked for escapes. Unescaped base64 can be + // decoded without another scan or a temporary string copy. + if d.p.escaped { + var ok bool + encoded, ok = stdlib.UnquoteBytes(tok) + if !ok { + return fmt.Errorf("cannot unquote %s", tok) + } } - b, err := base64.StdEncoding.DecodeString(sv) + b, err := base64.StdEncoding.AppendDecode([]byte{}, encoded) if err != nil { return fmt.Errorf("decode base64 blob: %w", err) } diff --git a/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/query/shape_deserializer.go b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/query/shape_deserializer.go new file mode 100644 index 000000000..179ab3d4c --- /dev/null +++ b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/query/shape_deserializer.go @@ -0,0 +1,4 @@ +package query + +// ShapeDeserializer doesn't exist for query. The awsquery and ec2query +// protocols use XML responses. diff --git a/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/query/shape_serializer.go b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/query/shape_serializer.go new file mode 100644 index 000000000..7ea57c4a1 --- /dev/null +++ b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/query/shape_serializer.go @@ -0,0 +1,509 @@ +package query + +import ( + "encoding/base64" + "math" + "math/big" + "net/url" + "sort" + "strconv" + "strings" + "time" + + "github.com/aws/smithy-go" + "github.com/aws/smithy-go/document" + "github.com/aws/smithy-go/internal/serde" + smithytime "github.com/aws/smithy-go/time" + "github.com/aws/smithy-go/traits" +) + +type ctxKind byte + +const ( + ctxKindList ctxKind = iota + ctxKindMap + ctxKindMapValue + ctxKindStruct + + ctxKindNone ctxKind = 0xff +) + +type serCtx struct { + kind ctxKind + flattened bool + prefix string // popped back onto s.currPrefix as you pop out the stack + + listIndex int + listPrefix string + + mapIndex int + mapKeyName string + mapValueName string + mapBuf []mapBufEntry +} + +// ShapeSerializer serializes Smithy shapes to the AWS query string format. +type ShapeSerializer struct { + opts ShapeSerializerOptions + + values url.Values + stack serde.Stack[serCtx] + currPrefix string // runs as values are written e.g. for list +} + +type mapBufEntry struct { + prefix string + key string + values []kv +} + +type kv struct { + k, v string +} + +// ShapeSerializerOptions configures a ShapeSerializer. +type ShapeSerializerOptions struct { + // Adjusts serialization for the ec2Query protocol: + // - Member names resolve via @ec2QueryName, then @xmlName + // capitalized, then member name capitalized (instead of @xmlName + // or member name as-is). + // - All lists serialize as flat regardless of @xmlFlattened. + // - Empty lists are omitted (instead of emitting a "Key=" sentinel). + EC2Mode bool +} + +var _ smithy.ShapeSerializer = (*ShapeSerializer)(nil) + +// NewShapeSerializer returns a new ShapeSerializer. +func NewShapeSerializer(action, version string, opts ...func(*ShapeSerializerOptions)) *ShapeSerializer { + o := ShapeSerializerOptions{} + for _, fn := range opts { + fn(&o) + } + v := url.Values{} + v.Set("Action", action) + v.Set("Version", version) + return &ShapeSerializer{values: v, stack: serde.NewStack[serCtx](), opts: o} +} + +// Bytes returns the encoded query string as bytes. +func (s *ShapeSerializer) Bytes() []byte { + keys := make([]string, 0, len(s.values)) + for k := range s.values { + keys = append(keys, k) + } + sort.Strings(keys) + + var buf strings.Builder + for _, k := range keys { + for _, v := range s.values[k] { + if buf.Len() > 0 { + buf.WriteByte('&') + } + buf.WriteString(url.QueryEscape(k)) + buf.WriteByte('=') + buf.WriteString(url.QueryEscape(v)) + } + } + return []byte(buf.String()) +} + +func (s *ShapeSerializer) top() ctxKind { + t := s.stack.Top() + if t == nil { + return ctxKindNone + } + return t.kind +} + +func (s *ShapeSerializer) memberName(schema *smithy.Schema) string { + if s.opts.EC2Mode { + return ec2MemberName(schema) + } + if xn, ok := smithy.SchemaTrait[*traits.XMLName](schema); ok { + return xn.Name + } + return schema.MemberName() +} + +func (s *ShapeSerializer) appendMemberPrefix(schema *smithy.Schema) { + name := s.memberName(schema) + if name == "" { + return + } + if s.currPrefix != "" { + s.currPrefix = s.currPrefix + "." + name + } else { + s.currPrefix = name + } +} + +// nexus point (alongside writeValue) through which basically every write flows +// to handle putting the appropriate prefix in place +func (s *ShapeSerializer) resolveKey(schema *smithy.Schema) string { + switch s.top() { + case ctxKindMapValue: + valPrefix := s.consumeMapValue() + return valPrefix + case ctxKindList: + ctx := s.stack.Top() + ctx.listIndex++ + return s.currPrefix + "." + strconv.Itoa(ctx.listIndex) + default: + name := s.memberName(schema) + if name == "" { + return s.currPrefix + } + if s.currPrefix == "" { + return name + } + return s.currPrefix + "." + name + } +} + +func (s *ShapeSerializer) writeValue(key, value string) { + if s.bufferMapEntry(key, value) { + return + } + + s.values.Add(key, value) +} + +func (s *ShapeSerializer) bufferMapEntry(key, value string) bool { + vals := s.stack.Values() + for i := len(vals) - 1; i >= 0; i-- { + ctx := &vals[i] + if ctx.kind != ctxKindMap { + continue + } + if len(ctx.mapBuf) == 0 { + return false + } + + entry := &ctx.mapBuf[len(ctx.mapBuf)-1] + suffix := strings.TrimPrefix(key, entry.prefix) + entry.values = append(entry.values, kv{k: suffix, v: value}) + return true + } + + return false +} + +// WriteBool implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteBool(schema *smithy.Schema, v bool) { + if v { + s.writeValue(s.resolveKey(schema), "true") + } else { + s.writeValue(s.resolveKey(schema), "false") + } +} + +// WriteInt8 implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteInt8(schema *smithy.Schema, v int8) { writeInt(s, schema, v) } + +// WriteInt16 implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteInt16(schema *smithy.Schema, v int16) { writeInt(s, schema, v) } + +// WriteInt32 implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteInt32(schema *smithy.Schema, v int32) { writeInt(s, schema, v) } + +// WriteInt64 implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteInt64(schema *smithy.Schema, v int64) { writeInt(s, schema, v) } + +// WriteFloat32 implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteFloat32(schema *smithy.Schema, v float32) { writeFloat(s, schema, v) } + +// WriteFloat64 implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteFloat64(schema *smithy.Schema, v float64) { writeFloat(s, schema, v) } + +func writeInt[T int8 | int16 | int32 | int64](s *ShapeSerializer, schema *smithy.Schema, v T) { + s.writeValue(s.resolveKey(schema), strconv.FormatInt(int64(v), 10)) +} + +func writeFloat[T float32 | float64](s *ShapeSerializer, schema *smithy.Schema, v T) { + s.writeValue(s.resolveKey(schema), formatFloat(float64(v))) +} + +func formatFloat(v float64) string { + switch { + case math.IsInf(v, 1): + return "Infinity" + case math.IsInf(v, -1): + return "-Infinity" + case math.IsNaN(v): + return "NaN" + default: + return strconv.FormatFloat(v, 'f', -1, 64) + } +} + +// WriteString implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteString(schema *smithy.Schema, v string) { + s.writeValue(s.resolveKey(schema), v) +} + +// WriteBlob implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteBlob(schema *smithy.Schema, v []byte) { + if v == nil { + return + } + + s.writeValue(s.resolveKey(schema), base64.StdEncoding.EncodeToString(v)) +} + +// WriteTime implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteTime(schema *smithy.Schema, v time.Time) { + format := "date-time" + if t, ok := smithy.SchemaTrait[*traits.TimestampFormat](schema); ok { + format = t.Format + } + + var sv string + switch format { + case "date-time": + sv = smithytime.FormatDateTime(v) + case "http-date": + sv = smithytime.FormatHTTPDate(v) + case "epoch-seconds": + sv = strconv.FormatFloat(smithytime.FormatEpochSeconds(v), 'f', -1, 64) + default: + sv = smithytime.FormatDateTime(v) + } + + s.writeValue(s.resolveKey(schema), sv) +} + +// WriteStruct implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteStruct(schema *smithy.Schema) { + saved := s.currPrefix + switch s.top() { + case ctxKindMapValue: + valPrefix := s.consumeMapValue() + s.currPrefix, saved = valPrefix, s.currPrefix + case ctxKindList: + ctx := s.stack.Top() + ctx.listIndex++ + s.currPrefix = s.currPrefix + "." + strconv.Itoa(ctx.listIndex) + default: + s.appendMemberPrefix(schema) + } + + s.stack.Push(serCtx{kind: ctxKindStruct, prefix: saved}) +} + +// CloseStruct implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) CloseStruct() { + ctx := s.stack.Pop() + s.currPrefix = ctx.prefix +} + +// WriteUnion implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteUnion(schema, variant *smithy.Schema) { + saved := s.currPrefix + switch s.top() { + case ctxKindMapValue: + valPrefix := s.consumeMapValue() + s.currPrefix, saved = valPrefix, s.currPrefix + case ctxKindList: + ctx := s.stack.Top() + ctx.listIndex++ + s.currPrefix = s.currPrefix + "." + strconv.Itoa(ctx.listIndex) + default: + s.appendMemberPrefix(schema) + } + + s.stack.Push(serCtx{kind: ctxKindNone, prefix: saved}) +} + +// CloseUnion implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) CloseUnion() { + ctx := s.stack.Pop() + s.currPrefix = ctx.prefix +} + +// WriteNil implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteNil(_ *smithy.Schema) { + if s.top() == ctxKindMapValue { + s.consumeMapValue() + } +} + +// enterContainer handles the prefix setup common to WriteList and WriteMap. +// It returns the prefix to save for restoration on close. +func (s *ShapeSerializer) enterContainer(schema *smithy.Schema) string { + saved := s.currPrefix + switch s.top() { + case ctxKindMapValue: + // WriteKey set s.prefix to the value path and pushed ctxMapValue + // with the map prefix. Pop ctxMapValue and use its saved prefix + // as the restore point — s.prefix (the value path) is already + // the correct working prefix. + ctx := s.stack.Pop() + saved = ctx.prefix + return saved + case ctxKindList: + ctx := s.stack.Top() + ctx.listIndex++ + s.currPrefix = s.currPrefix + "." + strconv.Itoa(ctx.listIndex) + } + + s.appendMemberPrefix(schema) + return saved +} + +// WriteList implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteList(schema *smithy.Schema) { + saved := s.enterContainer(schema) + + _, flattened := smithy.SchemaTrait[*traits.XMLFlattened](schema) + flattened = flattened || s.opts.EC2Mode + + listPrefix := s.currPrefix + if !flattened { + locName := "member" + if schema != nil { + if lm := schema.ListMember(); lm != nil { + if xn, ok := smithy.SchemaTrait[*traits.XMLName](lm); ok { + locName = xn.Name + } + } + } + s.currPrefix = s.currPrefix + "." + locName + } + + s.stack.Push(serCtx{ + kind: ctxKindList, + flattened: flattened, + prefix: saved, + listPrefix: listPrefix, + }) +} + +// CloseList implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) CloseList() { + if s.top() != ctxKindList { + return + } + + ctx := s.stack.Pop() + if ctx.listIndex == 0 && !s.opts.EC2Mode { + s.writeValue(ctx.listPrefix, "") + } + + s.currPrefix = ctx.prefix +} + +// WriteMap implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteMap(schema *smithy.Schema) { + saved := s.enterContainer(schema) + + _, flattened := smithy.SchemaTrait[*traits.XMLFlattened](schema) + if !flattened { + s.currPrefix = s.currPrefix + ".entry" + } + + keyLoc, valLoc := "key", "value" + if schema != nil { + if mk := schema.MapKey(); mk != nil { + if xn, ok := smithy.SchemaTrait[*traits.XMLName](mk); ok { + keyLoc = xn.Name + } + } + if mv := schema.MapValue(); mv != nil { + if xn, ok := smithy.SchemaTrait[*traits.XMLName](mv); ok { + valLoc = xn.Name + } + } + } + + s.stack.Push(serCtx{ + kind: ctxKindMap, + flattened: flattened, + prefix: saved, + mapKeyName: keyLoc, + mapValueName: valLoc, + }) +} + +// WriteKey implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteKey(_ *smithy.Schema, key string) { + ctx := s.stack.Top() + ctx.mapIndex++ + + prefix := s.currPrefix + "." + strconv.Itoa(ctx.mapIndex) + ctx.mapBuf = append(ctx.mapBuf, mapBufEntry{ + prefix: prefix, + key: key, + }) + + s.writeValue(prefix+"."+ctx.mapKeyName, key) + + // Push ctxMapValue with the current prefix so the next value write can + // restore it. Set s.prefix to the value path. + s.stack.Push(serCtx{kind: ctxKindMapValue, prefix: s.currPrefix}) + s.currPrefix = prefix + "." + ctx.mapValueName +} + +// CloseMap implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) CloseMap() { + if s.top() != ctxKindMap { + return + } + + ctx := s.stack.Pop() + + // Sort entries by map key for deterministic output. + sort.Slice(ctx.mapBuf, func(i, j int) bool { + return ctx.mapBuf[i].key < ctx.mapBuf[j].key + }) + + // Flush with sequential indices. + for i, entry := range ctx.mapBuf { + newPrefix := s.currPrefix + "." + strconv.Itoa(i+1) + for _, kv := range entry.values { + s.writeValue(newPrefix+kv.k, kv.v) + } + } + + s.currPrefix = ctx.prefix +} + +// WriteBigInt is unimplemented. +func (s *ShapeSerializer) WriteBigInt(_ *smithy.Schema, _ *big.Int) { + panic("query: BigInteger not supported") +} + +// WriteBigFloat is unimplemented. +func (s *ShapeSerializer) WriteBigFloat(_ *smithy.Schema, _ *big.Float) { + panic("query: BigDecimal not supported") +} + +// WriteDocument is unimplemented. +func (s *ShapeSerializer) WriteDocument(_ *smithy.Schema, _ document.Value) { + panic("query: Document not supported") +} + +func (s *ShapeSerializer) consumeMapValue() string { + ctx := s.stack.Pop() + valPrefix := s.currPrefix + s.currPrefix = ctx.prefix + return valPrefix +} + +func ec2MemberName(schema *smithy.Schema) string { + if t, ok := smithy.SchemaTrait[*traits.EC2QueryName](schema); ok { + return t.Name + } + if xn, ok := smithy.SchemaTrait[*traits.XMLName](schema); ok { + return capitalize(xn.Name) + } + return capitalize(schema.MemberName()) +} + +func capitalize(s string) string { + if s == "" || s[0] >= 'A' && s[0] <= 'Z' { + return s + } + + return string(s[0]-'a'+'A') + s[1:] +} diff --git a/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/element_name.go b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/element_name.go new file mode 100644 index 000000000..61a778f30 --- /dev/null +++ b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/element_name.go @@ -0,0 +1,77 @@ +package xml + +import ( + "github.com/aws/smithy-go" + "github.com/aws/smithy-go/traits" +) + +// Unlike json which has a sane recursive data model, the xml serializer at its +// core operates by writing ... except what ename is supposed to +// be depends on a handful of different factors based on serialization context +// and traits. The helpers here attempt to solve that in the most +// straightforward way possible. + +// base resolver for element names +func (s *ShapeSerializer) ename(schema *smithy.Schema) string { + // DIRECT only, if a member does not have an @xmlName but its target does, + // we don't use the one on the target + if t, ok := smithy.SchemaDirectTrait[*traits.XMLName](schema); ok { + return t.Name + } else if s.stack.Len() == 0 { // the root + return schema.ID().Name + } + + return schema.MemberName() +} + +// wraps ename to check for the context of "am i in a list or map" +func (s *ShapeSerializer) ctxEname(schema *smithy.Schema) string { + if top := s.stack.Top(); top != nil { + switch top.kind { + case ctxKindList: + return top.itemName + case ctxKindMap: + if top.inMapEntry { + return s.ename(top.schema.MapValue()) + } + } + } + + return s.ename(schema) +} + +// structs with @httpPayload are special, preferring in order: +// - member/target @xmlName +// - target shape name +// +// otherwise just use context-based name +func (s *ShapeSerializer) structEname(schema *smithy.Schema) string { + if isPayload(schema) { + if t, ok := smithy.SchemaTrait[*traits.XMLName](schema); ok { + return t.Name + } + return schema.TargetID().Name + } + + return s.ctxEname(schema) +} + +// resolution for @xmlNamespace, which is generally sane +func (s *ShapeSerializer) xmlns(schema *smithy.Schema) *traits.XMLNamespace { + if top := s.stack.Top(); top != nil { + switch { + case top.flat && (top.kind == ctxKindList || top.kind == ctxKindMap): + // flattened lists/maps have no wrapper, inherit the + // collection's namespace if the member doesn't have its own + if _, ok := smithy.SchemaDirectTrait[*traits.XMLNamespace](schema); !ok { + ns, _ := smithy.SchemaDirectTrait[*traits.XMLNamespace](top.schema) + return ns + } + case top.kind == ctxKindMap && !top.inMapEntry: + return nil + } + } + + ns, _ := smithy.SchemaDirectTrait[*traits.XMLNamespace](schema) + return ns +} diff --git a/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/error.go b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/error.go new file mode 100644 index 000000000..366cf491d --- /dev/null +++ b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/error.go @@ -0,0 +1,38 @@ +package xml + +import "encoding/xml" + +type protocolError struct { + Code string `xml:"Code"` + Message string `xml:"Message"` +} + +// GetProtocolErrorInfo extracts Smithy error details from a query-protocol +// response. +// +// This version of GetProtocolErrorInfo also handles the extraction of the +// modeled error body from the protocol wrapper so the caller can operate on it +// directly. +func GetProtocolErrorInfo(payload []byte) (code, message string, errorBody []byte, err error) { + code = "UnknownError" + message = code + + errorBody, err = ExtractElement(payload, "Error") + if err != nil || len(errorBody) == 0 { + return + } + + var errinf protocolError + if err = xml.Unmarshal(errorBody, &errinf); err != nil { + return + } + + err = nil + if len(errinf.Code) > 0 { + code = errinf.Code + } + if len(errinf.Message) > 0 { + message = errinf.Message + } + return +} diff --git a/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/extract.go b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/extract.go new file mode 100644 index 000000000..6d6bed8cd --- /dev/null +++ b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/extract.go @@ -0,0 +1,77 @@ +package xml + +import ( + "bytes" + "encoding/xml" + "strings" +) + +// ExtractElement finds the first occurrence of the named element in the XML +// and returns it as raw bytes, including the element's opening and closing +// tags. +// +// This is used to extract both success and error responses from the protocol +// XML that wraps them. +// +// For example for awsquery, with an operation output shape named +// XmlListsResult: +// +// +// +// foo +// ... +// +// +// +// ExtractElement(payload, "XmlListsResult") yields: +// +// foo... +// +// ExtractElement will forward the io.EOF returned by the underlying decoder +// if the target element is not found, which the caller can index on if +// they're looking for an optional element. +func ExtractElement(payload []byte, name string) ([]byte, error) { + dec := xml.NewDecoder(bytes.NewReader(payload)) + for { + tok, err := dec.Token() + if err != nil { + return nil, err + } + + start, ok := tok.(xml.StartElement) + if !ok || !strings.EqualFold(start.Name.Local, name) { + continue + } + + var buf bytes.Buffer + enc := xml.NewEncoder(&buf) + if err := enc.EncodeToken(start); err != nil { + return nil, err + } + if err := enc.Flush(); err != nil { + return nil, err + } + + depth := 1 + for depth > 0 { + tok, err := dec.Token() + if err != nil { + return nil, err + } + if err := enc.EncodeToken(tok); err != nil { + return nil, err + } + switch tok.(type) { + case xml.StartElement: + depth++ + case xml.EndElement: + depth-- + } + } + + if err := enc.Flush(); err != nil { + return nil, err + } + return buf.Bytes(), nil + } +} diff --git a/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/shape_deserializer.go b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/shape_deserializer.go new file mode 100644 index 000000000..fce836249 --- /dev/null +++ b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/shape_deserializer.go @@ -0,0 +1,760 @@ +package xml + +import ( + "bytes" + "encoding/base64" + "encoding/xml" + "fmt" + "math" + "math/big" + "strconv" + "strings" + "time" + + "github.com/aws/smithy-go" + "github.com/aws/smithy-go/document" + "github.com/aws/smithy-go/internal/serde" + smithytime "github.com/aws/smithy-go/time" + "github.com/aws/smithy-go/traits" +) + +type ctxKind byte + +const ( + ctxKindStruct ctxKind = iota + ctxKindList + ctxKindMap + ctxKindUnion +) + +type deserCtx struct { + kind ctxKind + schema *smithy.Schema + flattened bool + + startElem xml.StartElement // cached to read @xmlAttributes + attrIndex int + + // for flattened list/map, ReadStructMember consumes the start element + // when it discovers the member, subsequent calls to ReadMapKey or + // ReadListItem will do that instead + first bool + + // for map, ReadX after ReadMapKey will leave the stream at + // which the next call to ReadMapKey must consume + inMapEntry bool +} + +// ShapeDeserializer implements unmarshaling of XML into Smithy shapes. +// +// ShapeDeserializer consumes whole XML — the payload handed to +// NewShapeDeserializer must include the outermost tag that opens the shape +// being read. This is because the deserializer retains the outer +// StartElement so @xmlAttribute members can draw from its attributes. +// +// For example, an awsquery response body looks like this: +// +// <[OperationName]Response> +// <[OperationName]Result> +// ... +// ... +// ... +// ... +// +// +// ... +// +// +// +// The deserializer must receive the Result element including its opening +// and closing tags — that is: +// +// <[OperationName]Result> +// ... +// ... +// ... +// +// +// The outer Response wrapper must not be included. +type ShapeDeserializer struct { + dec *xml.Decoder + peeked xml.Token + stack serde.Stack[deserCtx] + + // most recent start element we saw in the token stream, when we go into a + // struct context we grab it so we can read any @xmlAttributes + currStart *xml.StartElement + currAttr *string +} + +var _ smithy.ShapeDeserializer = (*ShapeDeserializer)(nil) + +// NewShapeDeserializer returns a new ShapeDeserializer. +func NewShapeDeserializer(p []byte) *ShapeDeserializer { + return &ShapeDeserializer{ + dec: xml.NewDecoder(bytes.NewReader(p)), + stack: serde.NewStack[deserCtx](), + } +} + +// NewShapeDeserializerAtElement scans payload for the first element named +// `name` and returns a ShapeDeserializer positioned to read that element as +// its opening tag. Used for protocols that have an arbitrary nesting of their +// modeled output shape in the wire response body. +// +// It forwards the underlying decoder's error, notably io.EOF, when the named +// element is not found. +func NewShapeDeserializerAtElement(payload []byte, name string) (*ShapeDeserializer, error) { + dec := xml.NewDecoder(bytes.NewReader(payload)) + for { + tok, err := dec.Token() + if err != nil { + return nil, err + } + + start, ok := tok.(xml.StartElement) + if !ok || !strings.EqualFold(start.Name.Local, name) { + continue + } + + return &ShapeDeserializer{ + dec: dec, + currStart: &start, + stack: serde.NewStack[deserCtx](), + }, nil + } +} + +func xmlMemberName(schema *smithy.Schema) string { + if t, ok := smithy.SchemaDirectTrait[*traits.XMLName](schema); ok { + return t.Name + } + return schema.MemberName() +} + +func findMember(schema *smithy.Schema, elemName string) *smithy.Schema { + if schema == nil { + return nil + } + + for _, m := range schema.Members() { + mName := xmlMemberName(m) + if strings.EqualFold(mName, elemName) { + return m + } + } + return nil +} + +// ReadStruct implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadStruct(s *smithy.Schema) error { + if err := d.ensureStart(); err != nil { + return err + } + + start := *d.currStart + d.stack.Push(deserCtx{kind: ctxKindStruct, schema: s, startElem: start}) + return nil +} + +// ReadStructMember implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadStructMember() (*smithy.Schema, error) { + ctx := d.stack.Top() + if ctx == nil || ctx.kind != ctxKindStruct { + return nil, fmt.Errorf("ReadStructMember called without ReadStruct") + } + + if m := d.nextAttrMember(ctx); m != nil { + return m, nil + } + + for { + start, ok, err := d.nextStart() + if err != nil { + return nil, err + } + if !ok { + d.stack.Pop() + return nil, nil + } + + member := findMember(ctx.schema, start.Name.Local) + if member == nil { + if err := d.skip(); err != nil { + return nil, err + } + continue + } + + if _, isAttr := smithy.SchemaTrait[*traits.XMLAttribute](member); isAttr { + if err := d.skip(); err != nil { + return nil, err + } + continue + } + + return member, nil + } +} + +func (d *ShapeDeserializer) nextAttrMember(ctx *deserCtx) *smithy.Schema { + attrs := ctx.startElem.Attr + for ctx.attrIndex < len(attrs) { + a := attrs[ctx.attrIndex] + ctx.attrIndex++ + + member := findAttrMember(ctx.schema, a.Name.Local) + if member == nil { + continue + } + + val := a.Value + d.currAttr = &val + return member + } + return nil +} + +func findAttrMember(schema *smithy.Schema, elemName string) *smithy.Schema { + if schema == nil { + return nil + } + + for _, m := range schema.Members() { + if _, ok := smithy.SchemaTrait[*traits.XMLAttribute](m); !ok { + continue + } + if strings.EqualFold(stripPrefix(xmlMemberName(m)), elemName) { + return m + } + } + return nil +} + +// ReadList implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadList(s *smithy.Schema) error { + _, flattened := smithy.SchemaTrait[*traits.XMLFlattened](s) + d.stack.Push(deserCtx{ + kind: ctxKindList, + schema: s, + flattened: flattened, + first: flattened, + }) + return nil +} + +// ReadListItem implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadListItem(_ *smithy.Schema) (bool, error) { + ctx := d.stack.Top() + if ctx.flattened { + return d.readFlatListItem() + } + return d.readWrappedListItem() +} + +func (d *ShapeDeserializer) readWrappedListItem() (bool, error) { + // the old version used WrapNodeDecoder on each item and didn't check its + // name (or for xmlName) so we're ignoring it too + _, ok, err := d.nextStart() + if err != nil { + return false, err + } + if !ok { + d.stack.Pop() + return false, nil + } + + return true, nil +} + +func (d *ShapeDeserializer) readFlatListItem() (bool, error) { + ctx := d.stack.Top() + if ctx.first { + ctx.first = false + return true, nil + } + + expectName := xmlMemberName(ctx.schema) + + for { + tok, err := d.token() + if err != nil { + return false, err + } + + switch t := tok.(type) { + case xml.StartElement: + if strings.EqualFold(t.Name.Local, expectName) { + return true, nil + } + + d.peeked = t + d.stack.Pop() + return false, nil + case xml.EndElement: + d.peeked = t + d.stack.Pop() + return false, nil + } + } +} + +// ReadMap implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadMap(s *smithy.Schema) error { + _, flattened := smithy.SchemaTrait[*traits.XMLFlattened](s) + d.stack.Push(deserCtx{ + kind: ctxKindMap, + schema: s, + flattened: flattened, + first: flattened, + }) + return nil +} + +// ReadMapKey implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadMapKey(ks *smithy.Schema) (string, bool, error) { + ctx := d.stack.Top() + if ctx.inMapEntry { + ctx.inMapEntry = false + if _, _, err := d.nextStart(); err != nil { + return "", false, err + } + } + + vs := ctx.schema.MapValue() + + if ctx.flattened { + return d.readFlatMapKey(ks, vs) + } + + return d.readWrappedMapKey(ks, vs) +} + +func (d *ShapeDeserializer) readWrappedMapKey(ks, vs *smithy.Schema) (string, bool, error) { + for { + start, a, err := d.nextStart() + if err != nil { + return "", false, err + } + if !a { + d.stack.Pop() + return "", false, nil + } + + // unlike lists the old codegen actually DID check that the element was + // named "entry", skipping if it wasn't + if strings.EqualFold(start.Name.Local, "entry") { + return d.readEntry(ks, vs) + } + + if err := d.skip(); err != nil { + return "", false, err + } + } +} + +func (d *ShapeDeserializer) readFlatMapKey(ks, vs *smithy.Schema) (string, bool, error) { + ctx := d.stack.Top() + if ctx.first { + ctx.first = false + return d.readEntry(ks, vs) + } + + expectName := xmlMemberName(ctx.schema) + for { + tok, err := d.token() + if err != nil { + return "", false, err + } + + switch t := tok.(type) { + case xml.StartElement: + if strings.EqualFold(t.Name.Local, expectName) { + return d.readEntry(ks, vs) + } + + d.peeked = t + d.stack.Pop() + return "", false, nil + case xml.EndElement: + d.peeked = t + d.stack.Pop() + return "", false, nil + } + } +} + +func (d *ShapeDeserializer) readEntry(ks, vs *smithy.Schema) (string, bool, error) { + ctx := d.stack.Top() + + kname := "key" + if xn, ok := smithy.SchemaDirectTrait[*traits.XMLName](ks); ok { + kname = xn.Name + } + + vname := "value" + if xn, ok := smithy.SchemaDirectTrait[*traits.XMLName](vs); ok { + vname = xn.Name + } + + var key string + for { + child, found, err := d.nextStart() + if err != nil { + return "", false, err + } + if !found { + break + } + + switch { + case strings.EqualFold(child.Name.Local, kname): + key, err = d.chardata() + if err != nil { + return "", false, err + } + case strings.EqualFold(child.Name.Local, vname): + ctx.inMapEntry = true + return key, true, nil + default: + if err := d.skip(); err != nil { + return "", false, err + } + } + } + + return key, true, nil +} + +// ReadNil implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadNil(_ *smithy.Schema) (bool, error) { + return false, nil +} + +// ReadBool implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadBool(_ *smithy.Schema, v *bool) error { + text, err := d.chardata() + if err != nil { + return err + } + + b, err := strconv.ParseBool(text) + if err != nil { + return fmt.Errorf("parse bool %q: %w", text, err) + } + + *v = b + return nil +} + +// ReadInt8 implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadInt8(s *smithy.Schema, v *int8) error { + n, err := d.readInt(8) + if err != nil { + return err + } + + *v = int8(n) + return nil +} + +// ReadInt16 implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadInt16(s *smithy.Schema, v *int16) error { + n, err := d.readInt(16) + if err != nil { + return err + } + + *v = int16(n) + return nil +} + +// ReadInt32 implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadInt32(s *smithy.Schema, v *int32) error { + n, err := d.readInt(32) + if err != nil { + return err + } + + *v = int32(n) + return nil +} + +// ReadInt64 implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadInt64(s *smithy.Schema, v *int64) error { + n, err := d.readInt(64) + if err != nil { + return err + } + + *v = n + return nil +} + +// ReadFloat32 implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadFloat32(s *smithy.Schema, v *float32) error { + n, err := d.readFloat() + if err != nil { + return err + } + + *v = float32(n) + return nil +} + +// ReadFloat64 implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadFloat64(s *smithy.Schema, v *float64) error { + n, err := d.readFloat() + if err != nil { + return err + } + + *v = n + return nil +} + +// ReadString implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadString(_ *smithy.Schema, v *string) error { + text, err := d.chardata() + if err != nil { + return err + } + + *v = text + return nil +} + +// ReadTime implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadTime(schema *smithy.Schema, v *time.Time) error { + format := "date-time" + if t, ok := smithy.SchemaTrait[*traits.TimestampFormat](schema); ok { + format = t.Format + } + + text, err := d.chardata() + if err != nil { + return err + } + + switch format { + case "date-time": + t, err := smithytime.ParseDateTime(text) + if err != nil { + return err + } + *v = t + case "http-date": + t, err := smithytime.ParseHTTPDate(text) + if err != nil { + return err + } + *v = t + case "epoch-seconds": + n, err := strconv.ParseFloat(text, 64) + if err != nil { + return err + } + *v = smithytime.ParseEpochSeconds(n) + default: + return fmt.Errorf("unknown timestamp format: %s", format) + } + + return nil +} + +// ReadBlob implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadBlob(s *smithy.Schema, v *[]byte) error { + text, err := d.chardata() + if err != nil { + return err + } + + if text == "" { + return nil + } + + b, err := base64.StdEncoding.DecodeString(text) + if err != nil { + return fmt.Errorf("decode base64 blob: %w", err) + } + *v = b + return nil +} + +// ReadUnion implements [smithy.ShapeDeserializer]. +func (d *ShapeDeserializer) ReadUnion(s *smithy.Schema) (*smithy.Schema, error) { + if err := d.ensureStart(); err != nil { + return nil, err + } + + for { + start, ok, err := d.nextStart() + if err != nil { + return nil, err + } + if !ok { + return nil, nil + } + + member := findMember(s, start.Name.Local) + if member == nil { + if err := d.skip(); err != nil { + return nil, err + } + continue + } + + return member, nil + } +} + +// ReadDocument is unimplemented for XML. +func (d *ShapeDeserializer) ReadDocument(_ *smithy.Schema, _ *document.Value) error { + return fmt.Errorf("Document not supported") +} + +func (d *ShapeDeserializer) token() (xml.Token, error) { + if d.peeked != nil { + tok := d.peeked + d.peeked = nil + return tok, nil + } + + tok, err := d.dec.Token() + if err != nil { + return nil, err + } + + if start, ok := tok.(xml.StartElement); ok { + d.currStart = &start + } + + return tok, nil +} + +func (d *ShapeDeserializer) chardata() (string, error) { + if d.currAttr != nil { + v := *d.currAttr + d.currAttr = nil + return v, nil + } + + // a single "inner XML" node can be multiple xml.CharData so we need to + // accumulate them + var buf strings.Builder + + for { + tok, err := d.token() + if err != nil { + return "", err + } + + switch t := tok.(type) { + case xml.CharData: + buf.Write(t) + + // IMPORTANT: also consumes the closing tag AFTER the chardata, so + // future ReadWhatevers don't have to think about that + case xml.EndElement: + return buf.String(), nil + + default: + return "", fmt.Errorf("unexpected token %T", tok) + } + } +} + +// there is xml.Decoder.Skip but this is a special case to assume we already +// consumed the start element and to handle any peeked tokens +func (d *ShapeDeserializer) skip() error { + depth := 1 + for depth > 0 { + tok, err := d.token() + if err != nil { + return err + } + + switch tok.(type) { + case xml.StartElement: + depth++ + case xml.EndElement: + depth-- + } + } + + return nil +} + +func (d *ShapeDeserializer) nextStart() (xml.StartElement, bool, error) { + for { + tok, err := d.token() + if err != nil { + return xml.StartElement{}, false, err + } + + switch t := tok.(type) { + case xml.StartElement: + return t, true, nil + case xml.EndElement: // ie. the end of the struct/list/map + return xml.StartElement{}, false, nil + default: + continue + } + } +} + +// make sure we have the start element when we go into a struct/union context +func (d *ShapeDeserializer) ensureStart() error { + if d.currStart == nil { + if _, ok, err := d.nextStart(); err != nil { + return err + } else if !ok { + return fmt.Errorf("expected start element") + } + } + return nil +} + +func (d *ShapeDeserializer) readInt(bits int) (int64, error) { + text, err := d.chardata() + if err != nil { + return 0, err + } + + return strconv.ParseInt(text, 10, bits) +} + +func (d *ShapeDeserializer) readFloat() (float64, error) { + text, err := d.chardata() + if err != nil { + return 0, err + } + + switch { + case strings.EqualFold(text, "NaN"): + return math.NaN(), nil + case strings.EqualFold(text, "Infinity"): + return math.Inf(1), nil + case strings.EqualFold(text, "-Infinity"): + return math.Inf(-1), nil + default: + return strconv.ParseFloat(text, 64) + } +} + +func stripPrefix(name string) string { + if _, after, ok := strings.Cut(name, ":"); ok { + return after + } + return name +} + +// ReadBigInt is unimplemented and will return an error. +func (d *ShapeDeserializer) ReadBigInt(_ *smithy.Schema, _ *big.Int) error { + return fmt.Errorf("unimplemented") +} + +// ReadBigFloat is unimplemented and will return an error. +func (d *ShapeDeserializer) ReadBigFloat(_ *smithy.Schema, _ *big.Float) error { + return fmt.Errorf("unimplemented") +} diff --git a/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/shape_serializer.go b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/shape_serializer.go new file mode 100644 index 000000000..92d2d36c2 --- /dev/null +++ b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/shape_serializer.go @@ -0,0 +1,352 @@ +package xml + +import ( + "encoding/base64" + "math" + "math/big" + "strconv" + "time" + + "github.com/aws/smithy-go" + "github.com/aws/smithy-go/document" + "github.com/aws/smithy-go/internal/serde" + smithytime "github.com/aws/smithy-go/time" + "github.com/aws/smithy-go/traits" +) + +type serCtx struct { + kind ctxKind + schema *smithy.Schema + flat bool + + wrapperName string // open/close ename for struct and NON-flat list/map + itemName string // per-item element name for list items and map _entries_ + inMapEntry bool + + // we have to buffer inner xml for structs because they may have + // @xmlAttribute members written in any order + // + // @xmlNamespace is just resolved at flush time + w *writer + attrs []attr +} + +// ShapeSerializer implements marshaling of Smithy shapes to XML. +type ShapeSerializer struct { + w *writer + + stack serde.Stack[serCtx] + + opts ShapeSerializerOptions +} + +// ShapeSerializerOptions configures ShapeSerializer. +type ShapeSerializerOptions struct { + RootNamespaceURI string + RootNamespacePrefix string +} + +var _ smithy.ShapeSerializer = (*ShapeSerializer)(nil) + +// NewShapeSerializer creates a new ShapeSerializer. +func NewShapeSerializer(opts ...func(*ShapeSerializerOptions)) *ShapeSerializer { + o := ShapeSerializerOptions{} + for _, fn := range opts { + fn(&o) + } + return &ShapeSerializer{ + w: newWriter(), + stack: serde.NewStack[serCtx](), + opts: o, + } +} + +// Bytes returns the serialized XML bytes. +func (s *ShapeSerializer) Bytes() []byte { + return s.w.Bytes() +} + +// WriteInt8 implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteInt8(schema *smithy.Schema, v int8) { + s.writeScalar(schema, strconv.FormatInt(int64(v), 10)) +} + +// WriteInt16 implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteInt16(schema *smithy.Schema, v int16) { + s.writeScalar(schema, strconv.FormatInt(int64(v), 10)) +} + +// WriteInt32 implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteInt32(schema *smithy.Schema, v int32) { + s.writeScalar(schema, strconv.FormatInt(int64(v), 10)) +} + +// WriteInt64 implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteInt64(schema *smithy.Schema, v int64) { + s.writeScalar(schema, strconv.FormatInt(v, 10)) +} + +// WriteFloat32 implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteFloat32(schema *smithy.Schema, v float32) { + s.writeScalar(schema, formatFloat(float64(v), 32)) +} + +// WriteFloat64 implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteFloat64(schema *smithy.Schema, v float64) { + s.writeScalar(schema, formatFloat(v, 64)) +} + +// WriteBool implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteBool(schema *smithy.Schema, v bool) { + s.writeScalar(schema, strconv.FormatBool(v)) +} + +// WriteString implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteString(schema *smithy.Schema, v string) { + s.writeScalar(schema, v) +} + +// WriteBigInt is unimplemented. +func (s *ShapeSerializer) WriteBigInt(_ *smithy.Schema, _ *big.Int) { + panic("BigInteger not supported") +} + +// WriteBigFloat is unimplemented. +func (s *ShapeSerializer) WriteBigFloat(_ *smithy.Schema, _ *big.Float) { + panic("BigDecimal not supported") +} + +// WriteBlob implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteBlob(schema *smithy.Schema, v []byte) { + if v == nil { + return + } + s.writeScalar(schema, base64.StdEncoding.EncodeToString(v)) +} + +// WriteTime implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteTime(schema *smithy.Schema, v time.Time) { + format := "date-time" + if t, ok := smithy.SchemaTrait[*traits.TimestampFormat](schema); ok { + format = t.Format + } + + switch format { + case "http-date": + s.writeScalar(schema, smithytime.FormatHTTPDate(v)) + case "epoch-seconds": + s.writeScalar(schema, strconv.FormatFloat(smithytime.FormatEpochSeconds(v), 'f', -1, 64)) + default: + s.writeScalar(schema, smithytime.FormatDateTime(v)) + } +} + +// WriteStruct implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteStruct(schema *smithy.Schema) { + name := s.structEname(schema) + + // @xmlNamespace on a target structure does NOT propagate through member + // references (the spec says nothing about inheritance, and the protocol + // tests confirm: XmlNamespaceNested has @xmlNamespace but the + // element does not get it). The exception is @httpPayload, where the + // member and its target represent the same XML element. + + ctx := serCtx{ + kind: ctxKindStruct, + wrapperName: name, + schema: schema, + w: s.w, + } + s.w = newWriter() + s.stack.Push(ctx) +} + +// CloseStruct implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) CloseStruct() { + ctx := s.stack.Pop() + + var ns *traits.XMLNamespace + if isPayload(ctx.schema) { + ns, _ = smithy.SchemaTrait[*traits.XMLNamespace](ctx.schema) + } else { + ns, _ = smithy.SchemaDirectTrait[*traits.XMLNamespace](ctx.schema) + } + + // special case for the root struct where the service set a namespace + if ns == nil && s.stack.Len() == 0 && s.opts.RootNamespaceURI != "" { + ns = &traits.XMLNamespace{ + URI: s.opts.RootNamespaceURI, + Prefix: s.opts.RootNamespacePrefix, + } + } + + inner := s.w + s.w = ctx.w + s.w.writeStart(ctx.wrapperName, ns, ctx.attrs) + s.w.writeInner(inner) + s.w.writeEnd(ctx.wrapperName) +} + +// WriteUnion implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteUnion(schema, variant *smithy.Schema) { + name := s.ctxEname(schema) + s.w.writeStart(name, s.xmlns(schema), nil) + + // the variant must not resolve its element name from an enclosing list or + // map, which would name it as another item + s.stack.Push(serCtx{ + kind: ctxKindUnion, + wrapperName: name, + schema: schema, + }) +} + +// CloseUnion implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) CloseUnion() { + ctx := s.stack.Pop() + s.w.writeEnd(ctx.wrapperName) +} + +// WriteNil implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteNil(schema *smithy.Schema) { +} + +// WriteList implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteList(schema *smithy.Schema) { + _, flat := smithy.SchemaTrait[*traits.XMLFlattened](schema) + + ename := s.ename(schema) + iname := ename + if !flat { + ns, _ := smithy.SchemaDirectTrait[*traits.XMLNamespace](schema) + s.w.writeStart(ename, ns, nil) + iname = s.ename(schema.ListMember()) + } else { + ename = "" + } + + s.stack.Push(serCtx{ + kind: ctxKindList, + wrapperName: ename, + itemName: iname, + schema: schema, + flat: flat, + }) +} + +// CloseList implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) CloseList() { + ctx := s.stack.Pop() + if !ctx.flat { + s.w.writeEnd(ctx.wrapperName) + } +} + +// WriteMap implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteMap(schema *smithy.Schema) { + _, flattened := smithy.SchemaTrait[*traits.XMLFlattened](schema) + + wrapperName := s.ename(schema) + itemName := "entry" + if flattened { + itemName = wrapperName + wrapperName = "" + } else { + ns, _ := smithy.SchemaDirectTrait[*traits.XMLNamespace](schema) + s.w.writeStart(wrapperName, ns, nil) + } + + s.stack.Push(serCtx{ + kind: ctxKindMap, + wrapperName: wrapperName, + itemName: itemName, + schema: schema, + flat: flattened, + }) +} + +// WriteKey implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) WriteKey(schema *smithy.Schema, k string) { + top := s.stack.Top() + if top == nil || top.kind != ctxKindMap { + return + } + + if top.inMapEntry { + s.w.writeEnd(top.itemName) + top.inMapEntry = false + } + + s.w.writeStart(top.itemName, nil, nil) + + keyName := s.ename(schema) + ns, _ := smithy.SchemaDirectTrait[*traits.XMLNamespace](top.schema.MapKey()) + s.w.writeStart(keyName, ns, nil) + s.w.writeChardata(k) + s.w.writeEnd(keyName) + + top.inMapEntry = true +} + +// CloseMap implements [smithy.ShapeSerializer]. +func (s *ShapeSerializer) CloseMap() { + ctx := s.stack.Pop() + + if ctx.inMapEntry { + s.w.writeEnd(ctx.itemName) + } + + if ctx.wrapperName != "" { + s.w.writeEnd(ctx.wrapperName) + } +} + +// WriteDocument is unimplemented for XML. +func (s *ShapeSerializer) WriteDocument(schema *smithy.Schema, v document.Value) { + panic("WriteDocument not supported for XML") +} + +func (s *ShapeSerializer) writeScalar(schema *smithy.Schema, v string) { + if s.bufferAttribute(schema, v) { + return + } + + name := s.ctxEname(schema) + s.w.writeStart(name, s.xmlns(schema), nil) + s.w.writeChardata(v) + s.w.writeEnd(name) +} + +func (s *ShapeSerializer) bufferAttribute(schema *smithy.Schema, v string) bool { + if _, ok := smithy.SchemaTrait[*traits.XMLAttribute](schema); !ok { + return false + } + + top := s.stack.Top() + if top == nil || top.kind != ctxKindStruct { + return false + } + + top.attrs = append(top.attrs, attr{ + name: s.ename(schema), + value: v, + }) + return true +} + +func formatFloat(v float64, bits int) string { + switch { + case math.IsNaN(v): + return "NaN" + case math.IsInf(v, 1): + return "Infinity" + case math.IsInf(v, -1): + return "-Infinity" + } + return strconv.FormatFloat(v, 'g', -1, bits) +} + +func isPayload(schema *smithy.Schema) bool { + _, ok := smithy.SchemaTrait[*traits.HTTPPayload](schema) + return ok +} diff --git a/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/writer.go b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/writer.go new file mode 100644 index 000000000..aead0260b --- /dev/null +++ b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/xml/writer.go @@ -0,0 +1,129 @@ +package xml + +import ( + "bytes" + "unicode/utf8" + + "github.com/aws/smithy-go/traits" +) + +type writer struct { + buf *bytes.Buffer +} + +func newWriter() *writer { + return &writer{ + buf: bytes.NewBuffer(nil), + } +} + +type attr struct { + name, value string +} + +func (w *writer) writeChardata(s string) { + escapeString(w.buf, s) +} + +func (w *writer) writeStart(name string, ns *traits.XMLNamespace, attrs []attr) { + w.buf.WriteByte('<') + escapeString(w.buf, name) + if ns != nil { + w.buf.WriteString(" xmlns") + if ns.Prefix != "" { + w.buf.WriteByte(':') + escapeString(w.buf, ns.Prefix) + } + w.buf.WriteString(`="`) + escapeString(w.buf, ns.URI) + w.buf.WriteByte('"') + } + for _, a := range attrs { + w.buf.WriteByte(' ') + escapeString(w.buf, a.name) + w.buf.WriteString(`="`) + escapeString(w.buf, a.value) + w.buf.WriteByte('"') + } + w.buf.WriteByte('>') +} + +func (w *writer) writeEnd(name string) { + w.buf.WriteString("') +} + +func (w *writer) writeInner(inner *writer) { + w.buf.Write(inner.buf.Bytes()) +} + +func (w *writer) Bytes() []byte { + return w.buf.Bytes() +} + +// copied from smithy-go/encoding/xml/escape.go + +var ( + escQuot = []byte(""") + escApos = []byte("'") + escAmp = []byte("&") + escLT = []byte("<") + escGT = []byte(">") + escTab = []byte(" ") + escNL = []byte(" ") + escCR = []byte(" ") + escFFFD = []byte("\uFFFD") + escNextLine = []byte("…") + escLS = []byte("
") +) + +func isInCharacterRange(r rune) bool { + return r == 0x09 || + r == 0x0A || + r == 0x0D || + r >= 0x20 && r <= 0xD7FF || + r >= 0xE000 && r <= 0xFFFD || + r >= 0x10000 && r <= 0x10FFFF +} + +func escapeString(w *bytes.Buffer, s string) { + var esc []byte + last := 0 + for i := 0; i < len(s); { + r, width := utf8.DecodeRuneInString(s[i:]) + i += width + switch r { + case '"': + esc = escQuot + case '\'': + esc = escApos + case '&': + esc = escAmp + case '<': + esc = escLT + case '>': + esc = escGT + case '\t': + esc = escTab + case '\n': + esc = escNL + case '\r': + esc = escCR + case '\u0085': + esc = escNextLine + case '\u2028': + esc = escLS + default: + if !isInCharacterRange(r) || (r == 0xFFFD && width == 1) { + esc = escFFFD + break + } + continue + } + w.WriteString(s[last : i-width]) + w.Write(esc) + last = i + } + w.WriteString(s[last:]) +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 21008deb2..1dc12efb6 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,7 +1,7 @@ # github.com/Masterminds/semver/v3 v3.4.0 ## explicit; go 1.21 github.com/Masterminds/semver/v3 -# github.com/aws/aws-sdk-go-v2 v1.47.7 +# github.com/aws/aws-sdk-go-v2 v1.48.1 ## explicit; go 1.24 github.com/aws/aws-sdk-go-v2/aws github.com/aws/aws-sdk-go-v2/aws/defaults @@ -45,10 +45,10 @@ github.com/aws/aws-sdk-go-v2/credentials/stscreds ## explicit; go 1.24 github.com/aws/aws-sdk-go-v2/feature/ec2/imds github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/config -# github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.10 +# github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.13 ## explicit; go 1.24 github.com/aws/aws-sdk-go-v2/internal/configsources -# github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.10 +# github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.13 ## explicit; go 1.24 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 # github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.8 @@ -61,10 +61,11 @@ github.com/aws/aws-sdk-go-v2/internal/v4a/internal/v4 github.com/aws/aws-sdk-go-v2/service/ec2 github.com/aws/aws-sdk-go-v2/service/ec2/internal/endpoints github.com/aws/aws-sdk-go-v2/service/ec2/types -# github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.63.8 +# github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.65.1 ## explicit; go 1.24 github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/internal/endpoints +github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/schemas github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types # github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.23 ## explicit; go 1.24 @@ -101,7 +102,7 @@ github.com/aws/aws-sdk-go-v2/service/ssooidc/types github.com/aws/aws-sdk-go-v2/service/sts github.com/aws/aws-sdk-go-v2/service/sts/internal/endpoints github.com/aws/aws-sdk-go-v2/service/sts/types -# github.com/aws/smithy-go v1.28.8 +# github.com/aws/smithy-go v1.28.10 ## explicit; go 1.24 github.com/aws/smithy-go github.com/aws/smithy-go/auth @@ -138,9 +139,12 @@ github.com/aws/smithy-go/traits github.com/aws/smithy-go/transport/http github.com/aws/smithy-go/transport/http/internal/io github.com/aws/smithy-go/transport/http/protocol/awsjson +github.com/aws/smithy-go/transport/http/protocol/awsquery github.com/aws/smithy-go/transport/http/protocol/internal/httpbinding github.com/aws/smithy-go/transport/http/protocol/internal/json github.com/aws/smithy-go/transport/http/protocol/internal/json/internal/stdlib +github.com/aws/smithy-go/transport/http/protocol/internal/query +github.com/aws/smithy-go/transport/http/protocol/internal/xml github.com/aws/smithy-go/transport/http/protocol/restjson1 github.com/aws/smithy-go/waiter # github.com/fxamacker/cbor/v2 v2.9.1